Skip to content

Commit

Permalink
Merge pull request #26 from conda-incubator/conda-sphinx-theme
Browse files Browse the repository at this point in the history
Updating to conda-sphinx-theme
  • Loading branch information
travishathaway authored Dec 12, 2023
2 parents 437ca60 + 24c07fc commit c739459
Show file tree
Hide file tree
Showing 5 changed files with 32 additions and 76 deletions.
16 changes: 6 additions & 10 deletions docs/_static/css/custom.css
Original file line number Diff line number Diff line change
@@ -1,11 +1,7 @@
html[data-theme="light"] {
--pst-color-primary: #025C02;
--pst-color-secondary: #3EB049;
--pst-color-link-hover: #3EB049;
}

html[data-theme="dark"] {
--pst-color-primary: #3EB049;
--pst-color-secondary: #025C02;
--pst-color-link-hover: #025C02;
/**
* This rule is here to avoid the scrollbar appearing when this
* is not hosted on ReadTheDocs
*/
#rtd-footer-container {
display: none;
}
14 changes: 14 additions & 0 deletions docs/_templates/navbar_center.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
<ul id="navbar-main-elements" class="navbar-nav">
<li class="nav-item current active">
<a class="reference internal nav-link" href="{{ pathto("index") }}">{{ project }}</a>
</li>
<li class="nav-item {% if project == "conda" %}current active{% endif %}">
<a class="reference internal nav-link" href="https://docs.conda.io/projects/conda/">Conda</a>
</li>
<li class="nav-item {% if project == "conda-build" %}current active{% endif %}">
<a class="reference internal nav-link" href="https://docs.conda.io/projects/conda-build/">Conda-build</a>
</li>
<li class="nav-item {% if project == "miniconda" %}current active{% endif %}">
<a class="reference internal nav-link" href="https://docs.conda.io/projects/miniconda/">Miniconda</a>
</li>
</ul>
16 changes: 8 additions & 8 deletions docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@
# -- Options for HTML output -------------------------------------------------
# https://www.sphinx-doc.org/en/master/usage/configuration.html#options-for-html-output

html_theme = "pydata_sphinx_theme"
html_theme = "conda_sphinx_theme"
html_static_path = ["_static"]

html_css_files = [
Expand All @@ -64,14 +64,14 @@

html_theme_options = {
"github_url": "https://github.com/conda-incubator/conda-auth",
"collapse_navigation": False,
"navigation_depth": 1,
# The maximum depth of the table of contents tree. Set this to -1 to allow
# unlimited depth.
"navigation_depth": -1,
"show_prev_next": False,
# Navbar icon links
"navbar_start": ["navbar-logo"],
"use_edit_page_button": True,
"show_toc_level": 1,
"navbar_align": "left",
"header_links_before_dropdown": 6,
"show_nav_level": 2,
# "announcement": "<p>This is the documentation of the new conda-libmamba-solver plugin!</p>",
"navbar_center": ["navbar_center"],
}

html_context = {
Expand Down
2 changes: 1 addition & 1 deletion docs/dev/code-of-conduct.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,4 @@ Thank you for helping make this a welcoming, friendly community for all.

* Report a code of conduct incident [using a form](https://form.jotform.com/221527028480048).
* Report a code of conduct incident via email: [[email protected]](mailto:[email protected]).
* Contact [an individual committee member](#committee-membership) or [CoC event representative](#coc-representatives) to report an incident in confidence.
* Contact [an individual committee member](https://github.com/conda-incubator/governance/blob/main/CODE_OF_CONDUCT.md#committee-membership) or [CoC event representative](https://github.com/conda-incubator/governance/blob/main/CODE_OF_CONDUCT.md#coc-representatives) to report an incident in confidence.
60 changes: 3 additions & 57 deletions docs/environment.yml
Original file line number Diff line number Diff line change
@@ -1,56 +1,12 @@
name: conda-auth-docs
channels:
- conda-forge
- defaults
dependencies:
- alabaster=0.7.12
- babel=2.11.0
- beautifulsoup4=4.11.1
- brotlipy=0.7.0
- bzip2=1.0.8
- ca-certificates=2022.9.24
- certifi=2022.9.24
- cffi=1.15.1
- charset-normalizer=2.1.1
- colorama=0.4.6
- cryptography=38.0.3
- docutils=0.19
- idna=3.4
- imagesize=1.4.1
- importlib-metadata=5.1.0
- jinja2=3.1.2
- libffi=3.4.2
- libsqlite=3.40.0
- libzlib=1.2.13
- linkify-it-py=2.0.0
- markdown-it-py=2.1.0
- markupsafe=2.1.1
- mdit-py-plugins=0.3.1
- mdurl=0.1.0
- conda-sphinx-theme==0.1.3
- linkify-it-py==2.0.0
- myst-parser=0.18.1
- ncurses=6.3
- openssl=3.0.7
- packaging=21.3
- pip=22.3.1
- pycparser=2.21
- pydata-sphinx-theme=0.12.0
- pygments=2.13.0
- pyopenssl=22.1.0
- pyparsing=3.0.9
- pysocks=1.7.1
- python=3.11.0
- python_abi=3.11
- pytz=2022.6
- pyyaml=6.0
- readline=8.1.2
- requests=2.28.1
- setuptools=65.5.1
- six=1.16.0
- snowballstemmer=2.2.0
- soupsieve=2.3.2.post1
- sphinx=5.3.0
- sphinx-copybutton=0.5.0
- sphinx-design=0.3.0
- sphinx-design=0.5.0
- sphinx-sitemap=2.2.1
- sphinxcontrib-applehelp=1.0.2
- sphinxcontrib-devhelp=1.0.2
Expand All @@ -59,13 +15,3 @@ dependencies:
- sphinxcontrib-mermaid=0.7.1
- sphinxcontrib-qthelp=1.0.3
- sphinxcontrib-serializinghtml=1.1.5
- tk=8.6.12
- typing-extensions=4.4.0
- typing_extensions=4.4.0
- tzdata=2022f
- uc-micro-py=1.0.1
- urllib3=1.26.13
- wheel=0.38.4
- xz=5.2.6
- yaml=0.2.5
- zipp=3.10.0

0 comments on commit c739459

Please sign in to comment.