Skip to content

Commit

Permalink
Replace sphinx by mkdocs.
Browse files Browse the repository at this point in the history
  • Loading branch information
samuelburbulla committed Nov 20, 2023
1 parent 4259e53 commit e6e20e6
Show file tree
Hide file tree
Showing 18 changed files with 43 additions and 159 deletions.
3 changes: 0 additions & 3 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -68,9 +68,6 @@ instance/
# Scrapy
.scrapy

# Sphinx documentation
docs/_build/

# PyBuilder
target/

Expand Down
5 changes: 2 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
<div align="center">

# Continuity
<img alt="Continuity" src="https://raw.githubusercontent.com/aai-institute/Continuity/main/docs/img/logo.png">

<img alt="Continuity" src="
https://raw.githubusercontent.com/aai-institute/Continuity/main/docs/docs/source/_static/logo.png">
Mapping continuous functions with neural networks.

</div>

Expand Down
20 changes: 0 additions & 20 deletions docs/Makefile

This file was deleted.

18 changes: 7 additions & 11 deletions docs/README.md
Original file line number Diff line number Diff line change
@@ -1,20 +1,16 @@
# Documentation

## Steps to build documentation

1. Build and install package from source.
1. Install package from source and install dependencies.
```bash
cd ./continuity/
pip install -e .
pip install sphinx sphinx_book_theme sphinx_copybutton
pip install -r docs/requirements.txt
```

2. Generate documentation from your docstrings.
2. Build documentation.
```bash
cd docs/
sphinx-apidoc -f -o ./source ../src/continuity
mkdocs build
```
3. Build the documentation
```bash
make clean && make html
```
4. You can now view your documentation under `docs/build/html/index.html`.

3. View your documentation opening `site/index.html`.
2 changes: 2 additions & 0 deletions docs/about.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
About
==========
4 changes: 4 additions & 0 deletions docs/documentation.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
Modules
=======

::: continuity.data.dataset.DataSet
Binary file added docs/img/favicon.ico
Binary file not shown.
Binary file added docs/img/logo.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: 4 additions & 0 deletions docs/index.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
Continuity
==========

Mapping continuous functions with neural networks.
8 changes: 8 additions & 0 deletions docs/installation.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
Installation
============

```
git clone https://github.com/aai-institute/Continuity.git
cd Continuity
pip install -e .
```
6 changes: 2 additions & 4 deletions docs/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,2 @@
myst-nb==0.13.2
Sphinx==4.1.2
sphinx-book-theme==0.3.2
sphinx-copybutton>=0.5.0
mkdocs
mkdocstrings
Binary file removed docs/source/_static/logo.png
Binary file not shown.
73 changes: 0 additions & 73 deletions docs/source/conf.py

This file was deleted.

10 changes: 0 additions & 10 deletions docs/source/continuity.rst

This file was deleted.

8 changes: 0 additions & 8 deletions docs/source/getting_started/installation.rst

This file was deleted.

20 changes: 0 additions & 20 deletions docs/source/index.rst

This file was deleted.

7 changes: 0 additions & 7 deletions docs/source/modules.rst

This file was deleted.

14 changes: 14 additions & 0 deletions mkdocs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
site_name: Continuity
nav:
- Home: index.md
- Installation: installation.md
- Documentation: documentation.md
- About: about.md
theme:
name: readthedocs
locale: "en"
logo: img/logo.png

plugins:
- search
- mkdocstrings

0 comments on commit e6e20e6

Please sign in to comment.