docs: doks 0.5.0 preparation work (#3672)

pull/3675/head^2
James Elliott 2022-07-08 14:54:00 +10:00 committed by GitHub
parent 24f5caed97
commit 3225ecf537
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 630 additions and 572 deletions

View File

@ -2,9 +2,15 @@
title: "Say hello to the new website 👋" title: "Say hello to the new website 👋"
description: "Introducing the new website" description: "Introducing the new website"
lead: "Introducing the new website" lead: "Introducing the new website"
excerpt: "Introducing the new website"
date: 2022-06-15T17:51:47+10:00 date: 2022-06-15T17:51:47+10:00
draft: false draft: false
images: []
categories: ["News"]
tags: ["website"]
contributors: ["James Elliott"] contributors: ["James Elliott"]
pinned: false
homepage: false
--- ---
We're pleased to have you take a look at our new website. It combines both the main landing site and the documentation We're pleased to have you take a look at our new website. It combines both the main landing site and the documentation

View File

@ -0,0 +1,22 @@
{{ define "main" }}
<div class="row justify-content-center">
<div class="col-md-12 col-lg-10 col-xl-8">
<article>
<h1 class="text-center">{{ if eq .CurrentSection .FirstSection }}{{ .Section | humanize }}{{ else }}{{ .Title }}{{ end }}</h1>
<div class="text-center">{{ .Content }}</div>
<div class="card-list">
{{ $currentSection := .CurrentSection }}
{{ range where .Site.RegularPages.ByWeight "Section" .Section }}
{{ if in (.RelPermalink | string) $currentSection.RelPermalink }}
<div class="card my-3">
<div class="card-body">
<a class="stretched-link" href="{{ .RelPermalink }}">{{ if (eq $currentSection.Title .Title) }}Introduction{{ else }}{{ .Params.title | title }}{{ end }} &rarr;</a>
</div>
</div>
{{ end }}
{{ end }}
</div>
</article>
</div>
</div>
{{ end }}

View File

@ -3,7 +3,7 @@
"description": "Doks theme", "description": "Doks theme",
"version": "0.4.2", "version": "0.4.2",
"engines": { "engines": {
"node": ">=16.15.0" "node": ">=16.15.1"
}, },
"browserslist": [ "browserslist": [
"defaults" "defaults"
@ -38,28 +38,28 @@
"version": "auto-changelog -p && git add CHANGELOG.md" "version": "auto-changelog -p && git add CHANGELOG.md"
}, },
"devDependencies": { "devDependencies": {
"@babel/cli": "7.17.10", "@babel/cli": "7.18.6",
"@babel/core": "7.18.5", "@babel/core": "7.18.6",
"@babel/preset-env": "^7.16", "@babel/preset-env": "7.18.6",
"@fullhuman/postcss-purgecss": "4.1.3", "@fullhuman/postcss-purgecss": "4.1.3",
"auto-changelog": "2.4.0", "auto-changelog": "2.4.0",
"autoprefixer": "10.4.7", "autoprefixer": "10.4.7",
"bootstrap": "5.1.3", "bootstrap": "5.2.0-beta1",
"bootstrap-icons": "1.8.3", "bootstrap-icons": "1.8.3",
"clipboard": "2.0.11", "clipboard": "2.0.11",
"eslint": "8.18.0", "eslint": "8.19.0",
"exec-bin": "1.0.0", "exec-bin": "1.0.0",
"flexsearch": "0.7.21", "flexsearch": "0.7.21",
"highlight.js": "11.5.1", "highlight.js": "11.5.1",
"hugo-installer": "3.1.0", "hugo-installer": "3.1.0",
"instant.page": "5.1.0", "instant.page": "5.1.1",
"katex": "0.16.0", "katex": "0.16.0",
"lazysizes": "5.3.2", "lazysizes": "5.3.2",
"markdownlint-cli2": "0.4.0", "markdownlint-cli2": "0.4.0",
"netlify-plugin-submit-sitemap": "0.4.0", "netlify-plugin-submit-sitemap": "0.4.0",
"node-fetch": "3.2.6", "node-fetch": "3.2.6",
"postcss": "8.4.14", "postcss": "8.4.14",
"postcss-cli": "9.1.0", "postcss-cli": "10.0.0",
"purgecss-whitelister": "2.4.0", "purgecss-whitelister": "2.4.0",
"shx": "0.3.4", "shx": "0.3.4",
"stylelint": "14.9.1", "stylelint": "14.9.1",

File diff suppressed because it is too large Load Diff