Skip to content

Commit

Permalink
content: update for doks v0.2.3
Browse files Browse the repository at this point in the history
  • Loading branch information
h-enk committed Apr 2, 2021
1 parent 6720e6e commit b505b24
Show file tree
Hide file tree
Showing 10 changed files with 55 additions and 154 deletions.
6 changes: 0 additions & 6 deletions config/_default/menus.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,6 @@
identifier = "prologue"
url = "/docs/prologue/"

[[docs]]
name = "Examples"
weight = 20
identifier = "examples"
url = "/docs/examples/"

[[docs]]
name = "Help"
weight = 60
Expand Down
9 changes: 0 additions & 9 deletions content/docs/examples/_index.md

This file was deleted.

79 changes: 0 additions & 79 deletions content/docs/examples/code.md

This file was deleted.

46 changes: 0 additions & 46 deletions content/docs/examples/math.md

This file was deleted.

4 changes: 3 additions & 1 deletion content/docs/help/faq.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ toc: true

## Hyas?

Doks is a [Hyas theme](https://gethyas.com/themes/doks/) build by the creator of Hyas.
Doks is a [Hyas theme](https://gethyas.com/themes/) build by the creator of Hyas.

## Footer notice?

Expand All @@ -39,10 +39,12 @@ Create a topic:

- [Netlify Community](https://community.netlify.com/)
- [Hugo Forums](https://discourse.gohugo.io/)
- [Doks Discussions](https://github.com/h-enk/doks/discussions)

## Contact the creator?

Send `h-enk` a message:

- [Netlify Community](https://community.netlify.com/)
- [Hugo Forums](https://discourse.gohugo.io/)
- [Doks Discussions](https://github.com/h-enk/doks/discussions)
16 changes: 12 additions & 4 deletions content/docs/help/how-to-update.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ date: 2020-11-12T13:26:54+01:00
lastmod: 2020-11-12T13:26:54+01:00
draft: false
images: []
menu:
menu:
docs:
parent: "help"
weight: 610
Expand All @@ -15,10 +15,18 @@ 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>." >}}

## Update npm packages
## Check for outdated packages

Bump the versions in the `devDependencies` section of `./package.json` to your liking, and run:
The [`npm outdated`](https://docs.npmjs.com/cli/v7/commands/npm-outdated) command will check the registry to see if any (or, specific) installed packages are currently outdated:

```bash
npm update
npm outdated [[<@scope>/]<pkg> ...]
```

## Update packages

The [`npm update`](https://docs.npmjs.com/cli/v7/commands/npm-update) command will update all the packages listed to the latest version (specified by the tag config), respecting semver:

```bash
npm update [<pkg>...]
```
22 changes: 17 additions & 5 deletions content/docs/prologue/commands.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ date: 2020-10-13T15:21:01+02:00
lastmod: 2020-10-13T15:21:01+02:00
draft: false
images: []
menu:
menu:
docs:
parent: "prologue"
weight: 130
Expand All @@ -15,16 +15,18 @@ toc: true

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

## start
## create

Start local development server:
Create new content for your site:

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

```bash
npm run start
npm run create [path] [flags]
```

See also the Hugo docs: [hugo new](https://gohugo.io/commands/hugo_new/).

## lint

Check scripts, styles, and markdown for errors:
Expand Down Expand Up @@ -75,6 +77,16 @@ Delete temporary directories:
npm run clean
```

## start

Start local development server:

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

```bash
npm run start
```

## build

Build production website:
Expand Down
4 changes: 2 additions & 2 deletions content/docs/prologue/introduction.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,11 +43,11 @@ Learn how to customize Doks to fully make it your own. [Reference Guides →](ht

### Extensions

Get instructions on how to add even more to Doks. [Extensions →](https://getdoks.org/docs/extensions/add-google-fonts/)
Get instructions on how to add even more to Doks. [Extensions →](https://getdoks.org/docs/extensions/breadcrumb-navigation/)

### Showcase

See what others have build with Doks. [Showcase →](https://getdoks.org/showcase/parietal-numerics-documentation/)
See what others have build with Doks. [Showcase →](https://getdoks.org/showcase/electric-blocks/)

## Contributing

Expand Down
21 changes: 20 additions & 1 deletion content/docs/prologue/quick-start.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,14 +15,33 @@ toc: true

## Requirements

Doks uses npm to install dependencies and run commands. Installing npm is pretty simple. Download and install [Node.js](https://nodejs.org/) (it includes npm) for your platform.
Doks uses npm to centralize dependency management, making it [easy to update]({{< relref "how-to-update" >}}) resources, build tooling, plugins, and build scripts:

- Download and install [Node.js](https://nodejs.org/) (it includes npm) for your platform.

## Start a new Doks project

Create a new site, change directories, install dependencies, and start development server.

### Create a new site

Doks is available as a child theme, and a starter theme:

- Use the Doks child theme, if you do __not__ plan to customize a lot, and/or need future Doks updates.
- Use the Doks starter theme, if you plan to customize a lot, and/or do __not__ need future Doks updates.

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
Expand Down
2 changes: 1 addition & 1 deletion layouts/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ <h2 class="h4">Security aware</h2>
<p>Get A+ scores on <a href="https://observatory.mozilla.org/analyze/doks.netlify.app">Mozilla Observatory</a> out of the box. Easily change the default Security Headers to suit your needs.</p>
</div>
<div class="col-lg-5">
<h2 class="h4">Fast by default</h2>
<h2 class="h4">Fast by default ⚡️</h2>
<p>Get 100 scores on <a href="https://googlechrome.github.io/lighthouse/viewer/?gist=7731347bb8ce999eff7428a8e763b637">Google Lighthouse</a> by default. Doks removes unused css, prefetches links, and lazy loads images.</p>
</div>
<div class="col-lg-5">
Expand Down

0 comments on commit b505b24

Please sign in to comment.