Skip to content

Commit

Permalink
Define meta-data, define theme
Browse files Browse the repository at this point in the history
  • Loading branch information
basejumpa committed Nov 6, 2023
1 parent 4762af8 commit 9f23cf3
Show file tree
Hide file tree
Showing 5 changed files with 71 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/run.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ jobs:
pipenv install -r requirements.txt
- name: Build main website
run: pipenv run sphinx-build doc build/html
run: ./run.sh

- name: Upload website to artifacts
uses: actions/upload-pages-artifact@v1
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
.venv/
Pipfile
Pipfile.lock
build/
64 changes: 64 additions & 0 deletions doc/conf.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,64 @@
# -*- coding: utf-8 -*-
"""Sphinx configuration file."""

from setuptools_scm import get_version

# -- Project information -----------------------------------------------------
# @see https://www.sphinx-doc.org/en/master/usage/configuration.html#project-information

project = "Basejumpa's Website"

version = get_version(root='..', relative_to=__file__)
release = version

author = 'Alexander Mann-Wahrenberg'
copyright = f"2012 .. 2023, {author}"


# -- General configuration ---------------------------------------------------
# @see https://www.sphinx-doc.org/en/master/usage/configuration.html#general-configuration
# @see https://www.sphinx-doc.org/en/master/development/tutorials/helloworld.html

extensions = [
'sphinx.ext.githubpages', # @see https://www.sphinx-doc.org/en/master/usage/extensions/githubpages.html
]

exclude_patterns = [
]


# -- Options for HTML output with theme "sphinx_material" -------------------
# @see https://www.sphinx-doc.org/en/master/usage/configuration.html#options-for-html-output
# @see https://bashtage.github.io/sphinx-material/customization.html

html_title = f"Basejumpa {version}"
# html_logo = 'path'

# Hide hyper link which leeds to the source of page displayed
html_show_sourcelink = False

html_sidebars = {
"**": ["logo-text.html", "globaltoc.html", "localtoc.html", "searchbox.html"]
}

html_theme = 'sphinx_material'

html_theme_options = {
'nav_title' : f"Basejumpa's website",
'base_url' : 'https://basejumpa.github.io/',

'repo_url' : 'https://github.com/basejumpa/basejumpa.github.io',
'repo_name' : 'basejumpa.github.io',

'color_primary': 'light-blue',
'color_accent' : 'yellow',

'globaltoc_depth' : 3,
'globaltoc_collapse' : 'true',
'globaltoc_includehidden': 'true',
}

# -- Options for XXXXXXXXXXXXXXXXX ------------------------------------------
# @see

#EOF
2 changes: 2 additions & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -1 +1,3 @@
sphinx
setuptools-scm
sphinx-material
3 changes: 3 additions & 0 deletions run.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#!/usr/bin/env bash

pipenv run sphinx-build doc build/html

0 comments on commit 9f23cf3

Please sign in to comment.