Skip to content

Commit

Permalink
Merge pull request #78 from stefmolin/publish-docs
Browse files Browse the repository at this point in the history
Changes in preparation to publish docs


skip-checks: true
  • Loading branch information
stefmolin authored Apr 1, 2023
2 parents d3d2f38 + 75e06c9 commit b11d33e
Show file tree
Hide file tree
Showing 6 changed files with 27 additions and 22 deletions.
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ wheels/
*.egg-info/
.installed.cfg
*.egg
generated/
docs/api/

# PyInstaller
# Usually these files are written by a python script from a template
Expand Down
4 changes: 1 addition & 3 deletions docs/README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
# Docs

1. Install the docs dependencies: `pip install '.[docs]'`.
2. From this directory, run `python3 -m sphinx -b html . build`.

*Note: Remove the `generated` directory to start fresh, if needed.*
2. From this directory, run `python3 -m sphinx -b html . _build/<version>`.
12 changes: 12 additions & 0 deletions docs/_static/switcher.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
[
{
"name": "v0.1.0 (stable)",
"version": "0.1.0",
"url": "https://stefmolin.github.io/data-morph/0.1.0/index.html"
},
{
"name": "dev",
"version": "dev",
"url": "https://stefmolin.github.io/data-morph/main/index.html"
}
]
2 changes: 1 addition & 1 deletion docs/api.rst
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ API
.. rubric:: Modules

.. autosummary::
:toctree: generated
:toctree: api
:recursive:

data_morph.bounds
Expand Down
27 changes: 11 additions & 16 deletions docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,7 @@

project = 'Data Morph'
current_year = dt.date.today().year
copyright = (
f'2023{f"-{current_year}" if current_year != 2023 else ""}, ' 'Stefanie Molin'
)
copyright = f'2023{f"-{current_year}" if current_year != 2023 else ""}, Stefanie Molin'
author = 'Stefanie Molin'
release = data_morph.__version__

Expand Down Expand Up @@ -93,22 +91,19 @@
html_favicon = '_static/favicon.ico'

html_theme_options = {
"github_url": "https://github.com/stefmolin/data-morph",
"twitter_url": "https://twitter.com/StefanieMolin",
"show_toc_level": 1,
"navbar_align": "left",
# "navbar_center": ["version-switcher", "navbar-nav"],
# "switcher": {
# "json_url": json_url,
# "version_match": version_match,
# },
'github_url': 'https://github.com/stefmolin/data-morph',
'twitter_url': 'https://twitter.com/StefanieMolin',
'show_toc_level': 1,
'navbar_align': 'left',
'navbar_center': ['version-switcher', 'navbar-nav'],
'switcher': {'json_url': '_static/switcher.json', 'version_match': release},
}

html_context = {
"github_user": "stefmolin",
"github_repo": "data-morph",
"github_version": "main",
"doc_path": "docs",
'github_user': 'stefmolin',
'github_repo': 'data-morph',
'github_version': 'main',
'doc_path': 'docs',
}


Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ authors = [
{name = "Justin Matejka", email = "[email protected]"}
]
maintainers = [
{name = "Stefanie Molin", email = "[email protected]"},
{name = "Stefanie Molin"},
]
description = "Teaching tool on the importance of data visualization."
readme = "README.rst"
Expand Down

0 comments on commit b11d33e

Please sign in to comment.