Skip to content

Commit abb95a3

Browse files
committed
Detached configuration from documentation build
1 parent fddc648 commit abb95a3

File tree

3 files changed

+9
-32
lines changed

3 files changed

+9
-32
lines changed

Diff for: .github/workflows/documentation.yml

+1
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,7 @@ jobs:
5555
run: |
5656
git clone --depth 1 https://${GH_TOKEN}@github.com/squidfunk/mkdocs-material-insiders.git
5757
pip install -e mkdocs-material-insiders
58+
cp mkdocs-material-insiders/mkdocs.yml mkdocs.yml
5859
echo "THEME_DIR=mkdocs-material-insiders/material" >> $GITHUB_ENV
5960
6061
- name: Deploy documentation

Diff for: mkdocs.yml

+6-3
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,7 @@ site_url: https://squidfunk.github.io/mkdocs-material/
2424
site_author: Martin Donath
2525
site_description: >-
2626
Create a branded static site from a set of Markdown files to host the
27-
documentation of your Open Source or commercial project – customizable,
28-
searchable, mobile-friendly, 40+ languages
27+
documentation of your Open Source or commercial project
2928
3029
# Repository
3130
repo_name: squidfunk/mkdocs-material
@@ -53,14 +52,19 @@ theme:
5352
features:
5453
- content.code.annotate
5554
- content.tabs.link
55+
# - header.autohide
56+
# - navigation.expand
57+
# - navigation.indexes
5658
# - navigation.instant
5759
- navigation.sections
5860
- navigation.tabs
61+
# - navigation.tabs.sticky
5962
- navigation.top
6063
- navigation.tracking
6164
- search.highlight
6265
- search.share
6366
- search.suggest
67+
# - toc.integrate
6468
palette:
6569
- scheme: default
6670
primary: indigo
@@ -84,7 +88,6 @@ theme:
8488
# Plugins
8589
plugins:
8690
- search
87-
- social
8891
- redirects:
8992
redirect_maps:
9093
changelog/insiders.md: insiders/changelog.md

Diff for: src/overrides/main.html

+2-29
Original file line numberDiff line numberDiff line change
@@ -25,34 +25,7 @@
2525
<!-- Custom front matter -->
2626
{% block extrahead %}
2727

28-
<!-- Determine title -->
29-
{% set title = config.site_name %}
30-
{% if page and page.title and not page.is_homepage %}
31-
{% set title = config.site_name ~ " - " ~ page.title | striptags %}
32-
{% endif %}
33-
34-
<!-- The image needs to have an absolute URL -->
35-
{% set image = config.site_url ~ 'assets/images/banner.png' %}
36-
37-
<!-- Open graph meta tags -->
38-
<meta property="og:type" content="website" />
39-
<meta property="og:title" content="{{ title }}" />
40-
<meta property="og:description" content="{{ config.site_description }}" />
41-
<meta property="og:url" content="{{ page.canonical_url }}" />
42-
<meta property="og:image" content="{{ image }}" />
43-
<meta property="og:image:type" content="image/png" />
44-
<meta property="og:image:width" content="1080" />
45-
<meta property="og:image:height" content="568" />
46-
47-
<!-- Twitter meta tags -->
48-
<meta name="twitter:card" content="summary_large_image" />
49-
<meta name="twitter:site" content="@squidfunk" />
50-
<meta name="twitter:creator" content="@squidfunk" />
51-
<meta name="twitter:title" content="{{ title }}" />
52-
<meta name="twitter:description" content="{{ config.site_description }}" />
53-
<meta name="twitter:image" content="{{ image }}" />
54-
55-
<!-- Extra stylesheets -->
28+
<!-- Extra stylesheets (can't be set in mkdocs.yml due to content hash) -->
5629
<link
5730
rel="stylesheet"
5831
href="{{ 'overrides/assets/stylesheets/main.css' | url }}"
@@ -74,7 +47,7 @@
7447
{% block scripts %}
7548
{{ super() }}
7649

77-
<!-- Extra JavaScript -->
50+
<!-- Extra JavaScript (can't be set in mkdocs.yml due to content hash) -->
7851
<script src="{{ 'overrides/assets/javascripts/bundle.js' | url }}"></script>
7952
{% endblock %}
8053

0 commit comments

Comments
 (0)