Skip to content

Commit

Permalink
Configure Tags
Browse files Browse the repository at this point in the history
  • Loading branch information
jswope00 committed Nov 6, 2024
1 parent 983ce16 commit 88e6be6
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 0 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
build
_tags
.DS_Store
source/.DS_Store
.idea/
Expand Down
18 changes: 18 additions & 0 deletions source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@
"sphinxcontrib.mermaid",
"sphinx.ext.intersphinx",
"sphinxext.rediraffe",
"sphinx_tags"
]

# Extension Configuration
Expand All @@ -56,6 +57,23 @@
"community/release_notes/latest.rst": "community/release_notes/redwood.rst",
}

tags_create_tags = True
tags_create_badges = True

tags_badge_colors = {
"educator": "primary",
"developer": "primary",
"site operator": "primary",
"community": "primary",
"documentor": "primary",
"translator": "primary",
"concept": "secondary",
"how-to": "secondary",
"quickstart": "secondary",
"reference": "secondary",
"*": "dark", # Used as a default value
}

# Intersphinx Extension Configuration
DIGITS_ONLY = r"^\d+$"
rtd_language = os.environ.get("READTHEDOCS_LANGUAGE", "en")
Expand Down

0 comments on commit 88e6be6

Please sign in to comment.