-
Notifications
You must be signed in to change notification settings - Fork 3
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
Showing
12 changed files
with
594 additions
and
10 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,15 @@ | ||
# Config file for Sphinx build on ReadTheDocs: | ||
# https://docs.readthedocs.io/en/stable/config-file/ | ||
# https://docs.readthedocs.io/en/stable/config-file/v2.html | ||
version: 2 | ||
|
||
build: | ||
os: ubuntu-22.04 | ||
tools: | ||
python: "3.9" | ||
|
||
python: | ||
install: | ||
- method: pip | ||
path: . | ||
- requirements: docs/requirements.txt |
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
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,27 @@ | ||
/* Duplicated in oauth-dropins, granary, bridgy! */ | ||
.icon-home { | ||
font-size: larger !important; | ||
} | ||
|
||
.wy-nav-side, .wy-side-nav-search > div.version { | ||
color: #fcfcfc; | ||
} | ||
|
||
.rst-content code, .rst-content tt, code { | ||
border: none; | ||
padding: 0; | ||
} | ||
|
||
/* The first link in the reference doc TOC is the page title/header. Hide that. */ | ||
#contents #id1 { | ||
display: none; | ||
} | ||
|
||
/* The first link in the sidebar TOC is the page title/header. Hide that. */ | ||
.local-toc ul:nth-child(3) li:first-child { | ||
display: none; | ||
} | ||
|
||
.logo { | ||
width: 5em !important; | ||
} |
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 @@ | ||
<hr/> |
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,24 @@ | ||
{% extends "!layout.html" %} | ||
|
||
{%- block navigation %} | ||
|
||
|
||
<div style="width: 300px; text-align: center; font-size: larger"> | ||
|
||
<a href="https://atproto.com/specs/atp">AT Protocol</a> in Python</p> | ||
|
||
</div> | ||
|
||
<div class="wy-menu wy-menu-vertical" data-spy="affix" role="navigation" aria-label="{{ _('Navigation menu') }}"> | ||
<div class="local-toc"> | ||
<ul> | ||
<li><a href="{{ pathto('index') }}">Getting started</a></li> | ||
<li><a href="{{ pathto('source/arroba') }}">Reference documentation</a></li> | ||
</ul> | ||
<hr style="margin: 1em"> | ||
{{ toc }} | ||
</div> | ||
</div> | ||
|
||
|
||
{%- endblock %} |
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,34 @@ | ||
#!/bin/bash | ||
# | ||
# Preprocesses docs and runs Sphinx (apidoc and build) to build the HTML docs. | ||
# | ||
# Requires: | ||
# brew install pandoc | ||
# pip install sphinx sphinx_rtd_theme (in virtualenv) | ||
set -e | ||
|
||
absfile=`readlink -f $0` | ||
cd `dirname $absfile` | ||
|
||
# generates the module index file docs/source/arroba.rst, only used to | ||
# bootstrap. we edit by hand since then so don't run any more or it will | ||
# overwrite it. | ||
# sphinx-apidoc -f -o source ../arroba ../arroba/tests | ||
|
||
rm -f index.rst | ||
cat > index.rst <<EOF | ||
arroba | ||
------ | ||
EOF | ||
|
||
tail -n +4 ../README.md \ | ||
| pandoc --from=markdown --to=rst \ | ||
| sed -E 's/```/`/; s/`` </ </' \ | ||
>> index.rst | ||
|
||
source ../local/bin/activate | ||
|
||
# Run sphinx in the virtualenv's python interpreter so it can import packages | ||
# installed in the virtualenv. | ||
python3 `which sphinx-build` -b html . _build/html |
Oops, something went wrong.