Skip to content

Commit

Permalink
Cleanup, rename static & templates to _static & _templates
Browse files Browse the repository at this point in the history
  • Loading branch information
c-randall committed Nov 8, 2024
1 parent 9862dc4 commit 0a5886a
Show file tree
Hide file tree
Showing 17 changed files with 17 additions and 17 deletions.
10 changes: 6 additions & 4 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,22 +29,24 @@ on:
jobs:
lint:
name: (Lint ${{ matrix.python-version }}, ${{ matrix.os }})

runs-on: ${{ matrix.os }}

strategy:
fail-fast: false
matrix:
os: ['ubuntu-latest']
os: [ubuntu-latest]
python-version: ['3.13']

defaults:
run:
shell: bash -l {0}

steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
- name: Checkout repository
uses: actions/checkout@v4

- name: Setup python
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}

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
File renamed without changes.
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes.
10 changes: 4 additions & 6 deletions docs/source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
'sphinx_copybutton',
]

templates_path = ['templates']
templates_path = ['_templates']

exclude_patterns = [
'build',
Expand Down Expand Up @@ -58,14 +58,12 @@
# html_favicon = 'static/favicon.ico'
html_context = {'default_mode': 'dark'}

html_static_path = ['static']
html_static_path = ['_static']
html_js_files = ['custom.js']
html_css_files = ['custom.css']

html_sidebars = {'index': [], '**': ['sidebar-nav-bs']}

html_logo = None

html_theme_options = {
# 'logo': {
# 'image_light': 'static/light.png',
Expand All @@ -86,8 +84,8 @@
'navbar_start': ['navbar-logo'],
'navbar_align': 'content',
'header_links_before_dropdown': 5,
'footer_start': ['copyright.html'],
'footer_end': ['sphinx-version.html'],
'footer_start': ['copyright'],
'footer_end': ['sphinx-version'],
'navbar_persistent': ['search-button-field'],
'primary_sidebar_end': ['sidebar-ethical-ads'],
'secondary_sidebar_items': ['page-toc'],
Expand Down
8 changes: 4 additions & 4 deletions docs/source/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ DAEs with no algebraic constraints).
Access installation instructions and in-depth
information on solver concepts and settings.

.. image:: static/user_guide.svg
.. image:: _static/user_guide.svg
:class: bg-transparent
:align: center
:height: 75px
Expand All @@ -88,7 +88,7 @@ DAEs with no algebraic constraints).
Get detailed documentation on all of the modules,
functions, classes, etc.

.. image:: static/api_reference.svg
.. image:: _static/api_reference.svg
:class: bg-transparent
:align: center
:height: 75px
Expand All @@ -108,7 +108,7 @@ DAEs with no algebraic constraints).
A great place to learn how to use the package and
expand your skills.

.. image:: static/examples.svg
.. image:: _static/examples.svg
:class: bg-transparent
:align: center
:height: 75px
Expand All @@ -128,7 +128,7 @@ DAEs with no algebraic constraints).
Trying to fix a typo in the documentation? Looking
to improve or add a new feature?

.. image:: static/development.svg
.. image:: _static/development.svg
:class: bg-transparent
:align: center
:height: 75px
Expand Down
6 changes: 3 additions & 3 deletions noxfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ def run_codespell(session):
@nox.session(name='spellcheck', python=False)
def run_spellcheck(session):
"""
Run codespell with some docs files indcluded
Run codespell with docs files included
Use the optional 'write' argument to write the corrections directly into
the files. Otherwise, you will only see a summary of the found errors.
Expand Down Expand Up @@ -152,8 +152,8 @@ def run_pre_commit(session):
"""
Run all linters/tests and make new badges
Order of sessions: flake8, codespell, pytest, genbade. Using 'write' for
codespell and/or 'parallel' for pytest is permitted.
Order of sessions: flake8, codespell, pytest, genbade. Using 'format' for
linter, 'write' for codespell, and/or 'parallel' for pytest is permitted.
"""

Expand Down

0 comments on commit 0a5886a

Please sign in to comment.