Skip to content
This repository has been archived by the owner on Sep 28, 2023. It is now read-only.

Commit

Permalink
feat: update for doks v0.3.0
Browse files Browse the repository at this point in the history
  • Loading branch information
h-enk committed Jun 25, 2021
1 parent 69cdc3c commit 630c2a2
Show file tree
Hide file tree
Showing 16 changed files with 5,185 additions and 12,806 deletions.
5 changes: 3 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
functions
bin
node_modules
public
resources
# Local Netlify folder
.netlify
.netlify
TODO
1 change: 0 additions & 1 deletion .npmrc

This file was deleted.

27 changes: 0 additions & 27 deletions .versionrc.json

This file was deleted.

8 changes: 6 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
# Changelog
### Changelog

All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
All notable changes to this project will be documented in this file. Dates are displayed in UTC.

Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).

<!-- auto-changelog-above -->

### [0.2.3](https://github.com/h-enk/doks/compare/v0.2.2...v0.2.3) (2021-04-02)

Expand Down
34 changes: 25 additions & 9 deletions config/_default/params.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,20 +6,34 @@ titleSeparator = "-"
titleAddition = "Modern Documentation Theme"
description = "Doks is a Hugo theme helping you build modern documentation websites that are secure, fast, and SEO-ready — by default."

## Open Graph + Twitter Cards
## Open Graph
images = ["doks.png"]
twitterSite = "henkverlinde"
twitterCreator = "henkverlinde"
facebookAuthor = "verlinde.henk"
facebookPublisher = "verlinde.henk"
ogLocale = "en_US"
domainTLD = "doks.netlify.app"
titleHome = "Doks Theme"

## Twitter Cards
twitterSite = "@getdoks"
twitterCreator = "@henkverlinde"

## JSON-LD
# schemaType = "Person"
schemaType = "Organization"
schemaName = "Doks"
schemaAuthor = "Henk Verlinde"
schemaAuthorTwitter = "https://twitter.com/henkverlinde"
schemaAuthorLinkedIn = "https://www.linkedin.com/in/henkverlinde/"
schemaAuthorGitHub = "https://github.com/h-enk"
schemaLocale = "en-US"
schemaLogo = "logo-doks.png"
schemaTwitter = "https://twitter.com/henkverlinde"
schemaLinkedIn = "https://www.linkedin.com/in/henkverlinde/"
schemaGitHub = "https://github.com/h-enk"
schemaLogoWidth = 512
schemaLogoHeight = 512
schemaImage = "doks.png"
schemaImageWidth = 1280
schemaImageHeight = 640
schemaTwitter = "https://twitter.com/getdoks"
schemaLinkedIn = ""
schemaGitHub = "https://github.com/h-enk/doks"
schemaSection = "blog"

## Sitelinks Search Box
Expand All @@ -37,6 +51,7 @@ lqipWidth = "20x"

# Footer
footer = "Powered by <a href=\"https://www.netlify.com/\">Netlify</a>, <a href=\"https://gohugo.io/\">Hugo</a>, and <a href=\"https://getdoks.org/\">Doks</a>"
copyRight = "Copyright (c) 2020-2021 Henk Verlinde"

# Alert
alert = false
Expand All @@ -52,7 +67,8 @@ editPage = false
instantPage = true
flexSearch = true
darkMode = true
bootStrapJs = false
bootStrapJs = true
breadCrumb = false
highLight = true
kaTex = false
collapsibleSidebar = false
5 changes: 3 additions & 2 deletions config/postcss.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,12 @@ module.exports = {
'tr',
'th',
'td',
'h5',
...whitelister([
'./node_modules/@hyas/doks/assets/scss/common/_variables.scss',
'./node_modules/@hyas/doks/assets/scss/components/_doks.scss',
'./node_modules/@hyas/doks/assets/scss/components/_code.scss',
'./node_modules/@hyas/doks/assets/scss/components/_buttons.scss',
'./node_modules/@hyas/doks/assets/scss/components/_code.scss',
'./node_modules/@hyas/doks/assets/scss/components/_syntax.scss',
'./node_modules/@hyas/doks/assets/scss/components/_search.scss',
'./node_modules/@hyas/doks/assets/scss/common/_dark.scss',
'./node_modules/katex/dist/katex.css',
Expand Down
2 changes: 1 addition & 1 deletion content/docs/help/how-to-update.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ weight: 610
toc: true
---

{{< alert icon="💡" text="Learn more about <a href=\"https://docs.npmjs.com/about-semantic-versioning\">semantic versioning</a> and <a href=\"https://docs.npmjs.com/cli/v6/using-npm/semver#advanced-range-syntax\">advanced range syntax</a>." >}}
{{< alert icon="💡" text="Learn more about <a href=\"https://docs.npmjs.com/about-semantic-versioning\">semantic versioning</a> and <a href=\"https://docs.npmjs.com/cli/v6/using-npm/semver#advanced-range-syntax\">advanced range syntax</a>." />}}

## Check for outdated packages

Expand Down
22 changes: 1 addition & 21 deletions content/docs/prologue/commands.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,14 +13,12 @@ weight: 130
toc: true
---

{{< alert icon="💡" text="You can change the commands in the scripts section of `./package.json`." >}}
{{< alert icon="💡" text="You can change the commands in the scripts section of `./package.json`." />}}

## create

Create new content for your site:

{{< btn-copy text="npm run create" >}}

```bash
npm run create [path] [flags]
```
Expand All @@ -31,8 +29,6 @@ See also the Hugo docs: [hugo new](https://gohugo.io/commands/hugo_new/).

Check scripts, styles, and markdown for errors:

{{< btn-copy text="npm run lint" >}}

```bash
npm run lint
```
Expand All @@ -41,8 +37,6 @@ npm run lint

Check scripts for errors:

{{< btn-copy text="npm run lint:scripts" >}}

```bash
npm run lint:scripts [-- --fix]
```
Expand All @@ -51,8 +45,6 @@ npm run lint:scripts [-- --fix]

Check styles for errors:

{{< btn-copy text="npm run lint:styles" >}}

```bash
npm run lint:styles [-- --fix]
```
Expand All @@ -61,8 +53,6 @@ npm run lint:styles [-- --fix]

Check markdown for errors:

{{< btn-copy text="npm run lint:markdown" >}}

```bash
npm run lint:markdown [-- --fix]
```
Expand All @@ -71,8 +61,6 @@ npm run lint:markdown [-- --fix]

Delete temporary directories:

{{< btn-copy text="npm run clean" >}}

```bash
npm run clean
```
Expand All @@ -81,8 +69,6 @@ npm run clean

Start local development server:

{{< btn-copy text="npm run start" >}}

```bash
npm run start
```
Expand All @@ -91,8 +77,6 @@ npm run start

Build production website:

{{< btn-copy text="npm run build" >}}

```bash
npm run build
```
Expand All @@ -101,8 +85,6 @@ npm run build

Build Lambda functions:

{{< btn-copy text="npm run build:functions" >}}

```bash
npm run build:functions
```
Expand All @@ -111,8 +93,6 @@ npm run build:functions

Build production website including draft and future content:

{{< btn-copy text="npm run build:preview" >}}

```bash
npm run build:preview
```
4 changes: 2 additions & 2 deletions content/docs/prologue/introduction.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,13 +19,13 @@ There are two main ways to get started with Doks:

### Tutorial

{{< alert icon="👉" text="The Tutorial is intended for novice to intermediate users." >}}
{{< alert icon="👉" text="The Tutorial is intended for novice to intermediate users." />}}

Step-by-step instructions on how to start a new Doks project. [Tutorial →](https://getdoks.org/tutorial/introduction/)

### Quick Start

{{< alert icon="👉" text="The Quick Start is intended for intermediate to advanced users." >}}
{{< alert icon="👉" text="The Quick Start is intended for intermediate to advanced users." />}}

One page summary of how to start a new Doks project. [Quick Start →]({{< relref "quick-start" >}})

Expand Down
10 changes: 0 additions & 10 deletions content/docs/prologue/quick-start.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,40 +34,30 @@ Not quite sure? Use the Doks child theme.

#### Doks child theme

{{< btn-copy text="git clone https://github.com/h-enk/doks-child-theme.git my-doks-site" >}}

```bash
git clone https://github.com/h-enk/doks-child-theme.git my-doks-site
```

#### Doks starter theme

{{< btn-copy text="git clone https://github.com/h-enk/doks.git my-doks-site" >}}

```bash
git clone https://github.com/h-enk/doks.git my-doks-site
```

### Change directories

{{< btn-copy text="cd my-doks-site" >}}

```bash
cd my-doks-site
```

### Install dependencies

{{< btn-copy text="npm install" >}}

```bash
npm install
```

### Start development server

{{< btn-copy text="npm run start" >}}

```bash
npm run start
```
Expand Down
4 changes: 0 additions & 4 deletions data/doks.json

This file was deleted.

File renamed without changes.
2 changes: 1 addition & 1 deletion layouts/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ <h1 class="mt-0">{{ .Title }}</h1>
<div class="col-lg-9 col-xl-8 text-center">
<p class="lead">{{ .Params.lead | safeHTML }}</p>
<a class="btn btn-primary btn-lg px-4 mb-2" href="{{ "docs/prologue/introduction/" | relURL }}" role="button">Get started</a>
<p class="meta">Open-source MIT Licensed. <a href="https://github.com/h-enk/doks">GitHub v{{ .Site.Data.doks.version }}</a></p>
<p class="meta">Open-source MIT Licensed. <a href="https://github.com/h-enk/doks">GitHub v{{ $data := getJSON "https://raw.githubusercontent.com/h-enk/doks/master/package.json" }}{{ $data.version }}</a></p>
</div>
</div>
</section>
Expand Down
14 changes: 7 additions & 7 deletions netlify.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,27 +3,27 @@
functions = "functions"

[build.environment]
NODE_VERSION = "15.5.1"
NPM_VERSION = "7.3.0"
NODE_VERSION = "16.3.0"
NPM_VERSION = "7.16.0"

[context.production]
command = "npx hugo --gc --minify && npx netlify-lambda build assets/lambda"
command = "exec-bin bin/hugo/hugo --gc --minify"

[context.deploy-preview]
command = "npx hugo --gc --minify -b $DEPLOY_PRIME_URL"
command = "exec-bin bin/hugo/hugo --gc --minify -b $DEPLOY_PRIME_URL"

[context.branch-deploy]
command = "npx hugo --gc --minify -b $DEPLOY_PRIME_URL"
command = "exec-bin bin/hugo/hugo --gc --minify -b $DEPLOY_PRIME_URL"

[context.next]
command = "npx hugo --gc --minify && npx netlify-lambda build assets/lambda"
command = "exec-bin bin/hugo/hugo --gc --minify"

[context.next.environment]
HUGO_ENV = "next"

[dev]
framework = "#custom"
command = "npx rimraf public resources functions && npx hugo server --bind=0.0.0.0 --disableFastRender"
command = "shx rm -rf public resources && exec-bin bin/hugo/hugo server --bind=0.0.0.0 --disableFastRender"
targetPort = 1313
port = 8888
publish = "public"
Expand Down
Loading

0 comments on commit 630c2a2

Please sign in to comment.