Skip to content

Commit

Permalink
fix(docs): fix project name (#8)
Browse files Browse the repository at this point in the history
  • Loading branch information
JacobCoffee committed Sep 24, 2023
1 parent 5dcc1f9 commit c567db6
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 4 deletions.
12 changes: 8 additions & 4 deletions docs/conf.py
Original file line number Diff line number Diff line change
@@ -1,11 +1,14 @@
# Configuration file for the Sphinx documentation builder.
import os

from src.__metadata__ import __project__ as project
from src.__metadata__ import __version__ as version
import sys
from pathlib import Path

# -- Environmental Data ------------------------------------------------------
path = Path("..").resolve()
sys.path.insert(0, path.as_posix())

from src.__metadata__ import __project__ as project # noqa: E402
from src.__metadata__ import __version__ as version # noqa: E402

# -- Project information -----------------------------------------------------
project = project
Expand All @@ -31,6 +34,7 @@
intersphinx_mapping = {
"python": ("https://docs.python.org/3", None),
}

PY_CLASS = "py:class"
PY_RE = r"py:.*"
PY_METH = "py:meth"
Expand Down Expand Up @@ -89,7 +93,7 @@
html_context = {
"source_type": "github",
"source_user": "python-reddit",
"source_repo": project.replace("_", "-"),
"source_repo": "python",
}

brand_colors = {
Expand Down
1 change: 1 addition & 0 deletions src/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
"""Source for the project."""

0 comments on commit c567db6

Please sign in to comment.