-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1 from lsst-sqre/tickets/DM-31910
DM-31910: Set up noteburst repository
- Loading branch information
Showing
21 changed files
with
1,111 additions
and
56 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,41 @@ | ||
name: Docs | ||
|
||
"on": | ||
push: | ||
branches: | ||
- main | ||
- master | ||
- "tickets/**" | ||
paths: | ||
- "docs/**" | ||
- "src/**.py" | ||
- "CHANGELOG.rst" | ||
tags: | ||
- "*" | ||
|
||
jobs: | ||
docs: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
|
||
- name: Set up Python | ||
uses: actions/setup-python@v2 | ||
with: | ||
python-version: 3.8 | ||
|
||
- name: Install tox and LTD Conveyor | ||
run: pip install tox ltd-conveyor | ||
|
||
- name: Install graphviz and ImageMagick | ||
run: sudo apt-get install graphviz imagemagick | ||
|
||
- name: Run tox | ||
run: tox -e docs | ||
|
||
- name: Upload to LSST the Docs | ||
env: | ||
LTD_USERNAME: ${{ secrets.LTD_USERNAME }} | ||
LTD_PASSWORD: ${{ secrets.LTD_PASSWORD }} | ||
run: ltd upload --product noteburst --gh --dir docs/_build/html |
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,8 @@ | ||
########## | ||
Change log | ||
########## | ||
|
||
0.1.0 (2021-09-29) | ||
================== | ||
|
||
- Initial development version of Noteburst. |
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
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
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 @@ | ||
../CHANGELOG.rst |
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,167 @@ | ||
import importlib.metadata | ||
|
||
import lsst_sphinx_bootstrap_theme | ||
|
||
# Common links and substitutions ============================================= | ||
|
||
rst_epilog = """ | ||
.. _mypy: http://www.mypy-lang.org | ||
.. _pre-commit: https://pre-commit.com | ||
.. _pytest: https://docs.pytest.org/en/latest/ | ||
.. _tox: https://tox.readthedocs.io/en/latest/ | ||
""" | ||
|
||
# Extensions ================================================================= | ||
|
||
extensions = [ | ||
"sphinx.ext.autodoc", | ||
# "sphinx.ext.autodoc.typehints", | ||
"sphinx.ext.napoleon", | ||
"sphinx.ext.doctest", | ||
"sphinx.ext.intersphinx", | ||
"sphinx.ext.todo", | ||
"sphinx_automodapi.automodapi", | ||
"sphinx_automodapi.smart_resolver", | ||
"sphinx_click", | ||
"documenteer.sphinxext", | ||
] | ||
|
||
# General configuration ====================================================== | ||
|
||
source_suffix = ".rst" | ||
|
||
# The master toctree document. | ||
master_doc = "index" | ||
|
||
# General information about the project. | ||
project = "Noteburst" | ||
copyright = ( | ||
"2021 " | ||
"Association of Universities for Research in Astronomy, Inc. (AURA)" | ||
) | ||
author = "LSST Data Management" | ||
|
||
version = importlib.metadata.metadata("noteburst").get("Version") | ||
release = version | ||
|
||
# List of patterns, relative to source directory, that match files and | ||
# directories to ignore when looking for source files. | ||
exclude_patterns = ["_build", "README.rst"] | ||
|
||
# The name of the Pygments (syntax highlighting) style to use. | ||
pygments_style = "sphinx" | ||
|
||
# The reST default role cross-links Python (used for this markup: `text`) | ||
default_role = "py:obj" | ||
|
||
# Intersphinx ================================================================ | ||
|
||
intersphinx_mapping = { | ||
"python": ("https://docs.python.org/3/", None), | ||
} | ||
|
||
intersphinx_timeout = 10.0 # seconds | ||
intersphinx_cache_limit = 5 # days | ||
|
||
# Linkcheck builder ========================================================== | ||
|
||
linkcheck_retries = 2 | ||
|
||
# linkcheck_ignore = [r'^https://jira.lsstcorp.org/browse/'] | ||
|
||
linkcheck_timeout = 15 | ||
|
||
# HTML builder =============================================================== | ||
|
||
html_baseurl = "https://noteburst.lsst.io" | ||
|
||
templates_path = [ | ||
"_templates", | ||
lsst_sphinx_bootstrap_theme.get_html_templates_path(), | ||
] | ||
|
||
html_theme = "lsst_sphinx_bootstrap_theme" | ||
html_theme_path = [lsst_sphinx_bootstrap_theme.get_html_theme_path()] | ||
|
||
html_context = {} | ||
|
||
# Theme options are theme-specific and customize the look and feel of a theme | ||
# further. For a list of options available for each theme, see the | ||
# documentation. | ||
html_theme_options = {"logotext": project} | ||
|
||
# The name for this set of Sphinx documents. If None, it defaults to | ||
# "<project> v<release> documentation". | ||
html_title = f"{project} v{version}" | ||
|
||
# A shorter title for the navigation bar. Default is the same as html_title. | ||
html_short_title = project | ||
|
||
# Add any paths that contain custom static files (such as style sheets) here, | ||
# relative to this directory. They are copied after the builtin static files, | ||
# so a file named "default.css" will overwrite the builtin "default.css". | ||
html_static_path = [] | ||
|
||
# If true, links to the reST sources are added to the pages. | ||
html_show_sourcelink = False | ||
|
||
# Do not copy reST source for each page into the build | ||
html_copy_source = False | ||
|
||
# If false, no module index is generated. | ||
html_domain_indices = True | ||
|
||
# If false, no index is generated. | ||
html_use_index = True | ||
|
||
# API Reference ============================================================== | ||
|
||
napoleon_google_docstring = False | ||
napoleon_numpy_docstring = True | ||
napoleon_include_init_with_doc = False | ||
napoleon_include_private_with_doc = False | ||
napoleon_include_special_with_doc = True | ||
napoleon_use_admonition_for_examples = False | ||
napoleon_use_admonition_for_notes = False | ||
napoleon_use_admonition_for_references = False | ||
napoleon_use_ivar = False | ||
napoleon_use_keyword = True # TODO | ||
napoleon_use_param = True | ||
napoleon_use_rtype = True | ||
|
||
autosummary_generate = True | ||
|
||
automodapi_inheritance_diagram = False | ||
automodapi_toctreedirnm = "api" | ||
automodsumm_inherited_members = False | ||
|
||
# Docstrings for classes and methods are inherited from parents. | ||
autodoc_inherit_docstrings = True | ||
|
||
# Class documentation should only contain the class docstring and | ||
# ignore the __init__ docstring, account to LSST coding standards. | ||
autoclass_content = "class" | ||
|
||
# Default flags for automodapi directives. Special members are dunder | ||
# methods. | ||
autodoc_default_options = { | ||
"show-inheritance": False, | ||
"special-members": True, | ||
} | ||
|
||
# Render inheritance diagrams in SVG | ||
graphviz_output_format = "svg" | ||
|
||
graphviz_dot_args = [ | ||
"-Nfontsize=10", | ||
"-Nfontname=Helvetica Neue, Helvetica, Arial, sans-serif", | ||
"-Efontsize=10", | ||
"-Efontname=Helvetica Neue, Helvetica, Arial, sans-serif", | ||
"-Gfontsize=10", | ||
"-Gfontname=Helvetica Neue, Helvetica, Arial, sans-serif", | ||
] | ||
|
||
# TODO extension ============================================================= | ||
|
||
todo_include_todos = 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
######### | ||
Noteburst | ||
######### | ||
|
||
Noteburst is a Rubin Science Platform service that coordinates running Jupyter Notebooks in a JupyterLab context. | ||
Noteburst can be used by CI and monitoring services, as well as for applications that need to compute and render Jupyter Notebooks programatically. | ||
|
||
.. toctree:: | ||
|
||
changelog |
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
Oops, something went wrong.