Skip to content

Commit

Permalink
add logo and copybutton (#751)
Browse files Browse the repository at this point in the history
* add logo and copybutton

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

* update README

* Update pyproject.toml

---------

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
  • Loading branch information
PythonFZ and pre-commit-ci[bot] authored Dec 1, 2024
1 parent 5e1ca66 commit a6e0a4c
Show file tree
Hide file tree
Showing 6 changed files with 73 additions and 4 deletions.
15 changes: 13 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,17 +1,28 @@




<div align="center">

![Logo](https://raw.githubusercontent.com/zincware/ZnDraw/refs/heads/docs/docs/source/_static/zndraw-light.svg#gh-light-mode-only)
![Logo](https://raw.githubusercontent.com/zincware/ZnDraw/refs/heads/docs/docs/source/_static/zndraw-dark.svg#gh-dark-mode-only)

[![zincware](https://img.shields.io/badge/Powered%20by-zincware-darkcyan)](https://github.com/zincware)
[![PyPI version](https://badge.fury.io/py/zndraw.svg)](https://badge.fury.io/py/zndraw)
[![DOI](https://img.shields.io/badge/arXiv-2402.08708-red)](https://arxiv.org/abs/2402.08708)
[![codecov](https://codecov.io/gh/zincware/ZnDraw/graph/badge.svg?token=3GPCKH1BBX)](https://codecov.io/gh/zincware/ZnDraw)
[![Discord](https://img.shields.io/discord/1034511611802689557)](https://discord.gg/7ncfwhsnm4)
[![Documentation Status](https://readthedocs.org/projects/zndraw/badge/?version=latest)](https://zndraw.readthedocs.io/en/latest/?badge=latest)
!['Threejs](https://img.shields.io/badge/threejs-black?style=for-the-badge&logo=three.js&logoColor=white)

# ZnDraw
</div>

# ZnDraw - Display and Edit Molecules
Welcome to ZnDraw, a powerful tool for visualizing and interacting with your trajectories.

## Installation

It is recommended to install ZnDraw from PyPi via:
You can install ZnDraw directly from PyPi via:

```bash
pip install zndraw
Expand Down
8 changes: 8 additions & 0 deletions docs/source/_static/zndraw-dark.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
8 changes: 8 additions & 0 deletions docs/source/_static/zndraw-light.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
23 changes: 23 additions & 0 deletions docs/source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@

extensions = [
"nbsphinx",
"sphinx_copybutton",
]

templates_path = ["_templates"]
Expand All @@ -29,3 +30,25 @@

html_theme = "furo"
html_static_path = ["_static"]

html_theme_options: dict = {
"light_logo": "zndraw-light.svg",
"dark_logo": "zndraw-dark.svg",
"footer_icons": [
{
"name": "GitHub",
"url": "https://github.com/zincware/zndraw",
"html": "",
"class": "fa-brands fa-github fa-2x",
},
],
"source_repository": "https://github.com/zincware/zndraw",
"source_branch": "main",
"source_directory": "docs/source/",
"navigation_with_keys": True,
}

# font-awesome logos
html_css_files = [
"https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0/css/brands.min.css",
]
20 changes: 19 additions & 1 deletion poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ znh5md = {version = "^0.3"}
sphinx = "^8.1.3"
furo = "^2024.8.6"
nbsphinx = "^0.9.5"
sphinx-copybutton = "^0.5.2"

[build-system]
requires = ["poetry-core"]
Expand All @@ -71,4 +72,4 @@ select = ["I", "F"]
addopts = "-m 'not chrome'"

[tool.codespell]
skip = "poetry.lock"
skip = "*.svg,*.lock"

0 comments on commit a6e0a4c

Please sign in to comment.