diff --git a/docs/Gemfile.lock b/docs/Gemfile.lock index 805bdf2..f081057 100644 --- a/docs/Gemfile.lock +++ b/docs/Gemfile.lock @@ -95,9 +95,10 @@ GEM rbs (>= 3, < 4) sorbet-runtime (>= 0.5.10782) safe_yaml (1.0.5) - sass-embedded (1.69.5-arm64-darwin) + sass-embedded (1.69.5) google-protobuf (~> 3.23) - sass-embedded (1.69.5-x86_64-linux-gnu) + rake (>= 13.0.0) + sass-embedded (1.69.5-arm64-darwin) google-protobuf (~> 3.23) sorbet-runtime (0.5.11466) strscan (3.1.0) diff --git a/docs/_includes/components/code-snippet.html b/docs/_includes/components/code-snippet.html new file mode 100644 index 0000000..218a0e8 --- /dev/null +++ b/docs/_includes/components/code-snippet.html @@ -0,0 +1,6 @@ +
+ Code snippet: + + {{ include.text | markdownify }} + +
diff --git a/docs/_includes/components/phase-banner.html b/docs/_includes/components/phase-banner.html new file mode 100644 index 0000000..313626b --- /dev/null +++ b/docs/_includes/components/phase-banner.html @@ -0,0 +1,14 @@ +
+
+

+ {{include.phase_tag}} + {{include.phase_text}} +

+
+
+ diff --git a/docs/_layouts/no-nav-page.html b/docs/_layouts/no-nav-page.html new file mode 100644 index 0000000..a2d0a36 --- /dev/null +++ b/docs/_layouts/no-nav-page.html @@ -0,0 +1,36 @@ +--- +layout: default +--- + +{% assign current_dir = page.dir %} +{% assign paths = page.dir | split: "/" %} +{% assign parent_dir = paths[1] %} + +{%- +assign nav_pages = site.pages +| where_exp: "item", "item.dir contains parent_dir" +-%} + +{% assign first_level_dir = parent_dir | prepend: '/' | append: '/' %} +{%- +assign first_level = nav_pages +| where_exp: "item", "item.dir == first_level_dir" +| group_by: "section" +| sort: 'name', 'last' +-%} + +
+
+
+
+
+ {% if page.section != undefined %} + {{ page.section }} + {% endif %} +

{{ page.title }}

+ {{ content }} +
+
+
+
+
diff --git a/docs/_layouts/page.html b/docs/_layouts/page.html index 400ec65..c250a33 100644 --- a/docs/_layouts/page.html +++ b/docs/_layouts/page.html @@ -3,20 +3,20 @@ --- {% assign current_dir = page.dir %} -{% assign paths = page.dir | split: "/" %} +{% assign paths = page.dir | split: "/" %} {% assign parent_dir = paths[1] %} {%- - assign nav_pages = site.pages - | where_exp: "item", "item.dir contains parent_dir" +assign nav_pages = site.pages +| where_exp: "item", "item.dir contains parent_dir" -%} {% assign first_level_dir = parent_dir | prepend: '/' | append: '/' %} {%- - assign first_level = nav_pages - | where_exp: "item", "item.dir == first_level_dir" - | group_by: "section" - | sort: 'name', 'last' +assign first_level = nav_pages +| where_exp: "item", "item.dir == first_level_dir" +| group_by: "section" +| sort: 'name', 'last' -%}
@@ -26,21 +26,21 @@