Skip to content

Commit 743b17d

Browse files
authored
Introduction/tutorial doc improvements. (#512)
Changes: -------- - Update titles so that package name is visible in browser tabs - Fix typo in sequence docs - Use https://github.com/m-renaud/haddock-autolink - Update theme (dark grey with green) for desktop and mobile Why use a submodule? -------------------- Improvements to the autolinker don't need to take place in the containers repo. Also, if other projects end up using it the code doesn't get out of sync (not everyone needs to copy/paste the Sphinx extension). If you're not modifying the docs you don't need to pull down all the Python code. If you do want to build the container docs locally you need to pull down the submodule code (see the CONTRIBUTING.md file for exact commands to run). Read the docs natively supports submodules so this has no visible effect on the docs. [ci skip]
1 parent 374d1c9 commit 743b17d

File tree

14 files changed

+47
-293
lines changed

14 files changed

+47
-293
lines changed

.gitmodules

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
[submodule "docs/_extensions/haddock-autolink"]
2+
path = docs/_extensions/haddock-autolink
3+
url = https://github.com/m-renaud/haddock-autolink

CONTRIBUTING.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,4 +81,4 @@ haddock` or `stack haddock`.
8181
The external docs are served by ReadTheDocs at
8282
https://haskell-containers.readthedocs.io and live in the `docs/` directory. To
8383
build the docs locally run `pip install sphinx sphinx-autobuild` to install the
84-
dependencies and then `cd docs/ && make html`.
84+
dependencies, `git submodule update --init`, and then `cd docs/ && make html`.

docs/_extensions/HaddockAutolinker.py

Lines changed: 0 additions & 233 deletions
This file was deleted.

docs/_extensions/haddock-autolink

Submodule haddock-autolink added at 51c39ab

docs/_extensions/haddock-autolink.py

Lines changed: 0 additions & 50 deletions
This file was deleted.

docs/_extensions/hs-theme.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
def setup(app):
2+
app.add_stylesheet('css/hs-theme.css')

docs/_static/css/hs-theme.css

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
.wy-side-nav-search {
2+
background-color: #222 !important;
3+
}
4+
5+
.wy-nav-top {
6+
background-color: #333 !important;
7+
}
8+
9+
.wy-nav-top i {
10+
color: #282 !important;
11+
}
789 Bytes
Loading
Lines changed: 17 additions & 0 deletions
Loading

docs/_templates/layout.html

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,6 @@
22

33
{%- block extrahead %}
44
<meta name="google-site-verification" content="boeOM2WSruQOlY6qXpjFvi9gZglAGs-bgkiDvcsvf4Y" />
5-
<link rel="shortcut icon" type="image/png" href="_static/images/favicon-16x16.png"/>
5+
<link rel="shortcut icon" type="image/png" href="_static/images/favicon-green-16x16.png"/>
6+
<meta name="theme-color" content="#222" />
67
{% endblock %}

0 commit comments

Comments
 (0)