Skip to content

Commit

Permalink
📝 Update docs to use Furo
Browse files Browse the repository at this point in the history
  • Loading branch information
reillysiemens committed Dec 9, 2020
1 parent fb2f480 commit 1b1932f
Show file tree
Hide file tree
Showing 4 changed files with 29 additions and 53 deletions.
34 changes: 18 additions & 16 deletions CONTRIBUTING.rst
Original file line number Diff line number Diff line change
Expand Up @@ -46,18 +46,16 @@ Handling Pull Requests

- A maintainer will respond to Pull Requests with one of:

- 'Ship It', 'LGTM', 🚢, or some other affirmation
- ``Ship It``, ``LGTM``, 🚢, or some other affirmation
- What must be changed
- Won't accept and why

Nota Bene
+++++++++

- Submitting a `draft pull request`_ is a good way to get feedback from
maintainers if you are unsure of the changes you are making.
- A pull request that has been approved may not be merged immediately.
- You may be asked to rebase or squash your commits to keep an orderly version
control history.
.. note::
- Submitting a `draft pull request`_ is a good way to get feedback from
maintainers if you are unsure about your changes.
- A pull request that has been approved may not be merged immediately.
- You may be asked to rebase or squash your commits to keep an orderly version
control history.

.. _version control:

Expand Down Expand Up @@ -97,14 +95,18 @@ repository's `tox`_ configuration. To validate your coding style run
Test Environment
~~~~~~~~~~~~~~~~

- Code **must** be tested. Write or update related unit tests so you don't have
to manually retest the same thing many times.
- Code **must** be tested. Write or update related unit tests to avoid repeated
manual testing.
- Tests for this project are written using the `pytest`_ framework and executed
via `tox`_. While it isn't always achievable this project strives to maintain
💯% test coverage.
- In addition to unit testing code in this project is statically type checked
using `mypy`_, formatted with `black`_, linted using `flake8`_, and security
checked with `bandit`_.
via `tox`_.
- While it isn't always achievable this project strives to maintain 💯% test
coverage.
- In addition to unit testing code in this project is

- statically type checked using `mypy`_
- formatted with `black`_
- linted using `flake8`_
- and security checked with `bandit`_

Here are some example invocations for running unit tests/static analysis.

Expand Down
34 changes: 4 additions & 30 deletions docs/conf.py
Original file line number Diff line number Diff line change
@@ -1,19 +1,10 @@
# Configuration file for the Sphinx documentation builder.
#
# This file only contains a selection of the most common options. For a full
# list see the documentation:
# Full list of options can be found in the Sphinx documentation:
# https://www.sphinx-doc.org/en/master/usage/configuration.html

# -- Path setup --------------------------------------------------------------

# If extensions (or modules to document with autodoc) are in another directory,
# add these directories to sys.path here. If the directory is relative to the
# documentation root, use os.path.abspath to make it absolute, like shown here.
#
# import os
# import sys
# sys.path.insert(0, os.path.abspath('.'))

import datetime as dt
from pathlib import Path
import sys
Expand All @@ -27,20 +18,16 @@

changelog_mtime = Path("../CHANGELOG.rst").stat().st_mtime
copyright_year = dt.datetime.utcfromtimestamp(changelog_mtime)
homepage = "https://tuckersiemens.com"

project = "ipython-style-gruvbox"
author = __author__
release = __version__
version = ".".join(release.split(".", 2)[:2])
copyright = f'{copyright_year:%Y}, <a href="{homepage}">{author}</a>'
copyright = f'{copyright_year:%Y}, {author}'


# -- General configuration ---------------------------------------------------

# Add any Sphinx extension module names here, as strings. They can be
# extensions coming with Sphinx (named 'sphinx.ext.*') or your custom
# ones.
extensions = [
"sphinx.ext.autodoc",
"sphinx.ext.todo",
Expand All @@ -50,23 +37,10 @@
"sphinx_autodoc_typehints",
]

# Add any paths that contain templates here, relative to this directory.
templates_path = ["_templates"]

# List of patterns, relative to source directory, that match files and
# directories to ignore when looking for source files.
# This pattern also affects html_static_path and html_extra_path.
exclude_patterns = ["_build", "Thumbs.db", ".DS_Store"]


# -- Options for HTML output -------------------------------------------------

# The theme to use for HTML and HTML Help pages. See the documentation for
# a list of builtin themes.
#
html_theme = "alabaster"

# Add any paths that contain custom static files (such as style sheets) here,
# relative to this directory. They are copied after the builtin static files,
# so a file named "default.css" will overwrite the builtin "default.css".
html_static_path = ["_static"]
html_theme = "furo"
html_title = "IPython Style Gruvbox"
11 changes: 5 additions & 6 deletions docs/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -77,14 +77,13 @@ or add it to your `IPython config`_.
config = get_config()
config.TerminalInteractiveShell.highlighting_style = "gruvbox"
*Note:* This will only affect your syntax highlighting. If you're looking to
create a prompt that looks exactly like the one in the image above this
`example prompt`_ might help.

Project Info
------------
.. note::
This will only affect your syntax highlighting. If you're looking to
create a prompt that looks exactly like the one in the image above this
`example prompt`_ might help.

.. toctree::
:hidden:
:maxdepth: 1

Code of Conduct <code-of-conduct>
Expand Down
3 changes: 2 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -96,8 +96,9 @@ commands =
[testenv:docs]
basepython = python3.9
deps =
sphinx ~= 2.3.0
sphinx ~= 3.3.0
sphinx-autodoc-typehints ~= 1.10.0
furo == 2020.11.27b19
commands_pre =
commands =
sphinx-build -b html docs {posargs:docs/_build/html}
Expand Down

0 comments on commit 1b1932f

Please sign in to comment.