Skip to content

Commit

Permalink
[Documentation] Improve documentation (#207)
Browse files Browse the repository at this point in the history
* Start reworking docs.

* Update version handling in conf.py

* Fix reference toctrees.

* Small fixes.

* Fixes to code examples for transfer.

* Typo fix.

Co-authored-by: Niko Sirmpilatze <[email protected]>

* Typo fix.

Co-authored-by: Niko Sirmpilatze <[email protected]>

* Typo fix.

Co-authored-by: Niko Sirmpilatze <[email protected]>

* Typo fix.

Co-authored-by: Niko Sirmpilatze <[email protected]>

* Typo fix.

Co-authored-by: Niko Sirmpilatze <[email protected]>

* Typo fix.

Co-authored-by: Niko Sirmpilatze <[email protected]>

* Typo fix.

Co-authored-by: Niko Sirmpilatze <[email protected]>

* Typo fix.

Co-authored-by: Niko Sirmpilatze <[email protected]>

* Update installation instructions.

* Update bad make-folders example.

* Improve zsh warning for @*@ tag.

* Use explicit targets to link CLI and API reference.

* Swap dot for info on example.

* Use real windows path in example.

* Rename 'Get Started' to 'User Guide'.

* Small fixes.

---------

Co-authored-by: Niko Sirmpilatze <[email protected]>
  • Loading branch information
JoeZiminski and niksirbi authored Oct 25, 2023
1 parent c02a68f commit d0269b7
Show file tree
Hide file tree
Showing 5 changed files with 800 additions and 308 deletions.
13 changes: 8 additions & 5 deletions docs/source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,11 @@
project = "datashuttle"
copyright = "2022, Neuroinformatics Unit"
author = "Neuroinformatics Unit"

# Retrieve the version number from the package
try:
release = setuptools_scm.get_version(root="../..", relative_to=__file__)
release = release.split(".dev")[0] # remove dev tag and git hash
except LookupError:
# if git is not initialised, still allow local build
# with a dummy version
Expand Down Expand Up @@ -72,7 +75,7 @@
#toc_object_entries_show_parents = "all"
html_show_sourcelink = False

#html_sidebars = { # grr this is not working...
#html_sidebars = { this is not working...
# "index": [],
# "**": [],
#}
Expand Down Expand Up @@ -130,20 +133,20 @@
}
],
"logo": {
"text": f"DataShuttle. version: {release}",
"text": f"Datashuttle v{release}",
"image_light": "_static/logo_light.png",
"image_dark": "_static/logo_dark.png",
},
"footer_start": ["footer_start"],
"footer_end": ["footer_end"],
# "show_toc_level": 2 # sidebar levels that are expanded before scrolling
"show_toc_level": 2, # sidebar levels that are expanded before scrolling
# "secondary_sidebar_items": [],
# "page_sidebar_items": [],
# "page_sidebar_items": [],
}

# Redirect the webpage to another URL
# Sphinx will create the appropriate CNAME file in the build directory
# The default is the URL of the GitHub pages
# https://www.sphinx-doc.org/en/master/usage/extensions/githubpages.html
github_user = "JoeZiminski"
html_baseurl = "https://datashuttle.neuroinformatics.dev/" # f"http(s)://{github_user}.github.io/{project}"
html_baseurl = "https://datashuttle.neuroinformatics.dev/"
2 changes: 1 addition & 1 deletion docs/source/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ Any feedback is much appreciated, please open at [GitHub Issue](https://github.c
::::{grid} 1 2 2 3
:gutter: 3

:::{grid-item-card} Get Started
:::{grid-item-card} User Guide
:link: pages/documentation
:link-type: doc

Expand Down
2 changes: 2 additions & 0 deletions docs/source/pages/api_index.rst
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
.. _API_Reference:

API Reference
-----------------

Expand Down
2 changes: 2 additions & 0 deletions docs/source/pages/cli_index.rst
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
.. _CLI_Reference:

CLI Reference
-----------------

Expand Down
Loading

0 comments on commit d0269b7

Please sign in to comment.