Explorar el Código

Convert docs to emit HTML templates for Hugo to import

default_compile_flags
vector-of-bool hace 4 años
padre
commit
f989fdec0c
Se han modificado 3 ficheros con 32 adiciones y 9 borrados
  1. +2
    -2
      docs/conf.py
  2. +0
    -7
      docs/index.rst
  3. +30
    -0
      docs/layout.html

+ 2
- 2
docs/conf.py Ver fichero

@@ -13,7 +13,7 @@ release = '0.1.0-alpha.4'

# -- General configuration ---------------------------------------------------
extensions = []
templates_path = ['_templates']
templates_path = ['.']
source_suffix = '.rst'
master_doc = 'index'
language = None
@@ -21,7 +21,7 @@ exclude_patterns = ['_build', 'Thumbs.db', '.DS_Store']
pygments_style = None

# -- Options for HTML output -------------------------------------------------
html_theme = 'nature'
html_theme = 'basic'
html_theme_options = {}
html_static_path = []
html_sidebars = {}

+ 0
- 7
docs/index.rst Ver fichero

@@ -19,10 +19,3 @@ the :doc:`tut/index` page.
design
dev/index
err/index

Indices and tables
==================

* :ref:`genindex`
* :ref:`modindex`
* :ref:`search`

+ 30
- 0
docs/layout.html Ver fichero

@@ -0,0 +1,30 @@
---
title: "{{ title | striptags }}"
layout: single
{% if not pagename.endswith('index') -%}
url: docs/{{pagename}}{{file_suffix}}
{%- endif %}
---

<div class="toc global">
<div class="toc-content" role="navigation" aria-label="global navigation">
<div class="toc-header">Contents</div>
{{ toctree(maxdepth=5, titles_only=True) }}
</div>
</div>

<div class="toc local">
<div class="toc-content" role="navigation" aria-label="local navigation">
<div class="toc-header">On this page</div>
{{ toc }}
</div>
</div>

<div class="page-content">
{{ body }}
{% if next %}
<div class="next-link">
Next: <a href="{{ next.link }}">{{ next.title }}</a>
</div>
{% endif %}
</div>

Cargando…
Cancelar
Guardar