Initial commit

This commit is contained in:
rtm516 committed 2021-12-12 14:09:40 +00:00
commit 6d849e9549
109 files changed
+40227

No files matched your search

Executable
+15
View File
@@ -0,0 +1,15 @@
---
title: About
permalink: /about/
---
# About
This is a [starter template](https://vsoch.github.io/docsy-jekyll/) for a Docsy jekyll theme, based
on the Beautiful [Docsy](https://github.com/google/docsy) that renders with Hugo. This version is intended for
native deployment on GitHub pages. See the [respository]({{ site.repo }}) for more details.
## Support
If you need help, please don't hesitate to [open an issue](https://www.github.com/{{ site.github_user }}/{{ site.github_repo }}).
+17
View File
@@ -0,0 +1,17 @@
---
layout: page
title: Articles
permalink: /archive/
---
# News Archive
{% for post in site.posts %}{% capture this_year %}{{ post.date | date: "%Y" }}{% endcapture %}{% capture next_year %}{{ post.previous.date | date: "%Y" }}{% endcapture %}
{% if forloop.first %}<h2 class="c-archives__year" id="{{ this_year }}-ref">{{this_year}}</h2>
<ul class="c-archives__list">{% endif %}
<li class="c-archives__item">
{{ post.date | date: "%b %-d, %Y" }}: <a href="{{ post.url | prepend: site.baseurl }}">{{ post.title }}</a>
</li>{% if forloop.last %}</ul>{% else %}{% if this_year != next_year %}
</ul>
<h2 class="c-archives__year" id="{{ next_year }}-ref">{{next_year}}</h2>
<ul class="c-archives__list">{% endif %}{% endif %}{% endfor %}
Executable
+19
View File
@@ -0,0 +1,19 @@
---
layout: page
title: Documentation
permalink: /docs/
---
# Documentation
Welcome to the {{ site.title }} Documentation pages! Here you can quickly jump to a
particular page.
<div class="section-index">
<hr class="panel-line">
{% for post in site.docs %}
<div class="entry">
<h5><a href="{{ post.url | prepend: site.baseurl }}">{{ post.title }}</a></h5>
<p>{{ post.description }}</p>
</div>{% endfor %}
</div>
+31
View File
@@ -0,0 +1,31 @@
---
layout: null
permalink: /feed.xml
---
<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
<channel>
<title>{{ site.title | xml_escape }}</title>
<description>{{ site.description | xml_escape }}</description>
<link>{{ site.url }}{{ site.baseurl }}/</link>
<atom:link href="{{ "/feed.xml" | prepend: site.baseurl | prepend: site.url }}" rel="self" type="application/rss+xml"/>
<pubDate>{{ site.time | date_to_rfc822 }}</pubDate>
<lastBuildDate>{{ site.time | date_to_rfc822 }}</lastBuildDate>
<generator>Jekyll v{{ jekyll.version }}</generator>
{% for post in site.posts limit:10 %}
<item>
<title>{{ post.title | xml_escape }}</title>
<description>{{ post.content | xml_escape }}</description>
<pubDate>{{ post.date | date_to_rfc822 }}</pubDate>
<link>{{ post.url | prepend: site.baseurl | prepend: site.url }}</link>
<guid isPermaLink="true">{{ post.url | prepend: site.baseurl | prepend: site.url }}</guid>
{% for tag in post.tags %}
<category>{{ tag | xml_escape }}</category>
{% endfor %}
{% for cat in post.categories %}
<category>{{ cat | xml_escape }}</category>
{% endfor %}
</item>
{% endfor %}
</channel>
</rss>
+41
View File
@@ -0,0 +1,41 @@
---
layout: page
title: Docsy Jekyll Theme
permalink: /
---
# Welcome to Docsy Jekyll
This is a starter template for a docsy jekyll theme.
![assets/img/docsy-jekyll.png](assets/img/docsy-jekyll.png)
## Purpose
GitHub pages uses Jekyll natively, so when I make documentation, I typically
look for Jekyll templates. Why? Using Jekyll means that I can use markdown,
and allow for users to easily contribute, and build automatically just by
way of pushing to a master branch (or general GitHub pages).
I found Docsy, a beautiful Hugo template, but it requires hugo with GoLang
which doesn't render natively on GitHub pages. For this reason, I've spent
some time creating a custom Jekyll template that is (almost) as beautiful,
and includes all the features that I might want.
## Features
What are these features? You should see the {% include doc.html name="Getting Started" path="getting-started" %}
guide for a complete summary. Briefly:
- *User interaction* including consistent permalinks, links to ask questions via GitHub issues, and edit the file on GitHub directly.
- *Search* across posts, documentation, and other site pages, with an ability to exclude from search.
- *External Search* meaning an ability to link any page tag to trigger an external search.
- *Documentation* A documentation collection that was easy to organize on the filesystem, render with nested headings for the user, and refer to in markdown.
- *Pages* A separate folder for more traditional pages (e.g, about).
- *Navigation*: Control over the main navigation on the left of the page, and automatic generation of table of contents for each page on the right.
- *News* A posts feed for news and updates, along with an archive (organized by year).
- *Templates* or specifically, "includes" that make it easy to create an alert, documentation link, or other content.
- *Continuous Integration* recipes to preview the site
For features, getting started with development, see the {% include doc.html name="Getting Started" path="getting-started" %} page. Would you like to request a feature or contribute?
[Open an issue]({{ site.repo }}/issues)
+26
View File
@@ -0,0 +1,26 @@
---
title: News
permalink: /news/
---
# News
<p>Subscribe with <a href="{{ site.baseurl }}/feed.xml">RSS</a> to keep up with the latest news.
For site changes, see the <a href="https://github.com/{{ site.github_user }}/{{ site.github_repo }}/blob/master/CHANGELOG.md">changelog</a> kept with the code base.</p>
<br>
{% for post in site.posts limit:10 %}
<div class="post-preview">
<h2><a href="{{ site.baseurl }}{{ post.url }}">{{ post.title }}</a></h2>
<span class="post-date">{{ post.date | date: "%B %d, %Y" }}</span><br>
{% if post.badges %}{% for badge in post.badges %}<span class="badge badge-{{ badge.type }}">{{ badge.tag }}</span>{% endfor %}{% endif %}
{{ post.content | split:'<!--more-->' | first }}
{% if post.content contains '<!--more-->' %}
<a href="{{ site.baseurl }}{{ post.url }}">read more</a>
{% endif %}
</div>
<hr>
{% endfor %}
Want to see more? See the <a href="{{ site.baseurl }}/archive/">News Archive</a>.
+63
View File
@@ -0,0 +1,63 @@
---
title: Search
sitemap: false
permalink: /search/
not_editable: true
excluded_in_search: true
---
<input class="form-control td-search-input" type="search" name="q" id="search-input" placeholder="&#xf002 Search this site…" style="margin-top:5px" autofocus>
<i style="color:white; margin-right:8px; margin-left:5px" class="fa fa-search"></i>
<p><span id="search-process">Loading</span> results <span id="search-query-container" style="display: none;">for "<strong id="search-query"></strong>"</span></p>
<ul id="search-results"></ul>
<script>
window.data = {
{% for post in site.docs %}
{% unless post.excluded_in_search %}
{% if added %},{% endif %}
{% assign added = false %}
"{{ post.url | slugify }}": {
"id": "{{ post.url | slugify }}",
"title": "{{ post.title | xml_escape }}",
"categories": "{{ post.categories | join: ", " | xml_escape }}",
"url": " {{ post.url | xml_escape }}",
"content": {{ post.content | strip_html | replace_regex: "[\s/\n]+"," " | strip | jsonify }}
}
{% assign added = true %}
{% endunless %}
{% endfor %}
{% for post in site.posts %}
{% unless post.excluded_in_search %}
{% if added %},{% endif %}
{% assign added = false %}
"{{ post.url | slugify }}": {
"id": "{{ post.url | slugify }}",
"title": "{{ post.title | xml_escape }}",
"categories": "{{ post.categories | join: ", " | xml_escape }}",
"url": " {{ post.url | xml_escape }}",
"content": {{ post.content | strip_html | replace_regex: "[\s/\n]+"," " | strip | jsonify }}
}
{% assign added = true %}
{% endunless %}
{% endfor %}
{% for post in site.pages %}
{% unless post.excluded_in_search %}
{% if added %},{% endif %}
{% assign added = false %}
"{{ post.url | slugify }}": {
"id": "{{ post.url | slugify }}",
"title": "{{ post.title | xml_escape }}",
"categories": "{{ post.categories | join: ", " | xml_escape }}",
"url": " {{ post.url | xml_escape }}",
"content": {{ post.content | strip_html | replace_regex: "[\s/\n]+"," " | strip | jsonify }}
}
{% assign added = true %}
{% endunless %}
{% endfor %}
};
</script>
<script src="{{ site.baseurl }}/assets/js/lunr.min.js"></script>
<script src="{{ site.baseurl }}/assets/js/search.js"></script>
+19
View File
@@ -0,0 +1,19 @@
---
layout: null
permalink: /sitemap.xml
---
<?xml version="1.0" encoding="UTF-8"?>
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
<url>
<loc>/</loc>
<lastmod>{{ "now" | date: "%Y-%m-%d" }}</lastmod>
<changefreq>daily</changefreq>
</url>
{% for section in site.data.toc %}<url>
<loc>{{ site.baseurl }}{{ section.url }}/</loc>
<lastmod>{{ "now" | date: "%Y-%m-%d" }}</lastmod>
<changefreq>daily</changefreq>
</url>
{% endfor %}
</urlset>
+21
View File
@@ -0,0 +1,21 @@
---
title: Tags Index
permalink: /tags/
---
<h1 id="tags-index">Tags Index</h1>
{% capture site_tags %}{% for tag in site.tags %}{% if tag %}{{ tag | first }}{% unless forloop.last %},{% endunless %}{% endif %}{% endfor %}{% endcapture %}{% assign docs_tags = "" %}{% for doc in site.docs %}{% assign ttags = doc.tags | join:',' | append:',' %}{% assign docs_tags = docs_tags | append:ttags %}{% endfor %}
{% assign all_tags = site_tags | append:docs_tags %}{% assign tags_list = all_tags | split:',' | uniq | sort %}
{% for tag in tags_list %}{% if tag %}<h3 id="{{ tag | replace: '/', '-' }}" class="linked-section">{{ tag }}</h3>
<div class="post-list" style="margin-bottom:40px">
{% for post in site.tags[tag] %}<div class="tag-entry">
<a href="{{- site.url -}}{{- post.url -}}">{{- post.title -}}</a>
<time style="font-style:italic; float:right" datetime="{{- post.date | date_to_xmlschema -}}"> {{- post.date | date: "%B %d, %Y" -}}</time>
</div>{%- endfor -%}
{% for doc in site.docs %}{% if doc.tags contains tag %}
<div class="tag-entry">
<a href="{{- site.baseurl -}}{{- doc.url -}}">{{ doc.title }}</a>
<time style="font-style:italic; float:right" datetime="{{- doc.date | date_to_xmlschema -}}"> {{- doc.date | date: "%B %d, %Y" -}}</time>
</div>{% endif %}{% endfor %}
</div>{% endif %}{%- endfor -%}