Skip to content

Commit

Permalink
Merge pull request #269 from carenalgas/feature/267-site-rebranding
Browse files Browse the repository at this point in the history
refs  #267 - Project site rebranding
  • Loading branch information
mapedorr authored Aug 26, 2024
2 parents 71df11c + 1ee7544 commit 9dcfe94
Show file tree
Hide file tree
Showing 13 changed files with 6,609 additions and 121 deletions.
6 changes: 5 additions & 1 deletion docs/Dockerfile.MkDocs
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
FROM minidocks/mkdocs:latest

RUN pip install mkdocs-nav-weight
RUN pip install mkdocs-nav-weight mkdocs-mermaid2-plugin fontawesome-markdown

# Patch fontawesome_markdown to support Python Markdown > 3.4
# TODO: Remove this when the upstream package is updated
COPY ./patches/fontawesome_markdown /usr/lib/python3.12/site-packages/fontawesome_markdown
5 changes: 5 additions & 0 deletions docs/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,11 @@ docs-up:
docs-down:
docker compose down

docs-restart: docs-down docs-up

docs-rebuild:
docker compose build --no-cache

docs-deploy: docs-extract
rm -rf ./dist && git restore dist
docker compose run \
Expand Down
1 change: 0 additions & 1 deletion docs/docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
version: "3"
services:
documentation:
ports:
Expand Down
10 changes: 9 additions & 1 deletion docs/mkdocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,15 @@ repo_url: https://github.com/carenalgas/popochiu/
edit_uri: edit/develop/docs/src/
docs_dir: src
site_dir: dist
theme: readthedocs
site_favicon: assets/images/_other/theme/favicon.ico
theme:
name: readthedocs
titles_only: true
logo: assets/images/_other/theme/logo.svg
extra_css:
- assets/css/custom.css
- https://cdnjs.cloudflare.com/ajax/libs/highlight.js/11.9.0/styles/tomorrow-night-bright.min.css
- https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.5.1/css/all.min.css
extra_javascript:
- https://cdnjs.cloudflare.com/ajax/libs/highlight.js/11.9.0/highlight.min.js
- https://cdnjs.cloudflare.com/ajax/libs/highlight.js/11.9.0/languages/markdown.min.js
Expand All @@ -22,6 +27,9 @@ extra_javascript:
- assets/js/custom.js
markdown_extensions:
- admonition
- fontawesome_markdown
- attr_list
plugins:
- search
- mkdocs-nav-weight
- mermaid2
1 change: 1 addition & 0 deletions docs/patches/fontawesome_markdown/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
from .main import FontAwesomeInlineProcessor, FontAwesomeExtension, FontAwesomeException, makeExtension # NOQA
Loading

0 comments on commit 9dcfe94

Please sign in to comment.