Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
docs.it4i.cz
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Container registry
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
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
Petr Strakos
docs.it4i.cz
Commits
c86bb7d0
Commit
c86bb7d0
authored
7 years ago
by
David Hrbáč
Browse files
Options
Downloads
Patches
Plain Diff
Algorithm to detect root page
parent
55040cde
Branches
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
material/partials/toc.html
+11
-2
11 additions, 2 deletions
material/partials/toc.html
with
11 additions
and
2 deletions
material/partials/toc.html
+
11
−
2
View file @
c86bb7d0
...
...
@@ -4,16 +4,25 @@
{% if toc_ | first is defined and "\x3ch1 id=" in page.content %}
{% set toc_ = (toc_ | first).children %}
{% endif %}
{% if page.abs_url.rstrip('index.html').rstrip('/') == '' %}
{% set it4i_link = config.repo_url + '/edit/master/docs.it4i/index.md' %}
{% set it4i_page = '/index.md' %}
{% set it4i_url = 'https://docs.it4i.cz' %}
{% else %}
{% set it4i_link = config.repo_url + '/edit/master/docs.it4i' + page.abs_url.rstrip('index.html').rstrip('/') + '.md' %}
{% set it4i_page = page.abs_url.rstrip('index.html').rstrip('/') + '.md' %}
{% set it4i_url = 'https://docs.it4i.cz' + page.abs_url %}
{% endif %}
<ul
class=
"md-nav__list"
data-md-scrollfix
>
<li
class=
"md-nav__item"
>
<a
href=
"{{
config.repo_url }}/edit/master/docs.it4i{{ page.abs_url.rstrip('index.html').rstrip('/') }}.md
"
title=
"Edit This Page"
class=
"md-nav__link"
target=
"_blank"
>
<a
href=
"{{
it4i_link }}
"
title=
"Edit This Page"
class=
"md-nav__link"
target=
"_blank"
>
<i
class=
"md-icon md-icon--edit"
>
</i>
Edit This Page
</a>
</li>
<li
class=
"md-nav__item"
>
<a
href=
"https://code.it4i.cz/sccs/docs.it4i.cz/issues/new?issue%5Bdescription%5D=Requested change in page [{{
page.abs_url.rstrip('index.html').rstrip('/') }}.md](https://docs.it4i.cz{{ page.abs
_url }}) /cc @hrb33 @kru0052"
title=
"Request Change"
class=
"md-nav__link"
target=
"_blank"
>
<a
href=
"https://code.it4i.cz/sccs/docs.it4i.cz/issues/new?issue%5Bdescription%5D=Requested change in page [{{
it4i_page }}]({{ it4i
_url }}) /cc @hrb33 @kru0052"
title=
"Request Change"
class=
"md-nav__link"
target=
"_blank"
>
<i
class=
"md-icon md-icon--check"
>
</i>
Request Change
...
...
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