Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 16 additions & 0 deletions .github/workflows/tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,22 @@ jobs:
- name: run django tests
run: tox -e ${{ matrix.tox }}

docs:
name: "docs"
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: '3.12'
cache: pip
- name: install dependencies
run: |
pip install -e .
pip install sphinx -r docs/requirements.txt
- name: build docs
run: sphinx-build -W -b html docs docs/_build/html

typecheck:
name: "typecheck"
runs-on: ubuntu-latest
Expand Down
Empty file added docs/_static/.gitkeep
Empty file.
6 changes: 4 additions & 2 deletions docs/conf.py
Original file line number Diff line number Diff line change
@@ -1,12 +1,14 @@
import sys, os
sys.path.append(os.path.abspath('_themes'))
sys.path.append(os.path.abspath('..'))
sys.path.append(os.path.abspath('.'))

from conf_base import *
from conf_theme_alabaster import *

#from conf_theme_flask import *

version = '0.5'
release = '0.5.1'
from emails import __version__ as _emails_version
version = '.'.join(_emails_version.split('.')[:2])
release = _emails_version
html_theme_path = ['_themes', ] + html_theme_path
3 changes: 1 addition & 2 deletions docs/conf_base.py
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,6 @@
html_theme_options = {
'github_user': 'lavr',
'github_repo': 'python-emails',
'travis_button': True
}

# Theme options are theme-specific and customize the look and feel of a theme
Expand Down Expand Up @@ -279,4 +278,4 @@


# Example configuration for intersphinx: refer to the Python standard library.
intersphinx_mapping = {'http://docs.python.org/': None}
intersphinx_mapping = {'python': ('https://docs.python.org/3', None)}
1 change: 0 additions & 1 deletion docs/conf_theme_alabaster.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,5 @@
'github_user': 'lavr',
'github_repo': 'python-emails',
'github_banner': True,
'travis_button': True,
'code_font_size': '0.8em'
}
Loading