-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Migrate to quickstart * Add config for Sphinx documentation * Update README * Remove unnecessary content * Create GH action documentation workflow
- Loading branch information
Showing
13 changed files
with
387 additions
and
165 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
name: Publish Documentation on GitHub Pages | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: Set up Python | ||
uses: actions/setup-python@v4 | ||
with: | ||
python-version: "3.10" | ||
cache: "pip" | ||
- name: Dependencies | ||
run: | | ||
if [ -f pyproject.toml ]; then pip install ".[docs]"; fi | ||
- name: Build Sphinx Documentation | ||
run: | | ||
sphinx-build docs _build/html -b html | ||
- name: Deploy | ||
uses: peaceiris/actions-gh-pages@v3 | ||
if: job.status == 'success' | ||
with: | ||
github_token: ${{ secrets.GITHUB_TOKEN }} | ||
publish_dir: ./_build/html | ||
enable_jekyll: false |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
../README.md |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
# Book settings | ||
title: | ||
author: Development Data Group | ||
logo: images/logo.png | ||
only_build_toc_files: true | ||
|
||
repository: | ||
url: https://github.com/worldbank/blackmarblepy | ||
branch: main | ||
|
||
####################################################################################### | ||
# HTML-specific settings | ||
html: | ||
home_page_in_navbar: false | ||
extra_navbar: "" | ||
use_edit_page_button: true | ||
use_repository_button: true | ||
use_issues_button: true | ||
baseurl: https://worldbank.github.io/blackmarblepy | ||
|
||
####################################################################################### | ||
# Execution settings | ||
execute: | ||
execute_notebooks: "off" | ||
|
||
####################################################################################### | ||
# Bibliography settings | ||
bibtex_bibfiles: | ||
- bibliography.bib | ||
|
||
####################################################################################### | ||
# Sphinx settings | ||
sphinx: | ||
config: | ||
html_show_copyright: false | ||
html_last_updated_fmt: "%b %d, %Y" | ||
apidoc_module_dir: "../src" | ||
extra_extensions: | ||
- "sphinxcontrib.apidoc" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
format: jb-book | ||
root: README | ||
|
||
parts: | ||
- caption: Documentation | ||
chapters: | ||
- file: api/blackmarble.rst | ||
- file: CONTRIBUTING | ||
- caption: Examples | ||
chapters: | ||
- file: quickstart | ||
- file: examples/blackmarbley_example.ipynb |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,78 @@ | ||
############################################################################### | ||
# Auto-generated by `jupyter-book config` | ||
# If you wish to continue using _config.yml, make edits to that file and | ||
# re-generate this one. | ||
############################################################################### | ||
apidoc_module_dir = "../src" | ||
author = "Development Data Group" | ||
bibtex_bibfiles = ["bibliography.bib"] | ||
comments_config = {"hypothesis": False, "utterances": False} | ||
copyright = "2022" | ||
exclude_patterns = ["**.ipynb_checkpoints", ".DS_Store", "Thumbs.db", "_build"] | ||
extensions = [ | ||
"sphinx_togglebutton", | ||
"sphinx_copybutton", | ||
"myst_nb", | ||
"jupyter_book", | ||
"sphinx_thebe", | ||
"sphinx_comments", | ||
"sphinx_external_toc", | ||
"sphinx.ext.intersphinx", | ||
"sphinx_design", | ||
"sphinx_book_theme", | ||
"sphinxcontrib.bibtex", | ||
"sphinx_jupyterbook_latex", | ||
"sphinxcontrib.apidoc", | ||
] | ||
external_toc_exclude_missing = True | ||
external_toc_path = "_toc.yml" | ||
extra_extensions = ["sphinxcontrib.apidoc"] | ||
html_baseurl = "https://worldbank.github.io/blackmarblepy" | ||
html_favicon = "" | ||
html_last_updated_fmt = "%b %d, %Y" | ||
html_logo = "images/logo.png" | ||
html_show_copyright = False | ||
html_sourcelink_suffix = "" | ||
html_theme = "sphinx_book_theme" | ||
html_theme_options = { | ||
"search_bar_text": "Search this book...", | ||
"launch_buttons": { | ||
"notebook_interface": "classic", | ||
"binderhub_url": "", | ||
"jupyterhub_url": "", | ||
"thebe": False, | ||
"colab_url": "", | ||
}, | ||
"path_to_docs": "", | ||
"repository_url": "https://github.com/worldbank/blackmarblepy", | ||
"repository_branch": "main", | ||
"extra_footer": "", | ||
"home_page_in_toc": False, | ||
"announcement": "", | ||
"analytics": {"google_analytics_id": ""}, | ||
"use_repository_button": True, | ||
"use_edit_page_button": True, | ||
"use_issues_button": True, | ||
} | ||
html_title = "" | ||
latex_engine = "pdflatex" | ||
myst_enable_extensions = [ | ||
"colon_fence", | ||
"dollarmath", | ||
"linkify", | ||
"substitution", | ||
"tasklist", | ||
] | ||
myst_url_schemes = ["mailto", "http", "https"] | ||
nb_execution_allow_errors = False | ||
nb_execution_cache_path = "" | ||
nb_execution_excludepatterns = [] | ||
nb_execution_in_temp = False | ||
nb_execution_mode = "off" | ||
nb_execution_timeout = 30 | ||
nb_output_stderr = "show" | ||
numfig = True | ||
pygments_style = "sphinx" | ||
suppress_warnings = ["myst.domains"] | ||
use_jupyterbook_latex = True | ||
use_multitoc_numbering = True |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
../examples |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.