-
Notifications
You must be signed in to change notification settings - Fork 457
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 #12 from lengau/sphinx
docs: Basic sphinx docs
- Loading branch information
Showing
10 changed files
with
208 additions
and
1 deletion.
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,27 @@ | ||
# .readthedocs.yaml | ||
# Read the Docs configuration file | ||
# See https://docs.readthedocs.io/en/stable/config-file/v2.html for details | ||
|
||
# Required | ||
version: 2 | ||
|
||
# Build documentation in the docs/ directory with Sphinx | ||
sphinx: | ||
configuration: docs/conf.py | ||
|
||
# Optionally build your docs in additional formats such as PDF | ||
formats: | ||
- epub | ||
|
||
build: | ||
os: ubuntu-22.04 | ||
tools: | ||
python: "3" | ||
|
||
python: | ||
install: | ||
- method: pip | ||
path: . | ||
extra_requirements: | ||
- docs |
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,59 @@ | ||
# Configuration file for the Sphinx documentation builder. | ||
# | ||
# For the full list of built-in configuration values, see the documentation: | ||
# https://www.sphinx-doc.org/en/master/usage/configuration.html | ||
|
||
# -- Project information ----------------------------------------------------- | ||
# https://www.sphinx-doc.org/en/master/usage/configuration.html#project-information | ||
|
||
project = "starcraft" | ||
copyright = "2023, Canonical" | ||
author = "Canonical" | ||
|
||
# region General configuration | ||
# https://www.sphinx-doc.org/en/master/usage/configuration.html#general-configuration | ||
|
||
extensions = [ | ||
"sphinx.ext.intersphinx", | ||
"sphinx.ext.viewcode", | ||
"sphinx.ext.coverage", | ||
"sphinx.ext.doctest", | ||
"sphinx_design", | ||
"sphinx_copybutton", | ||
"sphinx-pydantic", | ||
"sphinx_toolbox", | ||
"sphinx_toolbox.more_autodoc", | ||
"sphinx.ext.autodoc", # Must be loaded after more_autodoc | ||
] | ||
|
||
templates_path = ["_templates"] | ||
exclude_patterns = ["_build", "Thumbs.db", ".DS_Store"] | ||
|
||
show_authors = False | ||
|
||
# endregion | ||
# region Options for HTML output | ||
# https://www.sphinx-doc.org/en/master/usage/configuration.html#options-for-html-output | ||
|
||
html_theme = "furo" | ||
html_static_path = ["_static"] | ||
|
||
# endregion | ||
# region Options for extensions | ||
# Intersphinx extension | ||
# https://www.sphinx-doc.org/en/master/usage/extensions/intersphinx.html#configuration | ||
|
||
intersphinx_mapping = { | ||
"python": ("https://docs.python.org/3", None), | ||
} | ||
|
||
# Type hints configuration | ||
set_type_checking_flag = True | ||
typehints_fully_qualified = False | ||
always_document_param_types = True | ||
|
||
# Github config | ||
github_username = "canonical" | ||
github_repository = "starcraft-base" | ||
|
||
# endregion |
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,7 @@ | ||
.. _explanation: | ||
|
||
Explanation | ||
********* | ||
|
||
.. toctree:: | ||
:maxdepth: 1 |
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,7 @@ | ||
.. _howto: | ||
|
||
How-to guides | ||
************* | ||
|
||
.. toctree:: | ||
:maxdepth: 1 |
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,52 @@ | ||
.. starcraft documentation root file | ||
StarCraft | ||
========= | ||
|
||
.. toctree:: | ||
:maxdepth: 1 | ||
:hidden: | ||
|
||
tutorials/index | ||
howto/index | ||
reference/index | ||
explanation/index | ||
|
||
.. grid:: 1 1 2 2 | ||
|
||
.. grid-item-card:: :ref:`Tutorial <tutorial>` | ||
|
||
**Get started** with a hands-on introduction to Starcraft | ||
|
||
.. grid-item-card:: :ref:`How-to guides <howto>` | ||
|
||
**Step-by-step guides** covering key operations and common tasks | ||
|
||
.. grid:: 1 1 2 2 | ||
:reverse: | ||
|
||
.. grid-item-card:: :ref:`Reference <reference>` | ||
|
||
**Technical information** about Starcraft | ||
|
||
.. grid-item-card:: :ref:`Explanation <explanation>` | ||
|
||
**Discussion and clarification** of key topics | ||
|
||
Project and community | ||
===================== | ||
|
||
Starcraft is a member of the Canonical family. It's an open source project | ||
that warmly welcomes community projects, contributions, suggestions, fixes | ||
and constructive feedback. | ||
|
||
* `Ubuntu Code of Conduct <https://ubuntu.com/community/code-of-conduct>`_. | ||
* `Canonical contributor licenses agreement | ||
<https://ubuntu.com/legal/contributors>`_. | ||
|
||
Indices and tables | ||
================== | ||
|
||
* :ref:`genindex` | ||
* :ref:`modindex` | ||
* :ref:`search` |
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,13 @@ | ||
.. _reference: | ||
|
||
Reference | ||
********* | ||
|
||
.. toctree:: | ||
:maxdepth: 1 | ||
|
||
Indices and tables | ||
================== | ||
|
||
* :ref:`genindex` | ||
* :ref:`modindex` |
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,11 @@ | ||
.. _tutorial: | ||
|
||
Tutorials | ||
********* | ||
|
||
If you want to learn the basics from experience, then our tutorials will help | ||
you acquire the necessary competencies from real-life examples with fully | ||
reproducible steps. | ||
|
||
.. toctree:: | ||
:maxdepth: 1 |
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