Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
ECA Guide
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Service Desk
Analyze
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Drupal
Documentation
ECA Guide
Commits
c748f416
Commit
c748f416
authored
1 year ago
by
jurgenhaas
Browse files
Options
Downloads
Patches
Plain Diff
#55
Add backlinks to the sidebar
parent
e370b3a3
Branches
Branches containing commit
No related tags found
1 merge request
!91
Develop
Pipeline
#1015772
passed
1 year ago
Stage: build
Stage: deploy
Changes
3
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
docker-compose.yml
+1
-1
1 addition, 1 deletion
docker-compose.yml
mkdocs.yml
+2
-0
2 additions, 0 deletions
mkdocs.yml
overrides/partials/toc.html
+40
-0
40 additions, 0 deletions
overrides/partials/toc.html
with
43 additions
and
1 deletion
docker-compose.yml
+
1
−
1
View file @
c748f416
...
...
@@ -9,7 +9,7 @@ services:
-
8999:8000
environment
:
LIVE_RELOAD_SUPPORT
:
'
true'
ADD_MODULES
:
fontawesome-markdown mkdocs-git-revision-date-localized-plugin mkdocs-material==9.4.1 mkdocs-build-plantuml-plugin mkdocs-new-features-notifier mkdocs-git-authors-plugin markdown-include mkdocs-simple-hooks mkdocs-video tzdata
ADD_MODULES
:
fontawesome-markdown mkdocs-git-revision-date-localized-plugin mkdocs-material==9.4.1 mkdocs-build-plantuml-plugin mkdocs-new-features-notifier mkdocs-git-authors-plugin markdown-include mkdocs-simple-hooks mkdocs-video tzdata
mkdocs-backlinks
FAST_MODE
:
'
true'
DOCS_DIRECTORY
:
/mkdocs
volumes
:
...
...
This diff is collapsed.
Click to expand it.
mkdocs.yml
+
2
−
0
View file @
c748f416
...
...
@@ -70,6 +70,8 @@ plugins:
-
git-authors
-
git-revision-date-localized
:
type
:
datetime
-
mkdocs-backlinks
:
ignored_pages
:
[
'
Tags'
,
'
Home'
]
-
mkdocs-simple-hooks
:
hooks
:
on_config
:
"
docs.hooks:append_nav"
...
...
This diff is collapsed.
Click to expand it.
overrides/partials/toc.html
0 → 100644
+
40
−
0
View file @
c748f416
{% set title = lang.t("toc") %}
{% if config.mdx_configs.toc and config.mdx_configs.toc.title %}
{% set title = config.mdx_configs.toc.title %}
{% endif %}
<nav
class=
"md-nav md-nav--secondary"
aria-label=
"{{ title }}"
>
{% set toc = page.toc %}
{% set first = toc | first %}
{% if first and first.level == 1 %}
{% set toc = first.children %}
{% endif %}
{% if toc %}
<label
class=
"md-nav__title"
for=
"__toc"
>
<span
class=
"md-nav__icon md-icon"
></span>
{{ title }}
</label>
<ul
class=
"md-nav__list"
data-md-component=
"toc"
data-md-scrollfix
>
{% for toc_item in toc %}
{% include "partials/toc-item.html" %}
{% endfor %}
</ul>
{% endif %}
</nav>
{% if backlinks %}
<nav
class=
"md-nav"
aria-label=
"Backlinks"
>
<label
class=
"md-nav__title"
for=
"__backlinks"
>
<span
class=
"md-nav__icon md-icon"
></span>
Backlinks
</label>
<ul
class=
"md-nav__list"
data-md-component=
"backlinks"
data-md-scrollfix
>
{% for backlink in backlinks %}
<li
class=
"md-nav__item"
>
<a
href=
"/{{ backlink.url }}"
class=
"md-nav__link"
>
{{ backlink.title }}
</a>
</li>
{% endfor %}
</ul>
</nav>
{% endif %}
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment