Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Icons and Installation Docs #27

Merged
merged 2 commits into from
Mar 1, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file added docs/source/_static/images/logos/fire-icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 2 additions & 2 deletions docs/source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,8 +54,8 @@
# https://www.sphinx-doc.org/en/master/usage/configuration.html#options-for-html-output

html_theme = "sphinx_book_theme"
# html_logo = ""
# html_favicon = ""
html_logo = "_static/images/logos/fire-icon.png"
html_favicon = "_static/images/logos/fire-icon.png"
html_static_path = ["_static"]
html_theme_options = {
"logo": {
Expand Down
52 changes: 51 additions & 1 deletion docs/source/index.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,55 @@
# VisualTorch Documentation

VisualTorch aims to help visualize Torch-based neural network architectures. It currently supports generating layered-style and graph-style architectures for PyTorch Sequential and Custom models. This tool is adapted from visualkeras, pytorchviz, and pytorch-summary.
VisualTorch aims to help visualize Torch-based neural network architectures. It currently supports generating layered-style and graph-style architectures for PyTorch Sequential and Custom models.

🚧 This documentation is under construction 🚧

## {octicon}`rocket` Get Started

::::{grid}

:::{grid-item-card} {octicon}`tools` Installation
:link: markdown/get_started/installation
:link-type: doc

Installing visualtorch via PyPI or Source.
:::

::::

```{toctree}
:caption: Get Started
:hidden:

markdown/get_started/installation
```

```{toctree}
:caption: Usage Examples
:hidden:

markdown/usage_examples/layered
markdown/usage_examples/graph
```

```{toctree}
:caption: References
:hidden:

markdown/references/layered
markdown/references/graph
```

```{toctree}
:caption: Developer Guides
:hidden:

markdown/developer_guides/contributing
```

```{toctree}
:caption: License
:hidden:

markdown/license/index
```
31 changes: 31 additions & 0 deletions docs/source/markdown/get_started/installation.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
# {octicon}`tools` Installation

Installation can be done through PyPI or the GitHub repository. PyPI installation should be chosen if you want to use the release version. If you prefer to use the latest version from the GitHub repository, then installation from the source is recommended.

:::::{dropdown} Installation via pip
:open:

VisualTorch can be installed using the following commands:

::::{tab-set}

:::{tab-item} PyPI
:sync: label-1

```{literalinclude} ../../snippets/install/pypi.txt
:language: bash
```

:::

:::{tab-item} Source
:sync: label-2

```{literalinclude} ../../snippets/install/source.txt
:language: bash
```

:::
::::

:::::
1 change: 1 addition & 0 deletions docs/source/snippets/install/pypi.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
pip install visualtorch
1 change: 1 addition & 0 deletions docs/source/snippets/install/source.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
pip install git+https://github.com/willyfh/visualtorch
Loading