Skip to content

Commit

Permalink
rough draft
Browse files Browse the repository at this point in the history
  • Loading branch information
moshez committed Mar 9, 2021
1 parent aa04c5f commit cf0db64
Show file tree
Hide file tree
Showing 4 changed files with 39 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
__pycache__
/build
13 changes: 13 additions & 0 deletions doc/conf.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
master_doc = 'index'
project = "Moshe'z Recipes"
copyright = '2020, Moshe Zadka'
author = 'Moshe Zadka'
version = release = ''

import sphinx_rtd_theme

extensions = [
"sphinx_rtd_theme",
]

html_theme = "sphinx_rtd_theme"
4 changes: 4 additions & 0 deletions doc/index.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
Picostory
---------

This is a placeholder until a story is actually written.
20 changes: 20 additions & 0 deletions noxfile.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
import functools
import os

import nox

nox.options.envdir = "build/nox"

@nox.session(python="3.8")
def docs(session):
"""Build the documentation."""
output_dir = os.path.abspath(os.path.join(session.create_tmp(), "output"))
doctrees, html = map(
functools.partial(os.path.join, output_dir), ["doctrees", "html"]
)
print(html)
session.run("rm", "-rf", output_dir, external=True)
session.install("sphinx", "sphinx-rtd-theme")
session.cd("doc")
sphinx_cmd = "sphinx-build"
session.run(sphinx_cmd, "-b", "html", "-W", "-d", doctrees, ".", html)

0 comments on commit cf0db64

Please sign in to comment.