Skip to content

Commit

Permalink
Rename doc
Browse files Browse the repository at this point in the history
  • Loading branch information
diegoabt committed Oct 24, 2024
1 parent 9cc24c4 commit 370a1c3
Show file tree
Hide file tree
Showing 17 changed files with 11 additions and 11 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/documentation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,12 @@ jobs:
pip install sphinx sphinx_rtd_theme myst_parser faraday-retry
- name: Sphinx build
run: |
sphinx-build doc/source doc/build/html
sphinx-build docs/source doc/build/html
- name: Deploy to GitHub Pages
uses: peaceiris/actions-gh-pages@v3
if: ${{ github.event_name == 'push' && github.ref == 'refs/heads/main' }}
with:
publish_branch: gh-pages
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: doc/build/html
publish_dir: docs/build/html
force_orphan: true
6 changes: 3 additions & 3 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -35,14 +35,14 @@ build
# XML reports
TEST*.xml

doc/source/generated/
docs/source/generated/

doc/source/tutorials/outputs/
docs/source/tutorials/outputs/

coverage.xml

CRep_output/

JointCRep_output/

doc/source/tutorials/tutorial_outputs/
docs/source/tutorials/tutorial_outputs/
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -80,12 +80,12 @@ To run the tests:
The documentation can be built with *Sphinx* by running:

```bash
cd doc
cd docs
make html
```

The tutorials are then displayed in the left sidebar of the generated HTML documentation. They
can also be accessed directly from the [tutorials](doc/source/tutorials) folder.
can also be accessed directly from the [tutorials](docs/source/tutorials) folder.

## Authors

Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
6 changes: 3 additions & 3 deletions doc/source/conf.py → docs/source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,17 +35,17 @@
# extensions coming with Sphinx (named 'sphinx.ext.*') or your custom
# ones.
extensions = [
"sphinx.ext.autodoc", # pull doc from docstrings
"sphinx.ext.autodoc", # pull docs from docstrings
# 'sphinx_autodoc_typehints', # type hints # TODO: remove this from reqs
"sphinx.ext.intersphinx", # link to other projects
"sphinx.ext.todo", # support TODOs
"sphinx.ext.ifconfig", # include stuff based on configuration
"sphinx.ext.viewcode", # add source code
# 'myst_parser', # add MD files # not needed if myst_nb is used!
"sphinx.ext.autosummary", # pull doc from docstrings
"sphinx.ext.autosummary", # pull docs from docstrings
# 'nbsphinx', # add Jupyter notebooks
"myst_nb", # add Jupyter notebooks
"sphinx.ext.napoleon", # 'sphinxcontrib.napoleon' is deprecated # Google style doc
"sphinx.ext.napoleon", # 'sphinxcontrib.napoleon' is deprecated # Google style docs
]
autodoc_default_options = {
"members": True, # when set to True, Sphinx will automatically document all members
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion tests/test_notebooks.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ def run_notebook(self, notebook_name):
# Get the absolute path of the notebook dynamically
root_path = Path(__file__).parent.parent
notebook_path = (
root_path / "doc" / "source" / "tutorials" / f"{notebook_name}.ipynb"
root_path / "docs" / "source" / "tutorials" / f"{notebook_name}.ipynb"
)

# Store the current directory
Expand Down

0 comments on commit 370a1c3

Please sign in to comment.