Skip to content

Commit

Permalink
simplify site configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
umputun committed Aug 8, 2022
1 parent 45d699e commit 0af7807
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 5 deletions.
6 changes: 2 additions & 4 deletions Dockerfile.site
Original file line number Diff line number Diff line change
@@ -1,15 +1,13 @@
FROM --platform=$BUILDPLATFORM squidfunk/mkdocs-material as build

WORKDIR /build
RUN mkdir -p /build/docs
COPY README.md /build/docs/index.md
COPY site/styles.css /build/docs/stylesheets/extra.css
COPY site/ /build/

RUN \
sed -i 's|^.*/workflows/ci.yml.*$||' /build/docs/index.md && \
sed -i 's|https://raw.githubusercontent.com/umputun/reproxy/master/site/logo-bg.svg|logo.png|' /build/docs/index.md
RUN sed -i 's|^.*/workflows/ci.yml.*$||' /build/docs/index.md
RUN mkdocs build

COPY site/favicon.svg /build/site/
COPY site/logo.png /build/site/

Expand Down
7 changes: 7 additions & 0 deletions site/mkdocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,9 @@ plugins:
- search
- minify:
minify_html: true
- redirects:
redirect_maps:
https://raw.githubusercontent.com/umputun/reproxy/master/site/logo-bg.svg: logo.svg

extra:
generator: true
Expand All @@ -42,6 +45,8 @@ extra:
link: https://twitter.com/umputun

markdown_extensions:
- smarty
- sane_lists
- abbr
- admonition
- attr_list
Expand Down Expand Up @@ -77,3 +82,5 @@ markdown_extensions:
custom_checkbox: true
- pymdownx.tilde

nav:
- Reproxy: index.md
3 changes: 2 additions & 1 deletion site/styles.css
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
.md-content__button {
display: none;
}
.md-header__topic {
.md-nav__title {
display: none;
}

0 comments on commit 0af7807

Please sign in to comment.