Detached configuration from documentation build

This commit is contained in:
squidfunk 2021-07-24 17:58:48 +02:00
parent fddc648085
commit abb95a336d
3 changed files with 9 additions and 32 deletions

View File

@ -55,6 +55,7 @@ jobs:
run: | run: |
git clone --depth 1 https://${GH_TOKEN}@github.com/squidfunk/mkdocs-material-insiders.git git clone --depth 1 https://${GH_TOKEN}@github.com/squidfunk/mkdocs-material-insiders.git
pip install -e mkdocs-material-insiders pip install -e mkdocs-material-insiders
cp mkdocs-material-insiders/mkdocs.yml mkdocs.yml
echo "THEME_DIR=mkdocs-material-insiders/material" >> $GITHUB_ENV echo "THEME_DIR=mkdocs-material-insiders/material" >> $GITHUB_ENV
- name: Deploy documentation - name: Deploy documentation

View File

@ -24,8 +24,7 @@ site_url: https://squidfunk.github.io/mkdocs-material/
site_author: Martin Donath site_author: Martin Donath
site_description: >- site_description: >-
Create a branded static site from a set of Markdown files to host the Create a branded static site from a set of Markdown files to host the
documentation of your Open Source or commercial project customizable, documentation of your Open Source or commercial project
searchable, mobile-friendly, 40+ languages
# Repository # Repository
repo_name: squidfunk/mkdocs-material repo_name: squidfunk/mkdocs-material
@ -53,14 +52,19 @@ theme:
features: features:
- content.code.annotate - content.code.annotate
- content.tabs.link - content.tabs.link
# - header.autohide
# - navigation.expand
# - navigation.indexes
# - navigation.instant # - navigation.instant
- navigation.sections - navigation.sections
- navigation.tabs - navigation.tabs
# - navigation.tabs.sticky
- navigation.top - navigation.top
- navigation.tracking - navigation.tracking
- search.highlight - search.highlight
- search.share - search.share
- search.suggest - search.suggest
# - toc.integrate
palette: palette:
- scheme: default - scheme: default
primary: indigo primary: indigo
@ -84,7 +88,6 @@ theme:
# Plugins # Plugins
plugins: plugins:
- search - search
- social
- redirects: - redirects:
redirect_maps: redirect_maps:
changelog/insiders.md: insiders/changelog.md changelog/insiders.md: insiders/changelog.md

View File

@ -25,34 +25,7 @@
<!-- Custom front matter --> <!-- Custom front matter -->
{% block extrahead %} {% block extrahead %}
<!-- Determine title --> <!-- Extra stylesheets (can't be set in mkdocs.yml due to content hash) -->
{% set title = config.site_name %}
{% if page and page.title and not page.is_homepage %}
{% set title = config.site_name ~ " - " ~ page.title | striptags %}
{% endif %}
<!-- The image needs to have an absolute URL -->
{% set image = config.site_url ~ 'assets/images/banner.png' %}
<!-- Open graph meta tags -->
<meta property="og:type" content="website" />
<meta property="og:title" content="{{ title }}" />
<meta property="og:description" content="{{ config.site_description }}" />
<meta property="og:url" content="{{ page.canonical_url }}" />
<meta property="og:image" content="{{ image }}" />
<meta property="og:image:type" content="image/png" />
<meta property="og:image:width" content="1080" />
<meta property="og:image:height" content="568" />
<!-- Twitter meta tags -->
<meta name="twitter:card" content="summary_large_image" />
<meta name="twitter:site" content="@squidfunk" />
<meta name="twitter:creator" content="@squidfunk" />
<meta name="twitter:title" content="{{ title }}" />
<meta name="twitter:description" content="{{ config.site_description }}" />
<meta name="twitter:image" content="{{ image }}" />
<!-- Extra stylesheets -->
<link <link
rel="stylesheet" rel="stylesheet"
href="{{ 'overrides/assets/stylesheets/main.css' | url }}" href="{{ 'overrides/assets/stylesheets/main.css' | url }}"
@ -74,7 +47,7 @@
{% block scripts %} {% block scripts %}
{{ super() }} {{ super() }}
<!-- Extra JavaScript --> <!-- Extra JavaScript (can't be set in mkdocs.yml due to content hash) -->
<script src="{{ 'overrides/assets/javascripts/bundle.js' | url }}"></script> <script src="{{ 'overrides/assets/javascripts/bundle.js' | url }}"></script>
{% endblock %} {% endblock %}