Skip to content

Commit

Permalink
Fix broken links when not in dropdown (#221)
Browse files Browse the repository at this point in the history
* Fix broken links when not in dropdown

* Remove cadair repos - Merge when the other repos are working

---------

Co-authored-by: Nabil Freij <[email protected]>
  • Loading branch information
Cadair and nabobalis authored Sep 8, 2023
1 parent 82b1d1f commit 29583e2
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 4 deletions.
1 change: 0 additions & 1 deletion docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,3 @@

# -- Options for HTML output -------------------------------------------------
html_theme = "sunpy"
html_static_path = ["_static"]
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
</ul>
</li>
{% else %}
<li class="nav-item ms-2"><a class="nav-link" role="button" href="{{ pathto(*navlink[1:]) }}">{{ navlink[0] }}</a></li>
<li class="nav-item ms-2"><a class="nav-link" role="button" href="{{ sst_pathto(*navlink[1:]) }}">{{ navlink[0] }}</a></li>
{% endif %}
{%- endfor %}
{% endif %}
Expand Down
4 changes: 2 additions & 2 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -28,15 +28,15 @@ commands =
[testenv:sunpy-docs]
changedir = .tmp/{envname}
commands =
/bin/bash -c "git -C sunpy pull || git clone https://github.com/Cadair/sunpy --branch sphinx-book-theme"
/bin/bash -c "git -C sunpy pull || git clone https://github.com/sunpy/sunpy"
python -m pip install -v -e "sunpy/.[all,docs]"
sphinx-build --color -b html sunpy/docs sunpy/docs/_build/html -D plot_gallery=0 {posargs}
python -c 'import pathlib; print("Documentation available under file://\{0\}".format(pathlib.Path("./sunpy/docs") / "_build" / "html" / "index.html"))'

[testenv:website]
changedir = .tmp/{envname}
commands =
/bin/bash -c "git -C sunpy.org pull || git clone --recurse-submodules https://github.com/sunpy/sunpy.org --branch sphinx-book-theme"
/bin/bash -c "git -C sunpy.org pull || git clone --recurse-submodules https://github.com/sunpy/sunpy.org"
python -m pip install -r "sunpy.org/requirements.txt"
sphinx-build --color -b html sunpy.org/ sunpy.org/_build/html {posargs}
python -c 'import pathlib; print("Documentation available under file://\{0\}".format(pathlib.Path("./sunpy.org") / "_build" / "html" / "index.html"))'

0 comments on commit 29583e2

Please sign in to comment.