Skip to content

Commit

Permalink
General python 3
Browse files Browse the repository at this point in the history
  • Loading branch information
Josh Holtz committed Jul 2, 2021
1 parent 91d32de commit 044d27f
Show file tree
Hide file tree
Showing 7 changed files with 163 additions and 1 deletion.
Binary file added .Pipfile.swo
Binary file not shown.
2 changes: 1 addition & 1 deletion Pipfile
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,4 @@ pymdown-extensions = "==8.1.1"
[dev-packages]

[requires]
python_version = "3.8"
python_version = "3"
Binary file added theme/img/favicon.ico
Binary file not shown.
45 changes: 45 additions & 0 deletions theme/this_toc.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
{# loop through all navigation items #}
{# if the current item has children #}
{% if toc_item.children %}
{# if the current item title does not start with _ #}
{% if true %}
{% if not toc_item.title.startswith("_") %}
<ul class="subnav">
<li><span>{{ toc_item.title }}</span></li>
{% for toc_item in toc_item.children %}
{% include 'toc.html' %}
{% endfor %}
</ul>
{% endif %}
{% endif %}
{# if the current item does not have children #}
{% else %}
{# if the current item title does not start with _ #}
{% if not toc_item.title.startswith("_") %}
<li class="toctree-l1
{# if current item is active #}
{% if toc_item.active %}current{% endif %}
{# if current page has ancestors and current item title prefixed with _ is identical to ancestor title (_ + Action <=> _Action) #}
{% if current_page and current_page.ancestors %}{% for doc in current_page.ancestors %}{% if "_"+toc_item.title == doc.title %}current{% endif %}{% endfor %}{% endif %}
">
<a class="
{% if toc_item.active %}current{% endif %}
{% if current_page and current_page.ancestors %}{% for doc in current_page.ancestors %}{% if "_"+toc_item.title == doc.title %}current{% endif %}{% endfor %}{% endif %}
" href="{{ toc_item.url }}">
{{ toc_item.title }}
</a>
{# if current item is current page #}
{% if toc_item == current_page %}
<ul>
EEEEEEEEEE
{# output headlines #}
{% for toc_item in toc %}
{% if loop.index != 1 %}
<li class="toctree-l3"><a href="{{ toc_item.url }}">EEEEE {{ toc_item.title }}</a></li>
{% endif %}
{% endfor %}
</ul>
{% endif %}
</li>
{% endif %}
{% endif %}
26 changes: 26 additions & 0 deletions theme/working_toc.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
<div class="navbar-light navbar-expand-md bs-sidebar hidden-print affix" role="complementary">
<div class="navbar-header">
<button type="button" class="navbar-toggler collapsed" data-toggle="collapse" data-target="#toc-collapse" title="Table of Contents">
<span class="fa fa-angle-down"></span>
</button>
</div>

{% macro toc_item(item) %}
{%- if item.level <= config.theme.navigation_depth %}
<li class="nav-item" data-level="{{ item.level }}"><a href="{{ item.url }}" class="nav-link">{{ item.title }}</a>
<ul class="nav flex-column">
{%- for child in item.children %}
{{- toc_item(child) }}
{%- endfor %}
</ul>
</li>
{%- endif %}
{%- endmacro %}
<div id="toc-collapse" class="navbar-collapse collapse card bg-secondary">
<ul class="nav flex-column">
{%- for item in page.toc %}
{{ toc_item(item) }}
{%- endfor %}
</ul>
</div>
</div>
49 changes: 49 additions & 0 deletions theme/xbreadcrumbs.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
<div role="navigation" aria-label="breadcrumbs navigation">
<ul class="wy-breadcrumbs">
<li><a href="{{ homepage_url }}">Docs</a> &raquo;</li>
{% if current_page %}
{% for doc in current_page.ancestors %}
{% if doc.title == "_Actions" %}
<!-- Special case for the hidden action pages -->
<li><a href="/actions/">Actions</a> &raquo;</li>
{% elif doc.link %}
<li><a href="{{ doc.link|e }}">{{ doc.title }}</a> &raquo;</li>
{% else %}
<li>{{ doc.title }} &raquo;</li>
{% endif %}
{% endfor %}
{% endif %}
{% if current_page %}<li>{{ current_page.title }}</li>{% endif %}

{% if current_page and current_page.input_path != "actions.md" and current_page.input_path != "plugins/available-plugins.md" %}
<li class="wy-breadcrumbs-aside">
{% if "actions/" in current_page.input_path %}
<!-- custom edit link for all actions -->
<!-- Edit the action, from which we generate the docs -->
<a href="https://github.com/fastlane/fastlane/edit/master/fastlane/lib/fastlane/actions/{{ current_page.title }}.rb" class="icon icon-github" target="_blank">
Edit on GitHub
</a>
{% else %}
<a href="https://github.com/fastlane/docs/edit/master/docs/{{ current_page.input_path }}" class="icon icon-github" target="_blank">
Edit on GitHub
</a>
{% endif %}
</li>
{% endif %}
<li class="wy-breadcrumbs-aside">
<input type="text" name="q" placeholder="Search docs" />
</li>
</ul>
<hr/>
</div>

<link rel="stylesheet" href="https://cdn.jsdelivr.net/docsearch.js/2/docsearch.min.css" />
<!-- at the end of the BODY -->
<script type="text/javascript" src="https://cdn.jsdelivr.net/docsearch.js/2/docsearch.min.js"></script>
<script type="text/javascript"> docsearch({
apiKey: 'c651753b86f5f8a00f8f2e9e9ca95865',
indexName: 'fastlane',
inputSelector: 'body > div.wy-grid-for-nav > section > div > div > div:nth-child(1) > ul > li.wy-breadcrumbs-aside > input[type="text"]',
debug: false
});
</script>
42 changes: 42 additions & 0 deletions theme/xtoc.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
{# loop through all navigation items #}
{# if the current item has children #}
{% if nav_item.children %}
{# if the current item title does not start with _ #}
{% if not nav_item.title.startswith("_") %}
<ul class="subnav">
<li><span>{{ nav_item.title }}</span></li>
{% for nav_item in nav_item.children %}
{#% include 'toc.html' %#}
{% endfor %}
</ul>
{% endif %}
{# if the current item does not have children #}
{% else %}
{# if the current item title does not start with _ #}
{% if not nav_item.title.startswith("_") %}
<li class="toctree-l1
{# if current item is active #}
{% if nav_item.active %}current{% endif %}
{# if current page has ancestors and current item title prefixed with _ is identical to ancestor title (_ + Action <=> _Action) #}
{% if current_page and current_page.ancestors %}{% for doc in current_page.ancestors %}{% if "_"+nav_item.title == doc.title %}current{% endif %}{% endfor %}{% endif %}
">
<a class="
{% if nav_item.active %}current{% endif %}
{% if current_page and current_page.ancestors %}{% for doc in current_page.ancestors %}{% if "_"+nav_item.title == doc.title %}current{% endif %}{% endfor %}{% endif %}
" href="{{ nav_item.url }}">
{{ nav_item.title }}
</a>
{# if current item is current page #}
{% if nav_item == current_page %}
<ul>
{# output headlines #}
{% for toc_item in toc %}
{% if loop.index != 1 %}
<li class="toctree-l3"><a href="{{ toc_item.url }}">{{ toc_item.title }}</a></li>
{% endif %}
{% endfor %}
</ul>
{% endif %}
</li>
{% endif %}
{% endif %}

0 comments on commit 044d27f

Please sign in to comment.