mirror of
https://github.com/open-policy-agent/opa.git
synced 2026-08-13 03:42:35 -06:00
Docs refactoring to prepare for new Hello World
This commit is contained in:
+25
-2
@@ -7,15 +7,38 @@ layout: default
|
||||
<ul>
|
||||
{% assign pages = site.pages | sort:"sort_order" %}
|
||||
{% for page in pages %}
|
||||
{% if page.section == 'docs' %}
|
||||
{% if page.section == 'docs' %}
|
||||
<li>
|
||||
<a class="page-link" href="{{ page.url | prepend: site.baseurl }}">{{page.title}}</a>
|
||||
</li>
|
||||
<br>
|
||||
{% endif %}
|
||||
{% endfor %}
|
||||
<li>References</li>
|
||||
<ul>
|
||||
{% assign pages = site.pages | sort:"sort_order" %}
|
||||
{% for page in pages %}
|
||||
{% if page.section == 'references' %}
|
||||
<li>
|
||||
<a class="page-link" href="{{ page.url | prepend: site.baseurl }}">{{page.title}}</a>
|
||||
</li>
|
||||
{% endif %}
|
||||
{% endfor %}
|
||||
</ul>
|
||||
<li>Examples</li>
|
||||
<ul>
|
||||
{% assign pages = site.pages | sort:"sort_order" %}
|
||||
{% for page in pages %}
|
||||
{% if page.section == 'examples' %}
|
||||
<li>
|
||||
<a class="page-link" href="{{ page.url | prepend: site.baseurl }}">{{page.title}}</a>
|
||||
</li>
|
||||
{% endif %}
|
||||
{% endfor %}
|
||||
</ul>
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
|
||||
<div class="docs-content">
|
||||
{{ content }}
|
||||
</div>
|
||||
|
||||
+1
-1
@@ -1,7 +1,7 @@
|
||||
---
|
||||
layout: docs
|
||||
title: Architecture
|
||||
section: docs
|
||||
section: references
|
||||
sort_order: 2
|
||||
---
|
||||
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
---
|
||||
layout: docs
|
||||
title: Development
|
||||
section: docs
|
||||
section: references
|
||||
sort_order: 100
|
||||
---
|
||||
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
layout: docs
|
||||
header_title: Examples
|
||||
title: Hello World
|
||||
section: docs
|
||||
section: examples
|
||||
show_in_header: true
|
||||
sort_order: 1000
|
||||
---
|
||||
|
||||
+1
-1
@@ -1,7 +1,7 @@
|
||||
---
|
||||
layout: docs
|
||||
title: Language
|
||||
section: docs
|
||||
section: references
|
||||
sort_order: 3
|
||||
---
|
||||
|
||||
|
||||
Reference in New Issue
Block a user