forked from amaranth-lang/amaranth-stdio
-
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.
- Loading branch information
1 parent
0468ce0
commit cf7c4c0
Showing
8 changed files
with
179 additions
and
5 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
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 @@ | ||
_build/ |
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 @@ | ||
/* Some of our section titles are looong */ | ||
.wy-nav-side, .wy-side-scroll, .wy-menu-vertical { width: 340px; } | ||
.wy-side-nav-search { width: 325px; } | ||
.wy-nav-content-wrap { margin-left: 340px; } | ||
|
||
/* We don't have a version picker widget */ | ||
.wy-nav-side { padding-bottom: 0; } | ||
|
||
/* Many of our diagnostics are even longer */ | ||
.rst-content pre.literal-block, .rst-content div[class^="highlight"] pre, .rst-content .linenodiv pre { white-space: pre-wrap; } |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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,50 @@ | ||
import os, sys | ||
sys.path.insert(0, os.path.abspath(".")) | ||
|
||
import time | ||
import amaranth_stdio | ||
|
||
project = "Amaranth standard I/O components" | ||
version = amaranth_stdio.__version__.replace(".editable", "") | ||
release = version.split("+")[0] | ||
copyright = time.strftime("2020—%Y, Amaranth project contributors") | ||
|
||
extensions = [ | ||
"sphinx.ext.intersphinx", | ||
"sphinx.ext.doctest", | ||
"sphinx.ext.todo", | ||
"sphinx.ext.autodoc", | ||
"sphinx.ext.napoleon", | ||
"sphinx_rtd_theme", | ||
] | ||
|
||
with open(".gitignore") as f: | ||
exclude_patterns = [line.strip() for line in f.readlines()] | ||
|
||
root_doc = "cover" | ||
|
||
intersphinx_mapping = {"python": ("https://docs.python.org/3", None)} | ||
|
||
todo_include_todos = True | ||
|
||
autodoc_member_order = "bysource" | ||
autodoc_default_options = { | ||
"members": True | ||
} | ||
autodoc_preserve_defaults = True | ||
|
||
napoleon_google_docstring = False | ||
napoleon_numpy_docstring = True | ||
napoleon_use_ivar = True | ||
napoleon_include_init_with_doc = True | ||
napoleon_include_special_with_doc = True | ||
|
||
html_theme = "sphinx_rtd_theme" | ||
html_static_path = ["_static"] | ||
html_css_files = ["custom.css"] | ||
html_logo = "_static/logo.png" | ||
|
||
rst_prolog = """ | ||
.. role:: pc(code) | ||
:language: python | ||
""" |
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 @@ | ||
.. This page is loaded if you click on the Amaranth logo. | ||
Amaranth project documentation | ||
############################## | ||
|
||
.. toctree:: | ||
:maxdepth: 1 | ||
|
||
Language & toolchain <https://amaranth-lang.org/docs/amaranth/latest/> | ||
index | ||
System on Chip toolkit <https://amaranth-lang.org/docs/amaranth-soc/latest/> |
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,6 @@ | ||
Standard I/O components | ||
####################### | ||
|
||
.. warning:: | ||
|
||
This manual is a work in progress and is seriously incomplete! |
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