initial user guide & dev docs
This commit is contained in:
parent
17b3a44458
commit
88dfad39b4
|
@ -0,0 +1,11 @@
|
||||||
|
# editorconfig.org
|
||||||
|
|
||||||
|
root = true
|
||||||
|
|
||||||
|
[*]
|
||||||
|
indent_style = space
|
||||||
|
indent_size = 2
|
||||||
|
end_of_line = lf
|
||||||
|
charset = utf-8
|
||||||
|
trim_trailing_whitespace = true
|
||||||
|
insert_final_newline = true
|
|
@ -0,0 +1,4 @@
|
||||||
|
assets/js/index.js
|
||||||
|
assets/js/katex.js
|
||||||
|
assets/js/vendor
|
||||||
|
node_modules
|
|
@ -0,0 +1,31 @@
|
||||||
|
{
|
||||||
|
"env": {
|
||||||
|
"browser": true,
|
||||||
|
"commonjs": true,
|
||||||
|
"es6": true,
|
||||||
|
"node": true
|
||||||
|
},
|
||||||
|
"extends": "eslint:recommended",
|
||||||
|
"globals": {
|
||||||
|
"Atomics": "readonly",
|
||||||
|
"SharedArrayBuffer": "readonly"
|
||||||
|
},
|
||||||
|
"parserOptions": {
|
||||||
|
"ecmaVersion": 2018,
|
||||||
|
"sourceType": "module"
|
||||||
|
},
|
||||||
|
"rules": {
|
||||||
|
"no-console": 0,
|
||||||
|
"quotes": ["error", "single"],
|
||||||
|
"comma-dangle": [
|
||||||
|
"error",
|
||||||
|
{
|
||||||
|
"arrays": "always-multiline",
|
||||||
|
"objects": "always-multiline",
|
||||||
|
"imports": "always-multiline",
|
||||||
|
"exports": "always-multiline",
|
||||||
|
"functions": "ignore"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
}
|
|
@ -0,0 +1,25 @@
|
||||||
|
---
|
||||||
|
name: "Bug report \U0001F41E"
|
||||||
|
about: Create a report to help us improve
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
## Description
|
||||||
|
|
||||||
|
Describe the issue that you're seeing.
|
||||||
|
|
||||||
|
### Steps to reproduce
|
||||||
|
|
||||||
|
Clear steps describing how to reproduce the issue. Please please please link to a demo project if possible, this makes your issue _much_ easier to diagnose (seriously).
|
||||||
|
|
||||||
|
### Expected result
|
||||||
|
|
||||||
|
What should happen?
|
||||||
|
|
||||||
|
### Actual result
|
||||||
|
|
||||||
|
What happened.
|
||||||
|
|
||||||
|
### Environment
|
||||||
|
|
||||||
|
Paste the information here as shown by `npm run check`
|
|
@ -0,0 +1,4 @@
|
||||||
|
contact_links:
|
||||||
|
- name: Question 🙋
|
||||||
|
url: https://github.com/h-enk/doks/discussions/categories/q-a
|
||||||
|
about: Ask your question in Doks Discussions
|
|
@ -0,0 +1,17 @@
|
||||||
|
---
|
||||||
|
name: "Feature request \U0001F680"
|
||||||
|
about: Suggest an idea for Doks
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
## Summary
|
||||||
|
|
||||||
|
Brief explanation of the feature.
|
||||||
|
|
||||||
|
### Basic example
|
||||||
|
|
||||||
|
Include a basic example or links here.
|
||||||
|
|
||||||
|
### Motivation
|
||||||
|
|
||||||
|
Why are we doing this? What use cases does it support? What is the expected outcome?
|
|
@ -0,0 +1,11 @@
|
||||||
|
# To get started with Dependabot version updates, you'll need to specify which
|
||||||
|
# package ecosystems to update and where the package manifests are located.
|
||||||
|
# Please see the documentation for all configuration options:
|
||||||
|
# https://help.github.com/github/administering-a-repository/configuration-options-for-dependency-updates
|
||||||
|
|
||||||
|
version: 2
|
||||||
|
updates:
|
||||||
|
- package-ecosystem: "npm" # See documentation for possible values
|
||||||
|
directory: "/" # Location of package manifests
|
||||||
|
schedule:
|
||||||
|
interval: "daily"
|
|
@ -0,0 +1,62 @@
|
||||||
|
# For most projects, this workflow file will not need changing; you simply need
|
||||||
|
# to commit it to your repository.
|
||||||
|
#
|
||||||
|
# You may wish to alter this file to override the set of languages analyzed,
|
||||||
|
# or to provide custom queries or build logic.
|
||||||
|
name: "CodeQL"
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
branches: [master]
|
||||||
|
pull_request:
|
||||||
|
# The branches below must be a subset of the branches above
|
||||||
|
branches: [master]
|
||||||
|
schedule:
|
||||||
|
- cron: '0 11 * * 5'
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
analyze:
|
||||||
|
name: Analyze
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
|
strategy:
|
||||||
|
fail-fast: false
|
||||||
|
matrix:
|
||||||
|
# Override automatic language detection by changing the below list
|
||||||
|
# Supported options are ['csharp', 'cpp', 'go', 'java', 'javascript', 'python']
|
||||||
|
language: ['javascript']
|
||||||
|
# Learn more...
|
||||||
|
# https://docs.github.com/en/github/finding-security-vulnerabilities-and-errors-in-your-code/configuring-code-scanning#overriding-automatic-language-detection
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- name: Checkout repository
|
||||||
|
uses: actions/checkout@v2
|
||||||
|
|
||||||
|
# Initializes the CodeQL tools for scanning.
|
||||||
|
- name: Initialize CodeQL
|
||||||
|
uses: github/codeql-action/init@v1
|
||||||
|
with:
|
||||||
|
languages: ${{ matrix.language }}
|
||||||
|
# If you wish to specify custom queries, you can do so here or in a config file.
|
||||||
|
# By default, queries listed here will override any specified in a config file.
|
||||||
|
# Prefix the list here with "+" to use these queries and those in the config file.
|
||||||
|
# queries: ./path/to/local/query, your-org/your-repo/queries@main
|
||||||
|
|
||||||
|
# Autobuild attempts to build any compiled languages (C/C++, C#, or Java).
|
||||||
|
# If this step fails, then you should remove it and run the build manually (see below)
|
||||||
|
- name: Autobuild
|
||||||
|
uses: github/codeql-action/autobuild@v1
|
||||||
|
|
||||||
|
# ℹ️ Command-line programs to run using the OS shell.
|
||||||
|
# 📚 https://git.io/JvXDl
|
||||||
|
|
||||||
|
# ✏️ If the Autobuild fails above, remove it and uncomment the following three lines
|
||||||
|
# and modify them (or add more) to build your code if your project
|
||||||
|
# uses a compiled language
|
||||||
|
|
||||||
|
#- run: |
|
||||||
|
# make bootstrap
|
||||||
|
# make release
|
||||||
|
|
||||||
|
- name: Perform CodeQL Analysis
|
||||||
|
uses: github/codeql-action/analyze@v1
|
|
@ -0,0 +1,48 @@
|
||||||
|
# Test and build your Hyas project
|
||||||
|
# For more information see: https://henkverlinde.com/continuous-integration-workflow-for-your-hyas-project/
|
||||||
|
|
||||||
|
name: Hyas CI
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
branches: [master]
|
||||||
|
pull_request:
|
||||||
|
branches: [master]
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
build:
|
||||||
|
runs-on: ${{ matrix.os }}
|
||||||
|
|
||||||
|
strategy:
|
||||||
|
matrix:
|
||||||
|
os: [ubuntu-latest, windows-latest, macos-latest]
|
||||||
|
node-version: [14.x, 15.x]
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v2
|
||||||
|
|
||||||
|
- name: Use Node.js ${{ matrix.node-version }}
|
||||||
|
uses: actions/setup-node@v1
|
||||||
|
with:
|
||||||
|
node-version: ${{ matrix.node-version }}
|
||||||
|
|
||||||
|
- name: Install Hugo
|
||||||
|
uses: peaceiris/actions-hugo@v2
|
||||||
|
with:
|
||||||
|
hugo-version: 'latest'
|
||||||
|
extended: true
|
||||||
|
|
||||||
|
- name: Check install Hugo
|
||||||
|
run: hugo version
|
||||||
|
|
||||||
|
- name: Install dependencies
|
||||||
|
run: npm ci
|
||||||
|
|
||||||
|
- name: Check for linting errors
|
||||||
|
run: npm test
|
||||||
|
|
||||||
|
- name: Delete temporary directories
|
||||||
|
run: npm run clean
|
||||||
|
|
||||||
|
- name: Build production website
|
||||||
|
run: npm run build
|
|
@ -0,0 +1,17 @@
|
||||||
|
name: Readme
|
||||||
|
|
||||||
|
on:
|
||||||
|
schedule:
|
||||||
|
- cron: 0 18 * * *
|
||||||
|
push:
|
||||||
|
branches:
|
||||||
|
- master
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
update:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- uses: JasonEtco/rss-to-readme@v1
|
||||||
|
with:
|
||||||
|
feed-url: https://getdoks.org/blog/index.xml
|
||||||
|
readme-section: feed
|
|
@ -0,0 +1,6 @@
|
||||||
|
functions
|
||||||
|
node_modules
|
||||||
|
public
|
||||||
|
resources
|
||||||
|
# Local Netlify folder
|
||||||
|
.netlify
|
|
@ -0,0 +1,10 @@
|
||||||
|
{
|
||||||
|
"comment": "Hyas rules",
|
||||||
|
|
||||||
|
"default": true,
|
||||||
|
"line_length": false,
|
||||||
|
"no-inline-html": false,
|
||||||
|
"no-trailing-punctuation": false,
|
||||||
|
"no-duplicate-heading": false,
|
||||||
|
"no-bare-urls": false
|
||||||
|
}
|
|
@ -0,0 +1,3 @@
|
||||||
|
node_modules
|
||||||
|
CHANGELOG.md
|
||||||
|
README.md
|
|
@ -0,0 +1 @@
|
||||||
|
hugo_bin_build_tags = "extended"
|
|
@ -0,0 +1,3 @@
|
||||||
|
assets/scss/components/_syntax.scss
|
||||||
|
assets/scss/vendor
|
||||||
|
node_modules
|
|
@ -0,0 +1,34 @@
|
||||||
|
{
|
||||||
|
"extends": "stylelint-config-standard",
|
||||||
|
"rules": {
|
||||||
|
"no-empty-source": null,
|
||||||
|
"string-quotes": "double",
|
||||||
|
"at-rule-no-unknown": [
|
||||||
|
true,
|
||||||
|
{
|
||||||
|
"ignoreAtRules": [
|
||||||
|
"extend",
|
||||||
|
"at-root",
|
||||||
|
"debug",
|
||||||
|
"warn",
|
||||||
|
"error",
|
||||||
|
"if",
|
||||||
|
"else",
|
||||||
|
"for",
|
||||||
|
"each",
|
||||||
|
"while",
|
||||||
|
"mixin",
|
||||||
|
"include",
|
||||||
|
"content",
|
||||||
|
"return",
|
||||||
|
"function",
|
||||||
|
"tailwind",
|
||||||
|
"apply",
|
||||||
|
"responsive",
|
||||||
|
"variants",
|
||||||
|
"screen"
|
||||||
|
]
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
}
|
|
@ -0,0 +1,28 @@
|
||||||
|
{
|
||||||
|
"types": [
|
||||||
|
{"type": "feat", "section": "Features"},
|
||||||
|
{"type": "fix", "section": "Bug Fixes"},
|
||||||
|
{"type": "chore", "hidden": true},
|
||||||
|
{"type": "deps", "section": "Dependencies"},
|
||||||
|
{"type": "docs", "section": "Documentation"},
|
||||||
|
{"type": "dev_guide", "section": "Dev Guid"},
|
||||||
|
{"type": "style", "hidden": true},
|
||||||
|
{"type": "refactor", "hidden": true},
|
||||||
|
{"type": "perf", "hidden": true},
|
||||||
|
{"type": "test", "hidden": true}
|
||||||
|
],
|
||||||
|
"bumpFiles": [
|
||||||
|
{
|
||||||
|
"filename": "package.json",
|
||||||
|
"type": "json"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"filename": "package-lock.json",
|
||||||
|
"type": "json"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"filename": "data/doks.json",
|
||||||
|
"type": "json"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
|
@ -0,0 +1,243 @@
|
||||||
|
# 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.
|
||||||
|
|
||||||
|
### [0.2.3](https://github.com/h-enk/doks/compare/v0.2.2...v0.2.3) (2021-04-02)
|
||||||
|
|
||||||
|
|
||||||
|
### Features
|
||||||
|
|
||||||
|
* update for netlify dev support ([10d0b45](https://github.com/h-enk/doks/commit/10d0b45203003a43727521dc9f5c35e655500309))
|
||||||
|
|
||||||
|
|
||||||
|
### Bug Fixes
|
||||||
|
|
||||||
|
* add class user added to img-simple shortcode ([bce8863](https://github.com/h-enk/doks/commit/bce8863269dd036146d5b6e447d67a23de70227d))
|
||||||
|
* drop npm workflow ([977bbda](https://github.com/h-enk/doks/commit/977bbdad82e8e21599e1fcfc0d93fc4e448cf2af))
|
||||||
|
|
||||||
|
|
||||||
|
### Dependencies
|
||||||
|
|
||||||
|
* bump versions to latest ([171293a](https://github.com/h-enk/doks/commit/171293a692450d45348be2870434db2a01578de9))
|
||||||
|
|
||||||
|
### [0.2.2](https://github.com/h-enk/doks/compare/v0.2.1...v0.2.2) (2021-03-26)
|
||||||
|
|
||||||
|
|
||||||
|
### Features
|
||||||
|
|
||||||
|
* update default highlight style ([28a3b39](https://github.com/h-enk/doks/commit/28a3b39fb9653db3f627cd55d610f28ed95860b3))
|
||||||
|
|
||||||
|
|
||||||
|
### Dependencies
|
||||||
|
|
||||||
|
* bump bootstrap to 5.0.0-beta3 ([f76e68e](https://github.com/h-enk/doks/commit/f76e68e832737c5fbc2421f164988767dddc5d99))
|
||||||
|
* bump versions to latest ([843e8d4](https://github.com/h-enk/doks/commit/843e8d45252bc596f8422fbce6938b38976373f9))
|
||||||
|
|
||||||
|
### [0.2.1](https://github.com/h-enk/doks/compare/v0.2.0...v0.2.1) (2021-03-18)
|
||||||
|
|
||||||
|
|
||||||
|
### Bug Fixes
|
||||||
|
|
||||||
|
* update package.json for npm workflow ([83b2c0e](https://github.com/h-enk/doks/commit/83b2c0e002e09aabc0f4b1e8fb30353151707d8b))
|
||||||
|
|
||||||
|
## [0.2.0](https://github.com/h-enk/doks/compare/v0.1.6...v0.2.0) (2021-03-18)
|
||||||
|
|
||||||
|
|
||||||
|
### Features
|
||||||
|
|
||||||
|
* add doks default style + examples ([ad91b05](https://github.com/h-enk/doks/commit/ad91b0523e6e240c98710bfedfd31342cb2389dc))
|
||||||
|
* add highlight.js as an option ([5180bd5](https://github.com/h-enk/doks/commit/5180bd53c6349372916907783fa9d0d3b22755af))
|
||||||
|
* add katex math typesetting ([253b938](https://github.com/h-enk/doks/commit/253b938a2e303a06d07488c6eae79c74442e56d6))
|
||||||
|
* add npm-package workflow ([e2ba008](https://github.com/h-enk/doks/commit/e2ba0086f780380fa171cfc2efaa1e868cfc5fc5))
|
||||||
|
* add npm-package workflow ([be4b68c](https://github.com/h-enk/doks/commit/be4b68c3d85a04251a9cdcbf1e5a3639b9c53144))
|
||||||
|
* add optional breadcrumb trail ([9c67aca](https://github.com/h-enk/doks/commit/9c67aca368f68ab916ff61caa36e0de69c43dec3))
|
||||||
|
* add table support in markdown ([5ee11a8](https://github.com/h-enk/doks/commit/5ee11a80e274d5e71ff7a4809516101e7e7ea214))
|
||||||
|
* added options lazySizes, clipBoard, instantPage, flexSearch, and darkMode ([5f03d61](https://github.com/h-enk/doks/commit/5f03d61e81aff6f8a0a194cb23bcf821c3476481))
|
||||||
|
* added options lazySizes, clipBoard, instantPage, flexSearch, and darkMode ([5099c47](https://github.com/h-enk/doks/commit/5099c4773195aab0a39bd160330bc25f3173c3b0))
|
||||||
|
* added options lazySizes, clipBoard, instantPage, flexSearch, and darkMode ([226f661](https://github.com/h-enk/doks/commit/226f661966ebb68f595541b31e6605d1c71efbdd))
|
||||||
|
* preload key katex fonts ([6c4d45d](https://github.com/h-enk/doks/commit/6c4d45d248ee9b58745105d91259fc2dfb9540b3))
|
||||||
|
* update bootstrap to 5.0.0-beta2 ([22afec7](https://github.com/h-enk/doks/commit/22afec709a1f11ef010d3436eca401cd4d5fd62f))
|
||||||
|
* update netlify.toml for netlify-cli use ([9581fc4](https://github.com/h-enk/doks/commit/9581fc4c44d2fdfe6b6093365fdbf5dcd2b869a2))
|
||||||
|
* update netlify.toml for netlify-cli use ([20bac2a](https://github.com/h-enk/doks/commit/20bac2a25bcdb3156120afd0d1b6543c0235f3c7))
|
||||||
|
|
||||||
|
|
||||||
|
### Bug Fixes
|
||||||
|
|
||||||
|
* linting error ([92798c9](https://github.com/h-enk/doks/commit/92798c92cd300bf1ed953c2a25bcbe0f8b24c1b2))
|
||||||
|
* script loading + script order ([89784d9](https://github.com/h-enk/doks/commit/89784d9656712ce31d83c038a87821f78aa07a3c))
|
||||||
|
* update content security header ([64efe3f](https://github.com/h-enk/doks/commit/64efe3ff00c5d315b43d40a4dc056ef7a3f88151))
|
||||||
|
* update content security header ([e0996b3](https://github.com/h-enk/doks/commit/e0996b36cbdc439bf0ad6595342c0f965f31c119))
|
||||||
|
* update content security header ([b54cae0](https://github.com/h-enk/doks/commit/b54cae0621211bce0754c17fdc302c96b6e50f6c))
|
||||||
|
* update content security header ([6d38761](https://github.com/h-enk/doks/commit/6d387614d584607d07c3f944ee55b8a2d6a4ce4e))
|
||||||
|
* update content security headers ([c70baa4](https://github.com/h-enk/doks/commit/c70baa448770d39d5c8f0842f742f5f8828a31ca))
|
||||||
|
* update content security headers ([8df0fdd](https://github.com/h-enk/doks/commit/8df0fdd8c311752de685ed10f7e8ec1d5d22f69c))
|
||||||
|
* update content security headers ([d1008a7](https://github.com/h-enk/doks/commit/d1008a736639e731679fd1e18eba4e6d437f00ad))
|
||||||
|
|
||||||
|
|
||||||
|
### Dependencies
|
||||||
|
|
||||||
|
* bump versions to latest ([e43f982](https://github.com/h-enk/doks/commit/e43f9821e49792e2e06f2e18ac419d58befc7723))
|
||||||
|
* bump versions to latest ([9cdd693](https://github.com/h-enk/doks/commit/9cdd69352bb02c12a6174cea5d7d6b330e47f1b5))
|
||||||
|
|
||||||
|
### [0.1.6](https://github.com/h-enk/doks/compare/v0.1.5...v0.1.6) (2021-03-01)
|
||||||
|
|
||||||
|
|
||||||
|
### Features
|
||||||
|
|
||||||
|
* add check commands ([85baab4](https://github.com/h-enk/doks/commit/85baab47ff06557051f373aa6afeb114fb40f50f))
|
||||||
|
* match active class docs menu on identifier ([7384cfe](https://github.com/h-enk/doks/commit/7384cfe8f1652b8053f077c964633d4ad12cf281))
|
||||||
|
* update package-lock.json ([8c73d74](https://github.com/h-enk/doks/commit/8c73d741fd789e829c35bf51cfc25c6d790b0dbb))
|
||||||
|
|
||||||
|
|
||||||
|
### Bug Fixes
|
||||||
|
|
||||||
|
* convert tabs to spaces ([6511531](https://github.com/h-enk/doks/commit/6511531c5e3f4ae1a9ad5e64972bd34c8e62cb0d))
|
||||||
|
* remove extra space in else statement ([03637e5](https://github.com/h-enk/doks/commit/03637e547ef7afa1dcea853746634df3161656db))
|
||||||
|
* update urls for deploy to github+ ([8c10161](https://github.com/h-enk/doks/commit/8c101613fa488518152675bb0916e74d444df1e2))
|
||||||
|
|
||||||
|
|
||||||
|
### Documentation
|
||||||
|
|
||||||
|
* update faq ([555fd17](https://github.com/h-enk/doks/commit/555fd17bb21d94764688f8f0c818d352183244b7))
|
||||||
|
* update faq ([f751f3f](https://github.com/h-enk/doks/commit/f751f3ff02b736b36854e396b2536a9fef311c50))
|
||||||
|
* update readme ([f32c60f](https://github.com/h-enk/doks/commit/f32c60f1ff6fe7f898efa7dc5ff97bd4b60148a6))
|
||||||
|
* update requirement sections ([22a8bfb](https://github.com/h-enk/doks/commit/22a8bfbc87b20ae4d03b733b32f1e1f956e3671c))
|
||||||
|
* update requirements sections ([3767e8b](https://github.com/h-enk/doks/commit/3767e8bfa0893d9bb827c35b5b2694c023e78ceb))
|
||||||
|
* update requirements sections ([8e14777](https://github.com/h-enk/doks/commit/8e14777805500abbf7cbc840a4a19c7635ce5b96))
|
||||||
|
* update requirements sections ([49f803e](https://github.com/h-enk/doks/commit/49f803e7e3d905d01ff00f5d02357defb885fe7e))
|
||||||
|
* update requirements sections ([4791d5a](https://github.com/h-enk/doks/commit/4791d5a0ba464c57f74d3bd6736985830f0d9e71))
|
||||||
|
* update requirements sections ([5321e8d](https://github.com/h-enk/doks/commit/5321e8d3c1094074c2503c3895579ebe32846176))
|
||||||
|
* update requirements sections ([920776a](https://github.com/h-enk/doks/commit/920776a6d55167cd8ce40f2edfcc37f2841e3def))
|
||||||
|
* update requirements sections ([3420ae9](https://github.com/h-enk/doks/commit/3420ae9c55dedd5424bf7f2f32a3cf1dacaf4e6f))
|
||||||
|
* update showcase link ([3e00037](https://github.com/h-enk/doks/commit/3e00037d78b3e980bdbdf005a5c13d9a39d2fa3d))
|
||||||
|
|
||||||
|
|
||||||
|
### Dependencies
|
||||||
|
|
||||||
|
* bump autoprefixer, bootstrap, stylelint, and netlify-lambda to latest versions ([955cb46](https://github.com/h-enk/doks/commit/955cb46a5d4936ce355c28a4a2a8b5c025a8ca1c))
|
||||||
|
* bump deps to latest ([05de29a](https://github.com/h-enk/doks/commit/05de29ace1e735840aea04f90924c2c833b00b86))
|
||||||
|
* bump postcss-purgecss to 4.0.0 + eslint to 7.18.0 ([44e90f2](https://github.com/h-enk/doks/commit/44e90f2bc944693967c6e3864673d8f21ee07648))
|
||||||
|
* bump versions to latest ([857906c](https://github.com/h-enk/doks/commit/857906c69b2d9779abd158dd88c1057f84c8eb6f))
|
||||||
|
* bump versions to latest ([5e52acb](https://github.com/h-enk/doks/commit/5e52acbc35db30267867e1b0981c8f4299bdf51d))
|
||||||
|
* bump versions to latest ([3087ae0](https://github.com/h-enk/doks/commit/3087ae0f521a780d38ccbd0afbb07e23fa9fad7d))
|
||||||
|
|
||||||
|
### [0.1.5](https://github.com/h-enk/doks/compare/v0.1.4...v0.1.5) (2021-01-12)
|
||||||
|
|
||||||
|
|
||||||
|
### Features
|
||||||
|
|
||||||
|
* add hugo extended as a dependency ([258224c](https://github.com/h-enk/doks/commit/258224c7880911c709f80e478cacf265fafbbb5c))
|
||||||
|
* add hugothemes reqs ([b3afb4b](https://github.com/h-enk/doks/commit/b3afb4b4055f5cfe5a28d355ac26f577fc442392))
|
||||||
|
* remove exampleSite ([70db6bc](https://github.com/h-enk/doks/commit/70db6bca005c2e2f82e3ac64d9150c4d87889758))
|
||||||
|
|
||||||
|
|
||||||
|
### Documentation
|
||||||
|
|
||||||
|
* update code of conduct ([411123b](https://github.com/h-enk/doks/commit/411123b207cfe0715c31455f9e5cbcfd9a2d93cc))
|
||||||
|
* update frontpage ([f2f4937](https://github.com/h-enk/doks/commit/f2f49370a1ecd7d312de1b348e08e26d0a327121))
|
||||||
|
* update homepage ([4e65d01](https://github.com/h-enk/doks/commit/4e65d012c5887ff8db9650006d8c6f2303d1b338))
|
||||||
|
* update readme ([7283eb9](https://github.com/h-enk/doks/commit/7283eb997da055892d95015f1411b8528f9b2298))
|
||||||
|
* update readme ([9dc2f0e](https://github.com/h-enk/doks/commit/9dc2f0ebfe75f968f77290d911e3be035b34e954))
|
||||||
|
* update readme ([3ed1ad6](https://github.com/h-enk/doks/commit/3ed1ad6376959a678ceac990310dd51d2f2864f8))
|
||||||
|
* update readme ([6a35faf](https://github.com/h-enk/doks/commit/6a35fafe485d82f4a327b8b4ed10a703eac4af1b))
|
||||||
|
* update readme ([40dd5e4](https://github.com/h-enk/doks/commit/40dd5e4eea340f2fae24484bb86325f4410378ff))
|
||||||
|
* update readme ([7b75c47](https://github.com/h-enk/doks/commit/7b75c47c9e0e5953b781ce4f784a3083361970fb))
|
||||||
|
* update readme ([2d33818](https://github.com/h-enk/doks/commit/2d3381885ab6578ed44720e8f99033429034ba2a))
|
||||||
|
* update readme ([632623f](https://github.com/h-enk/doks/commit/632623f29401f38e0a853508346a94267372dfa1))
|
||||||
|
* update readme for docs discussions ([fb9e340](https://github.com/h-enk/doks/commit/fb9e340f6e48293ed2d32a73754ae081f41a0fc9))
|
||||||
|
* update showcase link ([74724eb](https://github.com/h-enk/doks/commit/74724eb4c53d15475492b2b7c103b3056260fd28))
|
||||||
|
|
||||||
|
|
||||||
|
### Dependencies
|
||||||
|
|
||||||
|
* bump to latest versions ([83f4163](https://github.com/h-enk/doks/commit/83f41636f71e547f4928597bdf67128fe954f83e))
|
||||||
|
* bump to latest versions ([372d9cb](https://github.com/h-enk/doks/commit/372d9cb64d4d68b6e95b252112e27ff9123b456c))
|
||||||
|
* bump versions to latest ([6184067](https://github.com/h-enk/doks/commit/6184067621a33cf0e53a4ae9fab269a91a11b730))
|
||||||
|
* bump versions to latest ([940f30d](https://github.com/h-enk/doks/commit/940f30dcebfde1a4a8900118fdf84f57410ed63a))
|
||||||
|
* bump versions to latest ([751d6c6](https://github.com/h-enk/doks/commit/751d6c68caa1811be92eaae378e16413f09eb12e))
|
||||||
|
* bump versions to latest ([b66c0a6](https://github.com/h-enk/doks/commit/b66c0a6221cddbaf997c032222276185cc910d9d))
|
||||||
|
* bump versions to latest ([1d7e3b8](https://github.com/h-enk/doks/commit/1d7e3b873b537e498ef4ef5ce5548b252a62c4bc))
|
||||||
|
* bump versions to latest ([0aa2e0f](https://github.com/h-enk/doks/commit/0aa2e0f7e07e930ba507f8652e0d6375c562def7))
|
||||||
|
* bump versions to latest ([ce5c733](https://github.com/h-enk/doks/commit/ce5c7336f95c3d6e6be4c7b3fb7db3812b7ac4ac))
|
||||||
|
* bump versions to latest ([cc62487](https://github.com/h-enk/doks/commit/cc6248722a91f163359ce42e83f06e0ae5277ef7))
|
||||||
|
|
||||||
|
### [0.1.4](https://github.com/h-enk/doks/compare/v0.1.3...v0.1.4) (2020-12-03)
|
||||||
|
|
||||||
|
|
||||||
|
### Documentation
|
||||||
|
|
||||||
|
* update content ([63ca41e](https://github.com/h-enk/doks/commit/63ca41e1076375eb99aad5ca6d77d95516b6f349))
|
||||||
|
|
||||||
|
|
||||||
|
### Dependencies
|
||||||
|
|
||||||
|
* bump versions ([c254be6](https://github.com/h-enk/doks/commit/c254be61754071600665858d6a7d2e2fbc105af3))
|
||||||
|
* bump versions to latest ([831442c](https://github.com/h-enk/doks/commit/831442c1a6f3372b2930681ca9c937d123b5f6a3))
|
||||||
|
* bump versions to latest ([0377b0d](https://github.com/h-enk/doks/commit/0377b0de75a3cc8027bd255961f6d0c184d82575))
|
||||||
|
* bump versions to latest ([358bad6](https://github.com/h-enk/doks/commit/358bad680156937886f2957b6c6fcdbcdd97782e))
|
||||||
|
* bump versions to latest ([7ce56d0](https://github.com/h-enk/doks/commit/7ce56d0a362c5099c0a6c50f6ad0f1c7ba969218))
|
||||||
|
|
||||||
|
### [0.1.3](https://github.com/h-enk/doks/compare/v0.1.2...v0.1.3) (2020-11-17)
|
||||||
|
|
||||||
|
|
||||||
|
### Dependencies
|
||||||
|
|
||||||
|
* add doks version file ([f8dcfbe](https://github.com/h-enk/doks/commit/f8dcfbeebfda5fef533b9b7bc2463fa0dfafd5fa))
|
||||||
|
* update doks version file ([d326669](https://github.com/h-enk/doks/commit/d326669c1d170cd5a76df1faafea472f3132fdf5))
|
||||||
|
|
||||||
|
### [0.1.2](https://github.com/h-enk/doks/compare/v0.1.1...v0.1.2) (2020-11-17)
|
||||||
|
|
||||||
|
|
||||||
|
### Dependencies
|
||||||
|
|
||||||
|
* bump versions ([6ce5813](https://github.com/h-enk/doks/commit/6ce5813543417f2328846a78b971201d7611781d))
|
||||||
|
|
||||||
|
### [0.1.1](https://github.com/h-enk/doks/compare/v0.1.0...v0.1.1) (2020-11-10)
|
||||||
|
|
||||||
|
|
||||||
|
### Documentation
|
||||||
|
|
||||||
|
* update content ([c4c83eb](https://github.com/h-enk/doks/commit/c4c83eb9b68674553c6a7e988249a808d75250b4))
|
||||||
|
* update reasons ([1cec423](https://github.com/h-enk/doks/commit/1cec4237b395ff306b765d47b29b8410c2884921))
|
||||||
|
|
||||||
|
|
||||||
|
### Dependencies
|
||||||
|
|
||||||
|
* bump eslint ([d794dab](https://github.com/h-enk/doks/commit/d794dabbe389b0f616ccfca564607f9be4670e0c))
|
||||||
|
* reinstall ([6705f4b](https://github.com/h-enk/doks/commit/6705f4bbc4da4cd967e7165ab3681137014633bb))
|
||||||
|
|
||||||
|
## 0.1.0 (2020-11-06)
|
||||||
|
|
||||||
|
|
||||||
|
### Features
|
||||||
|
|
||||||
|
* add flexsearch ([97d8e2c](https://github.com/h-enk/doks/commit/97d8e2c0e2568f9f9f653dcc243d06aa25482e70))
|
||||||
|
* add standard-version ([6d83ec3](https://github.com/h-enk/doks/commit/6d83ec308e0a9c4db5aa8d2f2c8309ad09673605))
|
||||||
|
* update static assets ([1b16e6b](https://github.com/h-enk/doks/commit/1b16e6bb3d87888b51eff2a8ce7d482cc1a5daf6))
|
||||||
|
|
||||||
|
|
||||||
|
### Bug Fixes
|
||||||
|
|
||||||
|
* update badges ([90cea78](https://github.com/h-enk/doks/commit/90cea786c1aec4cc7004fdf9571ad05a739aa96c))
|
||||||
|
* update file path ([73004c3](https://github.com/h-enk/doks/commit/73004c3f8eaee87957ab53bb1f27716acde7a361))
|
||||||
|
|
||||||
|
|
||||||
|
### Documentation
|
||||||
|
|
||||||
|
* update ci badge ([7c4373a](https://github.com/h-enk/doks/commit/7c4373a3a9a29f35f858f27ad4b67ad0379a3da0))
|
||||||
|
* update content ([c6ea4f3](https://github.com/h-enk/doks/commit/c6ea4f3ae54e1c7b890dffb2243c0a81eb96b295))
|
||||||
|
* update content ([c8c403d](https://github.com/h-enk/doks/commit/c8c403dbf9963eeef3c7dca7f6334929bbc5383b))
|
||||||
|
* update gist id ([81d7b1a](https://github.com/h-enk/doks/commit/81d7b1a5df91f238378723018a84d0dd4cd12dd5))
|
||||||
|
* update README ([a1d2e80](https://github.com/h-enk/doks/commit/a1d2e8091a0a2051fdbb3384ad797d8cd5251ce6))
|
||||||
|
* update README ([a9aa6ab](https://github.com/h-enk/doks/commit/a9aa6ab1af1ef5c8619dd3d7c64d96d5a21d956c))
|
||||||
|
* update README ([d0bcf8d](https://github.com/h-enk/doks/commit/d0bcf8d69dfd2d28d9f603945efc37a64b8b529b))
|
||||||
|
* update README ([f6dcccc](https://github.com/h-enk/doks/commit/f6dcccc458a1a4c5cac655976a665fb66b1f7b7a))
|
||||||
|
* update README ([eb4e714](https://github.com/h-enk/doks/commit/eb4e714f4f1fd97117a9fc155df6b6e4be55c0ed))
|
||||||
|
|
||||||
|
|
||||||
|
### Dependencies
|
||||||
|
|
||||||
|
* bump postcss ([12411c3](https://github.com/h-enk/doks/commit/12411c38a98fb362ff348e5c151fcb7813e8691e))
|
||||||
|
* bump postcss-cli ([88b49b5](https://github.com/h-enk/doks/commit/88b49b552849ab807f17ff9bfacfc847d9c2dbd2))
|
||||||
|
* bump versions ([53cf8ba](https://github.com/h-enk/doks/commit/53cf8ba6e260687c4fc5eea0774a7d0e6aa559f8))
|
||||||
|
* update for dependabot PR's ([bad7deb](https://github.com/h-enk/doks/commit/bad7debffa8d8e6b442edf6e51f07f915fdfdd83))
|
|
@ -0,0 +1,76 @@
|
||||||
|
# Contributor Covenant Code of Conduct
|
||||||
|
|
||||||
|
## Our Pledge
|
||||||
|
|
||||||
|
In the interest of fostering an open and welcoming environment, we as
|
||||||
|
contributors and maintainers pledge to making participation in our project and
|
||||||
|
our community a harassment-free experience for everyone, regardless of age, body
|
||||||
|
size, disability, ethnicity, sex characteristics, gender identity and expression,
|
||||||
|
level of experience, education, socio-economic status, nationality, personal
|
||||||
|
appearance, race, religion, or sexual identity and orientation.
|
||||||
|
|
||||||
|
## Our Standards
|
||||||
|
|
||||||
|
Examples of behavior that contributes to creating a positive environment
|
||||||
|
include:
|
||||||
|
|
||||||
|
* Using welcoming and inclusive language
|
||||||
|
* Being respectful of differing viewpoints and experiences
|
||||||
|
* Gracefully accepting constructive criticism
|
||||||
|
* Focusing on what is best for the community
|
||||||
|
* Showing empathy towards other community members
|
||||||
|
|
||||||
|
Examples of unacceptable behavior by participants include:
|
||||||
|
|
||||||
|
* The use of sexualized language or imagery and unwelcome sexual attention or
|
||||||
|
advances
|
||||||
|
* Trolling, insulting/derogatory comments, and personal or political attacks
|
||||||
|
* Public or private harassment
|
||||||
|
* Publishing others' private information, such as a physical or electronic
|
||||||
|
address, without explicit permission
|
||||||
|
* Other conduct which could reasonably be considered inappropriate in a
|
||||||
|
professional setting
|
||||||
|
|
||||||
|
## Our Responsibilities
|
||||||
|
|
||||||
|
Project maintainers are responsible for clarifying the standards of acceptable
|
||||||
|
behavior and are expected to take appropriate and fair corrective action in
|
||||||
|
response to any instances of unacceptable behavior.
|
||||||
|
|
||||||
|
Project maintainers have the right and responsibility to remove, edit, or
|
||||||
|
reject comments, commits, code, wiki edits, issues, and other contributions
|
||||||
|
that are not aligned to this Code of Conduct, or to ban temporarily or
|
||||||
|
permanently any contributor for other behaviors that they deem inappropriate,
|
||||||
|
threatening, offensive, or harmful.
|
||||||
|
|
||||||
|
## Scope
|
||||||
|
|
||||||
|
This Code of Conduct applies both within project spaces and in public spaces
|
||||||
|
when an individual is representing the project or its community. Examples of
|
||||||
|
representing a project or community include using an official project e-mail
|
||||||
|
address, posting via an official social media account, or acting as an appointed
|
||||||
|
representative at an online or offline event. Representation of a project may be
|
||||||
|
further defined and clarified by project maintainers.
|
||||||
|
|
||||||
|
## Enforcement
|
||||||
|
|
||||||
|
Instances of abusive, harassing, or otherwise unacceptable behavior may be
|
||||||
|
reported by contacting the project team at hello@getdoks.org. All
|
||||||
|
complaints will be reviewed and investigated and will result in a response that
|
||||||
|
is deemed necessary and appropriate to the circumstances. The project team is
|
||||||
|
obligated to maintain confidentiality with regard to the reporter of an incident.
|
||||||
|
Further details of specific enforcement policies may be posted separately.
|
||||||
|
|
||||||
|
Project maintainers who do not follow or enforce the Code of Conduct in good
|
||||||
|
faith may face temporary or permanent repercussions as determined by other
|
||||||
|
members of the project's leadership.
|
||||||
|
|
||||||
|
## Attribution
|
||||||
|
|
||||||
|
This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 1.4,
|
||||||
|
available at https://www.contributor-covenant.org/version/1/4/code-of-conduct.html
|
||||||
|
|
||||||
|
[homepage]: https://www.contributor-covenant.org
|
||||||
|
|
||||||
|
For answers to common questions about this code of conduct, see
|
||||||
|
https://www.contributor-covenant.org/faq
|
|
@ -0,0 +1,21 @@
|
||||||
|
MIT License
|
||||||
|
|
||||||
|
Copyright (c) 2020-2021 Gridsome, Henk Verlinde
|
||||||
|
|
||||||
|
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||||
|
of this software and associated documentation files (the "Software"), to deal
|
||||||
|
in the Software without restriction, including without limitation the rights
|
||||||
|
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||||
|
copies of the Software, and to permit persons to whom the Software is
|
||||||
|
furnished to do so, subject to the following conditions:
|
||||||
|
|
||||||
|
The above copyright notice and this permission notice shall be included in all
|
||||||
|
copies or substantial portions of the Software.
|
||||||
|
|
||||||
|
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||||
|
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||||
|
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||||
|
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||||
|
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||||
|
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
||||||
|
SOFTWARE.
|
|
@ -0,0 +1,125 @@
|
||||||
|
<p align="center">
|
||||||
|
<a href="https://getdoks.org/">
|
||||||
|
<img alt="Doks" src="https://doks.netlify.app/doks.svg" width="60">
|
||||||
|
</a>
|
||||||
|
</p>
|
||||||
|
|
||||||
|
<h1 align="center">
|
||||||
|
Doks
|
||||||
|
</h1>
|
||||||
|
|
||||||
|
<h3 align="center">
|
||||||
|
Modern documentation theme
|
||||||
|
</h3>
|
||||||
|
|
||||||
|
<p align="center">
|
||||||
|
Doks is a Hugo theme helping you build modern documentation websites that are secure, fast, and SEO-ready — by default.
|
||||||
|
</p>
|
||||||
|
|
||||||
|
<p align="center">
|
||||||
|
<a href="https://github.com/h-enk/doks/blob/master/LICENSE">
|
||||||
|
<img src="https://img.shields.io/github/license/h-enk/doks?style=flat-square" alt="GitHub">
|
||||||
|
</a>
|
||||||
|
<a href="https://github.com/h-enk/doks/releases">
|
||||||
|
<img src="https://img.shields.io/github/v/release/h-enk/doks?include_prereleases&style=flat-square"alt="GitHub release (latest SemVer including pre-releases)">
|
||||||
|
</a>
|
||||||
|
<a href="https://github.com/h-enk/doks/actions?query=workflow%3A%22Hyas+CI%22">
|
||||||
|
<img src="https://img.shields.io/github/workflow/status/h-enk/doks/Hyas%20CI/master?style=flat-square" alt="GitHub Workflow Status (branch)">
|
||||||
|
</a>
|
||||||
|
<a href="https://app.netlify.com/sites/doks/deploys">
|
||||||
|
<img src="https://img.shields.io/netlify/895a161c-86be-48a2-8c57-a8c5d68cd1a4?style=flat-square" alt="Netlify">
|
||||||
|
</a>
|
||||||
|
</p>
|
||||||
|
|
||||||
|
![Doks — Modern Documentation Theme](https://raw.githubusercontent.com/h-enk/doks/master/images/tn.png)
|
||||||
|
|
||||||
|
## Demo
|
||||||
|
|
||||||
|
- [doks.netlify.app](https://doks.netlify.app/)
|
||||||
|
|
||||||
|
## Why Doks?
|
||||||
|
|
||||||
|
Nine reasons why you should use Doks:
|
||||||
|
|
||||||
|
1. __Security aware__. Get A+ scores on [Mozilla Observatory](https://observatory.mozilla.org/analyze/doks.netlify.app) out of the box. Easily change the default Security Headers to suit your needs.
|
||||||
|
|
||||||
|
2. __Fast by default__. Get 100 scores on [Google Lighthouse](https://googlechrome.github.io/lighthouse/viewer/?gist=7731347bb8ce999eff7428a8e763b637) by default. Doks removes unused css, prefetches links, and lazy loads images.
|
||||||
|
|
||||||
|
3. __SEO-ready__. Use sensible defaults for structured data, open graph, and Twitter cards. Or easily change the SEO settings to your liking.
|
||||||
|
|
||||||
|
4. __Development tools__. Code with confidence. Check styles, scripts, and markdown for errors and fix automatically or manually.
|
||||||
|
|
||||||
|
5. __Bootstrap framework__. Build robust, flexible, and intuitive websites with Bootstrap 5. Easily customize your Doks site with the source Sass files.
|
||||||
|
|
||||||
|
6. __Netlify-ready__. Deploy to Netlify with sensible defaults. Easily use Netlify Functions, Netlify Redirects, and Netlify Headers.
|
||||||
|
|
||||||
|
7. __Full text search__. Search your Doks site with FlexSearch. Easily customize index settings and search options to your liking.
|
||||||
|
|
||||||
|
8. __Page layouts__. Build pages with a landing page, blog, or documentation layout. Add custom sections and components to suit your needs.
|
||||||
|
|
||||||
|
9. __Dark mode__. Switch to a low-light UI with the click of a button. Change colors with variables to match your branding.
|
||||||
|
|
||||||
|
## Requirements
|
||||||
|
|
||||||
|
Doks uses npm to centralize dependency management, making it [easy to update](https://getdoks.org/docs/help/how-to-update/) resources, build tooling, plugins, and build scripts:
|
||||||
|
|
||||||
|
- Download and install [Node.js](https://nodejs.org/) (it includes npm) for your platform.
|
||||||
|
|
||||||
|
## Get started
|
||||||
|
|
||||||
|
Start a new Doks project in three steps:
|
||||||
|
|
||||||
|
### 1. 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
|
||||||
|
|
||||||
|
```bash
|
||||||
|
git clone https://github.com/h-enk/doks-child-theme.git my-doks-site && cd my-doks-site
|
||||||
|
```
|
||||||
|
|
||||||
|
#### Doks starter theme
|
||||||
|
|
||||||
|
```bash
|
||||||
|
git clone https://github.com/h-enk/doks.git my-doks-site && cd my-doks-site
|
||||||
|
```
|
||||||
|
|
||||||
|
### 2. Install dependencies
|
||||||
|
|
||||||
|
```bash
|
||||||
|
npm install
|
||||||
|
```
|
||||||
|
|
||||||
|
### 3. Start development server
|
||||||
|
|
||||||
|
```bash
|
||||||
|
npm run start
|
||||||
|
```
|
||||||
|
|
||||||
|
## Other commands
|
||||||
|
|
||||||
|
Doks comes with [commands](https://getdoks.org/docs/prologue/commands/) for common tasks.
|
||||||
|
|
||||||
|
## Documentation
|
||||||
|
|
||||||
|
- [Netlify](https://docs.netlify.com/)
|
||||||
|
- [Hugo](https://gohugo.io/documentation/)
|
||||||
|
- [Doks](https://getdoks.org/)
|
||||||
|
|
||||||
|
## Communities
|
||||||
|
|
||||||
|
- [Netlify Community](https://community.netlify.com/)
|
||||||
|
- [Hugo Forums](https://discourse.gohugo.io/)
|
||||||
|
- [Doks Discussions](https://github.com/h-enk/doks/discussions)
|
||||||
|
|
||||||
|
## Blog
|
||||||
|
<!--START_SECTION:feed-->
|
||||||
|
* [Doks v0.2](https://getdoks.org/blog/doks-v0.2/)
|
||||||
|
* [Say hello to Doks 👋](https://getdoks.org/blog/say-hello-to-doks/)
|
||||||
|
<!--END_SECTION:feed-->
|
|
@ -0,0 +1,13 @@
|
||||||
|
---
|
||||||
|
title: "{{ replace .Name "-" " " | title }}"
|
||||||
|
description: ""
|
||||||
|
lead: ""
|
||||||
|
date: {{ .Date }}
|
||||||
|
lastmod: {{ .Date }}
|
||||||
|
draft: true
|
||||||
|
weight: 50
|
||||||
|
images: ["{{ .Name | urlize }}.jpg"]
|
||||||
|
contributors: []
|
||||||
|
---
|
||||||
|
|
||||||
|
{{< img src="{{ .Name | urlize }}.jpg" alt="{{ replace .Name "-" " " | title }}" caption="{{ replace .Name "-" " " | title }}" class="wide" >}}
|
|
@ -0,0 +1,8 @@
|
||||||
|
---
|
||||||
|
title: "{{ replace .Name "-" " " | title }}"
|
||||||
|
description: ""
|
||||||
|
date: {{ .Date }}
|
||||||
|
lastmod: {{ .Date }}
|
||||||
|
draft: true
|
||||||
|
images: []
|
||||||
|
---
|
|
@ -0,0 +1,16 @@
|
||||||
|
---
|
||||||
|
title: "{{ replace .Name "-" " " | title }}"
|
||||||
|
description: ""
|
||||||
|
lead: ""
|
||||||
|
date: {{ .Date }}
|
||||||
|
lastmod: {{ .Date }}
|
||||||
|
draft: true
|
||||||
|
images: []
|
||||||
|
menu:
|
||||||
|
docs:
|
||||||
|
parent: ""
|
||||||
|
weight: 999
|
||||||
|
toc: true
|
||||||
|
---
|
||||||
|
|
||||||
|
{{< img src="{{ .Name | urlize }}.jpg" alt="{{ replace .Name "-" " " | title }}" caption="{{ replace .Name "-" " " | title }}" >}}
|
|
@ -0,0 +1,2 @@
|
||||||
|
import 'bootstrap/dist/js/bootstrap.bundle.min.js'
|
||||||
|
// import 'bootstrap/dist/js/bootstrap.min.js'
|
|
@ -0,0 +1,18 @@
|
||||||
|
import Clipboard from 'clipboard';
|
||||||
|
|
||||||
|
var clipboard = new Clipboard('.btn-clipboard');
|
||||||
|
|
||||||
|
clipboard.on('success', function(e) {
|
||||||
|
/*
|
||||||
|
console.info('Action:', e.action);
|
||||||
|
console.info('Text:', e.text);
|
||||||
|
console.info('Trigger:', e.trigger);
|
||||||
|
*/
|
||||||
|
|
||||||
|
e.clearSelection();
|
||||||
|
});
|
||||||
|
|
||||||
|
clipboard.on('error', function(e) {
|
||||||
|
console.error('Action:', e.action);
|
||||||
|
console.error('Trigger:', e.trigger);
|
||||||
|
});
|
|
@ -0,0 +1,12 @@
|
||||||
|
document.getElementById('mode').addEventListener('click', () => {
|
||||||
|
|
||||||
|
document.body.classList.toggle('dark');
|
||||||
|
localStorage.setItem('theme', document.body.classList.contains('dark') ? 'dark' : 'light');
|
||||||
|
|
||||||
|
});
|
||||||
|
|
||||||
|
if (localStorage.getItem('theme') === 'dark') {
|
||||||
|
|
||||||
|
document.body.classList.add('dark');
|
||||||
|
|
||||||
|
}
|
|
@ -0,0 +1,24 @@
|
||||||
|
import hljs from 'highlight.js/lib/core';
|
||||||
|
|
||||||
|
import javascript from 'highlight.js/lib/languages/javascript';
|
||||||
|
import json from 'highlight.js/lib/languages/json';
|
||||||
|
import bash from 'highlight.js/lib/languages/bash';
|
||||||
|
import htmlbars from 'highlight.js/lib/languages/htmlbars';
|
||||||
|
import ini from 'highlight.js/lib/languages/ini';
|
||||||
|
import yaml from 'highlight.js/lib/languages/yaml';
|
||||||
|
import markdown from 'highlight.js/lib/languages/markdown';
|
||||||
|
|
||||||
|
hljs.registerLanguage('javascript', javascript);
|
||||||
|
hljs.registerLanguage('json', json);
|
||||||
|
hljs.registerLanguage('bash', bash);
|
||||||
|
hljs.registerLanguage('html', htmlbars);
|
||||||
|
hljs.registerLanguage('ini', ini);
|
||||||
|
hljs.registerLanguage('toml', ini);
|
||||||
|
hljs.registerLanguage('yaml', yaml);
|
||||||
|
hljs.registerLanguage('md', markdown);
|
||||||
|
|
||||||
|
document.addEventListener('DOMContentLoaded', () => {
|
||||||
|
document.querySelectorAll('pre code').forEach((block) => {
|
||||||
|
hljs.highlightElement(block);
|
||||||
|
});
|
||||||
|
});
|
|
@ -0,0 +1,146 @@
|
||||||
|
var suggestions = document.getElementById('suggestions');
|
||||||
|
var userinput = document.getElementById('userinput');
|
||||||
|
|
||||||
|
document.addEventListener('keydown', inputFocus);
|
||||||
|
|
||||||
|
function inputFocus(e) {
|
||||||
|
|
||||||
|
if (e.keyCode === 191 ) {
|
||||||
|
e.preventDefault();
|
||||||
|
userinput.focus();
|
||||||
|
}
|
||||||
|
|
||||||
|
if (e.keyCode === 27 ) {
|
||||||
|
userinput.blur();
|
||||||
|
suggestions.classList.add('d-none');
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
document.addEventListener('click', function(event) {
|
||||||
|
|
||||||
|
var isClickInsideElement = suggestions.contains(event.target);
|
||||||
|
|
||||||
|
if (!isClickInsideElement) {
|
||||||
|
suggestions.classList.add('d-none');
|
||||||
|
}
|
||||||
|
|
||||||
|
});
|
||||||
|
|
||||||
|
/*
|
||||||
|
Source:
|
||||||
|
- https://dev.to/shubhamprakash/trap-focus-using-javascript-6a3
|
||||||
|
*/
|
||||||
|
|
||||||
|
document.addEventListener('keydown',suggestionFocus);
|
||||||
|
|
||||||
|
function suggestionFocus(e){
|
||||||
|
|
||||||
|
const focusableSuggestions= suggestions.querySelectorAll('a');
|
||||||
|
const focusable= [...focusableSuggestions];
|
||||||
|
const index = focusable.indexOf(document.activeElement);
|
||||||
|
|
||||||
|
let nextIndex = 0;
|
||||||
|
|
||||||
|
if (e.keyCode === 38) {
|
||||||
|
e.preventDefault();
|
||||||
|
nextIndex= index > 0 ? index-1 : 0;
|
||||||
|
focusableSuggestions[nextIndex].focus();
|
||||||
|
}
|
||||||
|
else if (e.keyCode === 40) {
|
||||||
|
e.preventDefault();
|
||||||
|
nextIndex= index+1 < focusable.length ? index+1 : index;
|
||||||
|
focusableSuggestions[nextIndex].focus();
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/*
|
||||||
|
Source:
|
||||||
|
- https://github.com/nextapps-de/flexsearch#index-documents-field-search
|
||||||
|
- https://raw.githack.com/nextapps-de/flexsearch/master/demo/autocomplete.html
|
||||||
|
*/
|
||||||
|
|
||||||
|
(function(){
|
||||||
|
|
||||||
|
var index = new FlexSearch({
|
||||||
|
preset: 'score',
|
||||||
|
cache: true,
|
||||||
|
doc: {
|
||||||
|
id: 'id',
|
||||||
|
field: [
|
||||||
|
'title',
|
||||||
|
'description',
|
||||||
|
'content',
|
||||||
|
],
|
||||||
|
store: [
|
||||||
|
'href',
|
||||||
|
'title',
|
||||||
|
'description',
|
||||||
|
],
|
||||||
|
},
|
||||||
|
});
|
||||||
|
|
||||||
|
var docs = [
|
||||||
|
{{ range $index, $page := (where .Site.Pages "Section" "docs") -}}
|
||||||
|
{
|
||||||
|
id: {{ $index }},
|
||||||
|
href: "{{ .RelPermalink | relURL }}",
|
||||||
|
title: {{ .Title | jsonify }},
|
||||||
|
description: {{ .Params.description | jsonify }},
|
||||||
|
content: {{ .Content | jsonify }}
|
||||||
|
},
|
||||||
|
{{ end -}}
|
||||||
|
];
|
||||||
|
|
||||||
|
index.add(docs);
|
||||||
|
|
||||||
|
userinput.addEventListener('input', show_results, true);
|
||||||
|
suggestions.addEventListener('click', accept_suggestion, true);
|
||||||
|
|
||||||
|
function show_results(){
|
||||||
|
|
||||||
|
var value = this.value;
|
||||||
|
var results = index.search(value, 5);
|
||||||
|
var entry, childs = suggestions.childNodes;
|
||||||
|
var i = 0, len = results.length;
|
||||||
|
|
||||||
|
suggestions.classList.remove('d-none');
|
||||||
|
|
||||||
|
results.forEach(function(page) {
|
||||||
|
|
||||||
|
entry = document.createElement('div');
|
||||||
|
|
||||||
|
entry.innerHTML = '<a href><span></span><span></span></a>';
|
||||||
|
|
||||||
|
a = entry.querySelector('a'),
|
||||||
|
t = entry.querySelector('span:first-child'),
|
||||||
|
d = entry.querySelector('span:nth-child(2)');
|
||||||
|
|
||||||
|
a.href = page.href;
|
||||||
|
t.textContent = page.title;
|
||||||
|
d.textContent = page.description;
|
||||||
|
|
||||||
|
suggestions.appendChild(entry);
|
||||||
|
|
||||||
|
});
|
||||||
|
|
||||||
|
while(childs.length > len){
|
||||||
|
|
||||||
|
suggestions.removeChild(childs[i])
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
function accept_suggestion(){
|
||||||
|
|
||||||
|
while(suggestions.lastChild){
|
||||||
|
|
||||||
|
suggestions.removeChild(suggestions.lastChild);
|
||||||
|
}
|
||||||
|
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
|
}());
|
|
@ -0,0 +1 @@
|
||||||
|
import 'instant.page';
|
|
@ -0,0 +1,10 @@
|
||||||
|
document.addEventListener('DOMContentLoaded', function() {
|
||||||
|
renderMathInElement(document.body, {
|
||||||
|
delimiters: [
|
||||||
|
{left: '$$', right: '$$', display: true},
|
||||||
|
{left: '$', right: '$', display: false},
|
||||||
|
{left: '\\(', right: '\\)', display: false},
|
||||||
|
{left: '\\[', right: '\\]', display: true},
|
||||||
|
],
|
||||||
|
});
|
||||||
|
});
|
|
@ -0,0 +1 @@
|
||||||
|
import 'lazysizes';
|
|
@ -0,0 +1,11 @@
|
||||||
|
exports.handler = (event, context, callback) => {
|
||||||
|
callback (null, {
|
||||||
|
statusCode: 200,
|
||||||
|
headers: {
|
||||||
|
'Content-Type': 'application/json',
|
||||||
|
},
|
||||||
|
body: JSON.stringify({
|
||||||
|
message: 'Hi from Lambda.',
|
||||||
|
}),
|
||||||
|
});
|
||||||
|
}
|
|
@ -0,0 +1,34 @@
|
||||||
|
/** Import Bootstrap functions */
|
||||||
|
@import "bootstrap/scss/functions";
|
||||||
|
|
||||||
|
/** Import theme variables */
|
||||||
|
@import "common/variables";
|
||||||
|
|
||||||
|
/** Import Bootstrap */
|
||||||
|
@import "bootstrap/scss/bootstrap";
|
||||||
|
|
||||||
|
/** Import highlight.js */
|
||||||
|
// @import "highlight.js/scss/dracula";
|
||||||
|
|
||||||
|
/** Import KaTeX */
|
||||||
|
@import "katex/dist/katex";
|
||||||
|
|
||||||
|
/** Import theme styles */
|
||||||
|
@import "common/fonts";
|
||||||
|
@import "common/global";
|
||||||
|
@import "common/dark";
|
||||||
|
@import "components/doks";
|
||||||
|
// @import "components/syntax";
|
||||||
|
@import "components/code";
|
||||||
|
@import "components/alerts";
|
||||||
|
@import "components/buttons";
|
||||||
|
@import "components/comments";
|
||||||
|
@import "components/forms";
|
||||||
|
@import "components/images";
|
||||||
|
@import "components/search";
|
||||||
|
@import "components/tables";
|
||||||
|
@import "layouts/footer";
|
||||||
|
@import "layouts/header";
|
||||||
|
@import "layouts/pages";
|
||||||
|
@import "layouts/posts";
|
||||||
|
@import "layouts/sidebar";
|
|
@ -0,0 +1,333 @@
|
||||||
|
/** Theme variables */
|
||||||
|
|
||||||
|
// Source: https://material.io/design/color/dark-theme.html
|
||||||
|
|
||||||
|
$body-bg-dark: $gray-900;
|
||||||
|
$body-overlay-dark: darken($body-bg-dark, 2.5%);
|
||||||
|
$border-dark: darken($body-bg-dark, 2.5%);
|
||||||
|
$body-color-dark: $gray-300;
|
||||||
|
$dots-dark: darken($body-color-dark, 50%);
|
||||||
|
|
||||||
|
$link-color-dark: $blue-300;
|
||||||
|
$button-color-dark: $link-color-dark;
|
||||||
|
$focus-color-dark: lighten($link-color-dark, 2.5%);
|
||||||
|
|
||||||
|
$navbar-dark-color: $body-color-dark;
|
||||||
|
$navbar-dark-hover-color: $link-color-dark;
|
||||||
|
$navbar-dark-active-color: $link-color-dark;
|
||||||
|
|
||||||
|
/** Theme styles */
|
||||||
|
|
||||||
|
body.dark {
|
||||||
|
background: $body-bg-dark;
|
||||||
|
color: $body-color-dark;
|
||||||
|
}
|
||||||
|
|
||||||
|
body.dark a {
|
||||||
|
color: $link-color-dark;
|
||||||
|
}
|
||||||
|
|
||||||
|
body.dark a.text-body {
|
||||||
|
color: $body-color-dark !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
body.dark .btn-primary {
|
||||||
|
@include button-variant($button-color-dark, $button-color-dark);
|
||||||
|
|
||||||
|
color: $body-bg-dark !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
body.dark .btn-outline-primary {
|
||||||
|
@include button-outline-variant($button-color-dark, $button-color-dark);
|
||||||
|
|
||||||
|
color: $link-color-dark;
|
||||||
|
}
|
||||||
|
|
||||||
|
body.dark .btn-outline-primary:hover {
|
||||||
|
color: $body-bg-dark;
|
||||||
|
}
|
||||||
|
|
||||||
|
body.dark .navbar {
|
||||||
|
background: $body-bg-dark;
|
||||||
|
opacity: 0.975;
|
||||||
|
border-bottom: 1px solid $border-dark;
|
||||||
|
}
|
||||||
|
|
||||||
|
body.dark.home .navbar {
|
||||||
|
border-bottom: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
body.dark .navbar-light .navbar-brand {
|
||||||
|
color: $navbar-dark-color !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
body.dark .navbar-light .navbar-nav .nav-link {
|
||||||
|
color: $navbar-dark-color;
|
||||||
|
}
|
||||||
|
|
||||||
|
body.dark .navbar-light .navbar-nav .nav-link:hover,
|
||||||
|
body.dark .navbar-light .navbar-nav .nav-link:focus {
|
||||||
|
color: $navbar-dark-hover-color;
|
||||||
|
}
|
||||||
|
|
||||||
|
body.dark .navbar-light .navbar-nav .nav-link.disabled {
|
||||||
|
color: $navbar-dark-disabled-color;
|
||||||
|
}
|
||||||
|
|
||||||
|
body.dark .navbar-light .navbar-nav .show > .nav-link,
|
||||||
|
body.dark .navbar-light .navbar-nav .active > .nav-link,
|
||||||
|
body.dark .navbar-light .navbar-nav .nav-link.show,
|
||||||
|
body.dark .navbar-light .navbar-nav .nav-link.active {
|
||||||
|
color: $navbar-dark-active-color;
|
||||||
|
}
|
||||||
|
|
||||||
|
body.dark .navbar-light .navbar-text {
|
||||||
|
color: $navbar-dark-color;
|
||||||
|
}
|
||||||
|
|
||||||
|
body.dark .alert-primary a {
|
||||||
|
color: $body-bg-dark;
|
||||||
|
}
|
||||||
|
|
||||||
|
body.dark .alert-warning {
|
||||||
|
background: $body-overlay-dark;
|
||||||
|
color: $body-color-dark;
|
||||||
|
}
|
||||||
|
|
||||||
|
body.dark .page-links a {
|
||||||
|
color: $body-color-dark;
|
||||||
|
}
|
||||||
|
|
||||||
|
body.dark .showcase-meta a {
|
||||||
|
color: $body-color-dark;
|
||||||
|
}
|
||||||
|
|
||||||
|
body.dark .showcase-meta a:hover,
|
||||||
|
body.dark .showcase-meta a:focus {
|
||||||
|
color: $link-color-dark;
|
||||||
|
}
|
||||||
|
|
||||||
|
body.dark .docs-link:hover,
|
||||||
|
body.dark .docs-link.active,
|
||||||
|
body.dark .page-links a:hover {
|
||||||
|
text-decoration: none;
|
||||||
|
color: $link-color-dark;
|
||||||
|
}
|
||||||
|
|
||||||
|
body.dark .navbar-light .navbar-text a {
|
||||||
|
color: $navbar-dark-active-color;
|
||||||
|
}
|
||||||
|
|
||||||
|
body.dark .docs-links h3.sidebar-link a,
|
||||||
|
body.dark .page-links h3.sidebar-link a {
|
||||||
|
color: $body-color-dark;
|
||||||
|
}
|
||||||
|
|
||||||
|
body.dark .navbar-light .navbar-text a:hover,
|
||||||
|
body.dark .navbar-light .navbar-text a:focus {
|
||||||
|
color: $navbar-dark-active-color;
|
||||||
|
}
|
||||||
|
|
||||||
|
body.dark .navbar .btn-link {
|
||||||
|
color: $navbar-dark-color;
|
||||||
|
}
|
||||||
|
|
||||||
|
body.dark .content .btn-link {
|
||||||
|
color: $link-color-dark;
|
||||||
|
}
|
||||||
|
|
||||||
|
body.dark .content .btn-link:hover {
|
||||||
|
color: $link-color-dark;
|
||||||
|
}
|
||||||
|
|
||||||
|
body.dark .navbar .btn-link:hover {
|
||||||
|
color: $navbar-dark-hover-color;
|
||||||
|
}
|
||||||
|
|
||||||
|
body.dark .navbar .btn-link:active {
|
||||||
|
color: $navbar-dark-active-color;
|
||||||
|
}
|
||||||
|
|
||||||
|
body.dark .form-control.is-search {
|
||||||
|
background: $body-overlay-dark;
|
||||||
|
|
||||||
|
/*
|
||||||
|
background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%236c757d' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' class='feather feather-search'%3E%3Ccircle cx='11' cy='11' r='8'%3E%3C/circle%3E%3Cline x1='21' y1='21' x2='16.65' y2='16.65'%3E%3C/line%3E%3C/svg%3E");
|
||||||
|
background-repeat: no-repeat;
|
||||||
|
background-position: right calc(0.375em + 0.1875rem) center;
|
||||||
|
background-size: calc(0.75em + 0.375rem) calc(0.75em + 0.375rem);
|
||||||
|
*/
|
||||||
|
}
|
||||||
|
|
||||||
|
body.dark .navbar-form::after {
|
||||||
|
color: $gray-600;
|
||||||
|
border: 1px solid $gray-800;
|
||||||
|
}
|
||||||
|
|
||||||
|
body.dark .form-control {
|
||||||
|
color: $gray-500;
|
||||||
|
}
|
||||||
|
|
||||||
|
body.dark .form-control:focus {
|
||||||
|
box-shadow: 0 0 0 0.2rem $focus-color-dark;
|
||||||
|
}
|
||||||
|
|
||||||
|
body.dark .border-top {
|
||||||
|
border-top: 1px solid $border-dark !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
@include media-breakpoint-up(lg) {
|
||||||
|
body.dark .docs-sidebar {
|
||||||
|
order: 0;
|
||||||
|
border-right: 1px solid $border-dark;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
body.dark .docs-navigation {
|
||||||
|
border-top: 1px solid $border-dark;
|
||||||
|
}
|
||||||
|
|
||||||
|
body.dark pre code::-webkit-scrollbar-thumb {
|
||||||
|
background: $border-dark;
|
||||||
|
}
|
||||||
|
|
||||||
|
body.dark code:not(.hljs) {
|
||||||
|
background: $body-overlay-dark;
|
||||||
|
color: $body-color-dark;
|
||||||
|
}
|
||||||
|
|
||||||
|
body.dark pre code:hover {
|
||||||
|
scrollbar-width: thin;
|
||||||
|
scrollbar-color: $border-dark transparent;
|
||||||
|
}
|
||||||
|
|
||||||
|
body.dark pre code::-webkit-scrollbar-thumb:hover {
|
||||||
|
background: $border-dark;
|
||||||
|
}
|
||||||
|
|
||||||
|
body.dark blockquote {
|
||||||
|
border-left: 3px solid $border-dark;
|
||||||
|
}
|
||||||
|
|
||||||
|
body.dark .footer {
|
||||||
|
border-top: 1px solid $border-dark;
|
||||||
|
}
|
||||||
|
|
||||||
|
body.dark .docs-links,
|
||||||
|
body.dark .docs-toc {
|
||||||
|
scrollbar-width: thin;
|
||||||
|
scrollbar-color: $body-bg-dark $body-bg-dark;
|
||||||
|
}
|
||||||
|
|
||||||
|
body.dark .docs-links::-webkit-scrollbar,
|
||||||
|
body.dark .docs-toc::-webkit-scrollbar {
|
||||||
|
width: 5px;
|
||||||
|
}
|
||||||
|
|
||||||
|
body.dark .docs-links::-webkit-scrollbar-track,
|
||||||
|
body.dark .docs-toc::-webkit-scrollbar-track {
|
||||||
|
background: $body-bg-dark;
|
||||||
|
}
|
||||||
|
|
||||||
|
body.dark .docs-links::-webkit-scrollbar-thumb,
|
||||||
|
body.dark .docs-toc::-webkit-scrollbar-thumb {
|
||||||
|
background: $body-bg-dark;
|
||||||
|
}
|
||||||
|
|
||||||
|
body.dark .docs-links:hover,
|
||||||
|
body.dark .docs-toc:hover {
|
||||||
|
scrollbar-width: thin;
|
||||||
|
scrollbar-color: $border-dark $body-bg-dark;
|
||||||
|
}
|
||||||
|
|
||||||
|
body.dark .docs-links:hover::-webkit-scrollbar-thumb,
|
||||||
|
body.dark .docs-toc:hover::-webkit-scrollbar-thumb {
|
||||||
|
background: $border-dark;
|
||||||
|
}
|
||||||
|
|
||||||
|
body.dark .docs-links::-webkit-scrollbar-thumb:hover,
|
||||||
|
body.dark .docs-toc::-webkit-scrollbar-thumb:hover {
|
||||||
|
background: $border-dark;
|
||||||
|
}
|
||||||
|
|
||||||
|
body.dark .docs-links h3:not(:first-child) {
|
||||||
|
border-top: 1px solid $border-dark;
|
||||||
|
}
|
||||||
|
|
||||||
|
body.dark a.docs-link {
|
||||||
|
color: $body-color-dark;
|
||||||
|
}
|
||||||
|
|
||||||
|
body.dark .page-links li:not(:first-child) {
|
||||||
|
border-top: 1px dashed $border-dark;
|
||||||
|
}
|
||||||
|
|
||||||
|
body.dark .card {
|
||||||
|
background: $body-bg-dark;
|
||||||
|
border: 1px solid $border-dark;
|
||||||
|
}
|
||||||
|
|
||||||
|
body.dark .card.bg-light {
|
||||||
|
background: $body-overlay-dark !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
body.dark .navbar .menu-icon .navicon {
|
||||||
|
background: $navbar-dark-color;
|
||||||
|
}
|
||||||
|
|
||||||
|
body.dark .navbar .menu-icon .navicon::before,
|
||||||
|
body.dark .navbar .menu-icon .navicon::after {
|
||||||
|
background: $navbar-dark-color;
|
||||||
|
}
|
||||||
|
|
||||||
|
body.dark .logo-light {
|
||||||
|
display: none !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
body.dark .logo-dark {
|
||||||
|
display: inline-block !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
body.dark .bg-light {
|
||||||
|
background: darken($body-bg-dark, 1.5%) !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
body.dark .bg-dots {
|
||||||
|
background-image: radial-gradient($dots-dark 15%, transparent 15%);
|
||||||
|
}
|
||||||
|
|
||||||
|
body.dark .text-muted {
|
||||||
|
color: darken($body-color-dark, 7.5%) !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
body.dark .alert-primary {
|
||||||
|
background: $link-color-dark;
|
||||||
|
color: $body-bg-dark;
|
||||||
|
}
|
||||||
|
|
||||||
|
body.dark .figure-caption {
|
||||||
|
color: $body-color-dark;
|
||||||
|
}
|
||||||
|
|
||||||
|
body.dark table {
|
||||||
|
@extend .table-dark;
|
||||||
|
}
|
||||||
|
|
||||||
|
body.dark .copy-status::after {
|
||||||
|
content: "Copy";
|
||||||
|
display: block;
|
||||||
|
color: $body-color-dark;
|
||||||
|
}
|
||||||
|
|
||||||
|
body.dark .copy-status:hover::after {
|
||||||
|
content: "Copy";
|
||||||
|
display: block;
|
||||||
|
color: $link-color-dark;
|
||||||
|
}
|
||||||
|
|
||||||
|
body.dark .copy-status:focus::after,
|
||||||
|
body.dark .copy-status:active::after {
|
||||||
|
content: "Copied";
|
||||||
|
display: block;
|
||||||
|
color: $link-color-dark;
|
||||||
|
}
|
|
@ -0,0 +1,71 @@
|
||||||
|
/* jost-regular - latin */
|
||||||
|
@font-face {
|
||||||
|
font-family: "Jost";
|
||||||
|
font-style: normal;
|
||||||
|
font-weight: 400;
|
||||||
|
font-display: swap;
|
||||||
|
src:
|
||||||
|
local("Jost"),
|
||||||
|
url("fonts/vendor/jost/jost-v4-latin-regular.woff2") format("woff2"),
|
||||||
|
url("fonts/vendor/jost/jost-v4-latin-regular.woff") format("woff"); /* Chrome 6+, Firefox 3.6+, IE 9+, Safari 5.1+ */
|
||||||
|
}
|
||||||
|
|
||||||
|
/* jost-500 - latin */
|
||||||
|
@font-face {
|
||||||
|
font-family: "Jost";
|
||||||
|
font-style: normal;
|
||||||
|
font-weight: 500;
|
||||||
|
font-display: swap;
|
||||||
|
src:
|
||||||
|
local("Jost"),
|
||||||
|
url("fonts/vendor/jost/jost-v4-latin-500.woff2") format("woff2"),
|
||||||
|
url("fonts/vendor/jost/jost-v4-latin-500.woff") format("woff"); /* Chrome 6+, Firefox 3.6+, IE 9+, Safari 5.1+ */
|
||||||
|
}
|
||||||
|
|
||||||
|
/* jost-700 - latin */
|
||||||
|
@font-face {
|
||||||
|
font-family: "Jost";
|
||||||
|
font-style: normal;
|
||||||
|
font-weight: 700;
|
||||||
|
font-display: swap;
|
||||||
|
src:
|
||||||
|
local("Jost"),
|
||||||
|
url("fonts/vendor/jost/jost-v4-latin-700.woff2") format("woff2"),
|
||||||
|
url("fonts/vendor/jost/jost-v4-latin-700.woff") format("woff"); /* Chrome 6+, Firefox 3.6+, IE 9+, Safari 5.1+ */
|
||||||
|
}
|
||||||
|
|
||||||
|
/* jost-italic - latin */
|
||||||
|
@font-face {
|
||||||
|
font-family: "Jost";
|
||||||
|
font-style: italic;
|
||||||
|
font-weight: 400;
|
||||||
|
font-display: swap;
|
||||||
|
src:
|
||||||
|
local("Jost"),
|
||||||
|
url("fonts/vendor/jost/jost-v4-latin-italic.woff2") format("woff2"),
|
||||||
|
url("fonts/vendor/jost/jost-v4-latin-italic.woff") format("woff"); /* Chrome 6+, Firefox 3.6+, IE 9+, Safari 5.1+ */
|
||||||
|
}
|
||||||
|
|
||||||
|
/* jost-500italic - latin */
|
||||||
|
@font-face {
|
||||||
|
font-family: "Jost";
|
||||||
|
font-style: italic;
|
||||||
|
font-weight: 500;
|
||||||
|
font-display: swap;
|
||||||
|
src:
|
||||||
|
local("Jost"),
|
||||||
|
url("fonts/vendor/jost/jost-v4-latin-500italic.woff2") format("woff2"),
|
||||||
|
url("fonts/vendor/jost/jost-v4-latin-500italic.woff") format("woff"); /* Chrome 6+, Firefox 3.6+, IE 9+, Safari 5.1+ */
|
||||||
|
}
|
||||||
|
|
||||||
|
/* jost-700italic - latin */
|
||||||
|
@font-face {
|
||||||
|
font-family: "Jost";
|
||||||
|
font-style: italic;
|
||||||
|
font-weight: 700;
|
||||||
|
font-display: swap;
|
||||||
|
src:
|
||||||
|
local("Jost"),
|
||||||
|
url("fonts/vendor/jost/jost-v4-latin-700italic.woff2") format("woff2"),
|
||||||
|
url("fonts/vendor/jost/jost-v4-latin-700italic.woff") format("woff"); /* Chrome 6+, Firefox 3.6+, IE 9+, Safari 5.1+ */
|
||||||
|
}
|
|
@ -0,0 +1,229 @@
|
||||||
|
.contributors .content,
|
||||||
|
.blog .content,
|
||||||
|
.page .content,
|
||||||
|
.error404 .content,
|
||||||
|
.docs.list .content,
|
||||||
|
.tutorial.list .content,
|
||||||
|
.showcase.list .content {
|
||||||
|
padding-top: 1rem;
|
||||||
|
padding-bottom: 3rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
h1,
|
||||||
|
h2,
|
||||||
|
h3,
|
||||||
|
h4,
|
||||||
|
h5,
|
||||||
|
h6,
|
||||||
|
.h1,
|
||||||
|
.h2,
|
||||||
|
.h3,
|
||||||
|
.h4,
|
||||||
|
.h5,
|
||||||
|
.h6 {
|
||||||
|
margin: 2rem 0 1rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
@include media-breakpoint-up(md) {
|
||||||
|
body {
|
||||||
|
font-size: $font-size-md;
|
||||||
|
padding-top: 4rem !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
h1,
|
||||||
|
h2,
|
||||||
|
h3,
|
||||||
|
h4,
|
||||||
|
h5,
|
||||||
|
h6,
|
||||||
|
.h1,
|
||||||
|
.h2,
|
||||||
|
.h3,
|
||||||
|
.h4,
|
||||||
|
.h5,
|
||||||
|
.h6 {
|
||||||
|
margin-bottom: 1.125rem;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.home h1 {
|
||||||
|
/* font-size: calc(1.375rem + 1.5vw); */
|
||||||
|
font-size: calc(1.875rem + 1.5vw);
|
||||||
|
}
|
||||||
|
|
||||||
|
a:hover,
|
||||||
|
a:focus {
|
||||||
|
text-decoration: underline;
|
||||||
|
}
|
||||||
|
|
||||||
|
a.btn:hover,
|
||||||
|
a.btn:focus {
|
||||||
|
text-decoration: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
.section {
|
||||||
|
padding-top: 5rem;
|
||||||
|
padding-bottom: 5rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
.section-md {
|
||||||
|
padding-top: 3rem;
|
||||||
|
padding-bottom: 3rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
.section-sm {
|
||||||
|
padding-top: 1rem;
|
||||||
|
padding-bottom: 1rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
/*
|
||||||
|
.section svg {
|
||||||
|
display: inline-block;
|
||||||
|
width: 2rem;
|
||||||
|
height: 2rem;
|
||||||
|
vertical-align: text-top;
|
||||||
|
}
|
||||||
|
*/
|
||||||
|
|
||||||
|
body {
|
||||||
|
padding-top: 3.5625rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
.docs-sidebar {
|
||||||
|
order: 2;
|
||||||
|
}
|
||||||
|
|
||||||
|
@include media-breakpoint-up(lg) {
|
||||||
|
.docs-sidebar {
|
||||||
|
order: 0;
|
||||||
|
border-right: 1px solid $gray-200;
|
||||||
|
}
|
||||||
|
|
||||||
|
@supports ((position:-webkit-sticky) or (position:sticky)) {
|
||||||
|
.docs-sidebar {
|
||||||
|
position: -webkit-sticky;
|
||||||
|
position: sticky;
|
||||||
|
top: 4rem;
|
||||||
|
z-index: 1000;
|
||||||
|
height: calc(100vh - 4rem);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
@include media-breakpoint-up(xl) {
|
||||||
|
.docs-sidebar {
|
||||||
|
flex: 0 1 320px;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.docs-links {
|
||||||
|
padding-bottom: 5rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
@include media-breakpoint-up(lg) {
|
||||||
|
@supports ((position: -webkit-sticky) or (position: sticky)) {
|
||||||
|
.docs-links {
|
||||||
|
max-height: calc(100vh - 4rem);
|
||||||
|
overflow-y: scroll;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
@include media-breakpoint-up(lg) {
|
||||||
|
.docs-links {
|
||||||
|
display: block;
|
||||||
|
width: auto;
|
||||||
|
margin-right: -1.5rem;
|
||||||
|
padding-bottom: 4rem;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.docs-toc {
|
||||||
|
order: 2;
|
||||||
|
}
|
||||||
|
|
||||||
|
@supports ((position:-webkit-sticky) or (position:sticky)) {
|
||||||
|
.docs-toc {
|
||||||
|
position: -webkit-sticky;
|
||||||
|
position: sticky;
|
||||||
|
top: 4rem;
|
||||||
|
height: calc(100vh - 4rem);
|
||||||
|
overflow-y: auto;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.docs-content {
|
||||||
|
padding-bottom: 3rem;
|
||||||
|
order: 1;
|
||||||
|
}
|
||||||
|
|
||||||
|
.docs-navigation {
|
||||||
|
border-top: 1px solid $gray-200;
|
||||||
|
margin-top: 2rem;
|
||||||
|
margin-bottom: 0;
|
||||||
|
padding-top: 2rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
.docs-navigation a {
|
||||||
|
font-size: $font-size-base * 0.9;
|
||||||
|
}
|
||||||
|
|
||||||
|
@include media-breakpoint-up(lg) {
|
||||||
|
.docs-navigation {
|
||||||
|
margin-bottom: -1rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
.docs-navigation a {
|
||||||
|
font-size: $font-size-base;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.navbar a:hover,
|
||||||
|
.navbar a:focus {
|
||||||
|
text-decoration: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
#TableOfContents ul {
|
||||||
|
padding-left: 0;
|
||||||
|
list-style: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
::selection {
|
||||||
|
background: rgba(212, 53, 159, 0.2);
|
||||||
|
}
|
||||||
|
|
||||||
|
.bg-dots {
|
||||||
|
background-image: radial-gradient($gray-300 15%, transparent 15%);
|
||||||
|
background-position: 0 0;
|
||||||
|
background-size: 1rem 1rem;
|
||||||
|
-webkit-mask: linear-gradient(to top, #fff, transparent);
|
||||||
|
mask: linear-gradient(to top, #fff, transparent);
|
||||||
|
width: 100%;
|
||||||
|
height: 9rem;
|
||||||
|
margin-top: -10rem;
|
||||||
|
z-index: -1;
|
||||||
|
}
|
||||||
|
|
||||||
|
.bg-dots-md {
|
||||||
|
margin-top: -11rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
.bg-dots-lg {
|
||||||
|
margin-top: -12rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
// https://fossheim.io/writing/posts/css-text-gradient/
|
||||||
|
.gradient-text {
|
||||||
|
background-color: $primary;
|
||||||
|
background-image: linear-gradient(90deg, $primary, $blue-300 50%, $pink-500);
|
||||||
|
background-size: 100%;
|
||||||
|
background-repeat: repeat;
|
||||||
|
-webkit-background-clip: text;
|
||||||
|
-moz-background-clip: text;
|
||||||
|
-webkit-text-fill-color: transparent;
|
||||||
|
-moz-text-fill-color: transparent;
|
||||||
|
}
|
||||||
|
|
||||||
|
.katex {
|
||||||
|
font-size: $font-size-md;
|
||||||
|
}
|
|
@ -0,0 +1,157 @@
|
||||||
|
// Color system
|
||||||
|
|
||||||
|
$white: #fff;
|
||||||
|
$gray-100: #f8f9fa;
|
||||||
|
$gray-200: #e9ecef;
|
||||||
|
$gray-300: #dee2e6;
|
||||||
|
$gray-400: #ced4da;
|
||||||
|
$gray-500: #adb5bd;
|
||||||
|
$gray-600: #6c757d;
|
||||||
|
$gray-700: #495057;
|
||||||
|
$gray-800: #343a40;
|
||||||
|
$gray-900: #212529;
|
||||||
|
$black: #000;
|
||||||
|
|
||||||
|
$yellow: #ffe000;
|
||||||
|
$black: #1d2d35;
|
||||||
|
$beige: #fbf7f0;
|
||||||
|
// $red: #e55235;
|
||||||
|
$purple: #5d2f86;
|
||||||
|
$brown: #aa9c84;
|
||||||
|
|
||||||
|
$blue-300: #8ed6fb;
|
||||||
|
$pink-500: #d32e9d;
|
||||||
|
|
||||||
|
$primary: $purple;
|
||||||
|
|
||||||
|
// Options
|
||||||
|
//
|
||||||
|
// Quickly modify global styling by enabling or disabling optional features.
|
||||||
|
|
||||||
|
$enable-caret: true;
|
||||||
|
$enable-rounded: true;
|
||||||
|
$enable-shadows: false;
|
||||||
|
$enable-gradients: false;
|
||||||
|
$enable-transitions: true;
|
||||||
|
$enable-reduced-motion: true;
|
||||||
|
$enable-smooth-scroll: true;
|
||||||
|
$enable-grid-classes: true;
|
||||||
|
$enable-button-pointers: true;
|
||||||
|
$enable-rfs: true;
|
||||||
|
$enable-validation-icons: true;
|
||||||
|
$enable-negative-margins: true;
|
||||||
|
$enable-deprecation-messages: true;
|
||||||
|
$enable-important-utilities: true;
|
||||||
|
|
||||||
|
/** Bootstrap navbar fix (https://git.io/fADqW) */
|
||||||
|
$navbar-dark-toggler-icon-bg: none;
|
||||||
|
$navbar-light-toggler-icon-bg: none;
|
||||||
|
|
||||||
|
// Options
|
||||||
|
//
|
||||||
|
// Quickly modify global styling by enabling or disabling optional features.
|
||||||
|
|
||||||
|
// $enable-responsive-font-sizes: true;
|
||||||
|
|
||||||
|
// Body
|
||||||
|
//
|
||||||
|
// Settings for the `<body>` element.
|
||||||
|
|
||||||
|
$body-bg: $white;
|
||||||
|
$body-color: $black;
|
||||||
|
|
||||||
|
// Links
|
||||||
|
//
|
||||||
|
// Style anchor elements.
|
||||||
|
|
||||||
|
$link-color: $primary;
|
||||||
|
$link-decoration: none;
|
||||||
|
|
||||||
|
// Grid containers
|
||||||
|
//
|
||||||
|
// Define the maximum width of `.container` for different screen sizes.
|
||||||
|
|
||||||
|
$container-max-widths: (
|
||||||
|
sm: 540px,
|
||||||
|
md: 720px,
|
||||||
|
lg: 960px,
|
||||||
|
xl: 1240px,
|
||||||
|
xxl: 1320px
|
||||||
|
);
|
||||||
|
|
||||||
|
@include _assert-ascending($container-max-widths, "$container-max-widths");
|
||||||
|
|
||||||
|
// Grid columns
|
||||||
|
//
|
||||||
|
// Set the number of columns and specify the width of the gutters.
|
||||||
|
|
||||||
|
$grid-columns: 16;
|
||||||
|
$grid-gutter-width: 48px;
|
||||||
|
$grid-row-columns: 6;
|
||||||
|
|
||||||
|
// Components
|
||||||
|
//
|
||||||
|
// Define common padding and border radius sizes and more.
|
||||||
|
|
||||||
|
$border-color: $gray-200;
|
||||||
|
|
||||||
|
// Typography
|
||||||
|
//
|
||||||
|
// Font, line-height, and color for body text, headings, and more.
|
||||||
|
|
||||||
|
// stylelint-disable value-keyword-case
|
||||||
|
$font-family-sans-serif: "Jost", -apple-system, blinkmacsystemfont, "Segoe UI", roboto, "Helvetica Neue", arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
|
||||||
|
$font-family-monospace: sfmono-regular, menlo, monaco, consolas, "Liberation Mono", "Courier New", monospace;
|
||||||
|
$font-family-base: $font-family-sans-serif;
|
||||||
|
// stylelint-enable value-keyword-case
|
||||||
|
|
||||||
|
$font-size-base: 1rem; // Assumes the browser default, typically `16px`
|
||||||
|
$font-size-xl: $font-size-base * 1.375;
|
||||||
|
$font-size-lg: $font-size-base * 1.25;
|
||||||
|
$font-size-md: $font-size-base * 1.125;
|
||||||
|
$font-size-sm: $font-size-base * 0.875;
|
||||||
|
|
||||||
|
$line-height-base: 1.5;
|
||||||
|
|
||||||
|
$headings-font-family: null;
|
||||||
|
$headings-font-weight: 700;
|
||||||
|
|
||||||
|
$lead-font-weight: 400;
|
||||||
|
|
||||||
|
// Spacing
|
||||||
|
//
|
||||||
|
// Control the default styling of most Bootstrap elements by modifying these
|
||||||
|
// variables. Mostly focused on spacing.
|
||||||
|
// You can add more entries to the $spacers map, should you need more variation.
|
||||||
|
|
||||||
|
$spacer: 1rem;
|
||||||
|
|
||||||
|
// Navbar
|
||||||
|
|
||||||
|
$navbar-padding-y: $spacer / 2;
|
||||||
|
$navbar-padding-x: null;
|
||||||
|
|
||||||
|
$navbar-nav-link-padding-x: 0.5rem;
|
||||||
|
|
||||||
|
$navbar-light-color: $black;
|
||||||
|
$navbar-light-hover-color: $primary;
|
||||||
|
$navbar-light-active-color: $primary;
|
||||||
|
|
||||||
|
// Cards
|
||||||
|
|
||||||
|
$card-border-color: $gray-200;
|
||||||
|
|
||||||
|
// Alerts
|
||||||
|
//
|
||||||
|
// Define alert colors, border radius, and padding.
|
||||||
|
|
||||||
|
$alert-padding-y: $spacer;
|
||||||
|
$alert-padding-x: $spacer * 1.5;
|
||||||
|
$alert-margin-bottom: 0;
|
||||||
|
$alert-border-radius: 0;
|
||||||
|
$alert-link-font-weight: $headings-font-weight;
|
||||||
|
$alert-border-width: 0;
|
||||||
|
|
||||||
|
$alert-bg-scale: 0;
|
||||||
|
$alert-border-scale: 0;
|
||||||
|
$alert-color-scale: 0;
|
|
@ -0,0 +1,63 @@
|
||||||
|
.alert {
|
||||||
|
font-family: $font-family-monospace;
|
||||||
|
font-size: $font-size-sm;
|
||||||
|
}
|
||||||
|
|
||||||
|
.alert-icon {
|
||||||
|
margin-right: 0.75rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
.docs .alert {
|
||||||
|
margin: 2rem -1.5rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
.alert .alert-link {
|
||||||
|
text-decoration: underline;
|
||||||
|
}
|
||||||
|
|
||||||
|
.alert-dark {
|
||||||
|
color: $white;
|
||||||
|
background-color: $black;
|
||||||
|
}
|
||||||
|
|
||||||
|
.alert-dark .alert-link {
|
||||||
|
color: $white;
|
||||||
|
}
|
||||||
|
|
||||||
|
.alert-light {
|
||||||
|
color: $black;
|
||||||
|
}
|
||||||
|
|
||||||
|
.alert-warning {
|
||||||
|
background: $beige;
|
||||||
|
color: $black;
|
||||||
|
}
|
||||||
|
|
||||||
|
/*
|
||||||
|
.alert-light {
|
||||||
|
color: #215888;
|
||||||
|
background: linear-gradient(-45deg, rgb(212, 245, 255), rgb(234, 250, 255), rgb(234, 250, 255), #d3f6ef);
|
||||||
|
}
|
||||||
|
|
||||||
|
.alert-light .alert-link {
|
||||||
|
color: #215888;
|
||||||
|
}
|
||||||
|
*/
|
||||||
|
|
||||||
|
.alert-white {
|
||||||
|
background-color: rgba(255, 255, 255, 0.95);
|
||||||
|
}
|
||||||
|
|
||||||
|
.alert-primary {
|
||||||
|
color: $white;
|
||||||
|
background-color: $primary;
|
||||||
|
}
|
||||||
|
|
||||||
|
.alert-primary .alert-link {
|
||||||
|
color: $white;
|
||||||
|
}
|
||||||
|
|
||||||
|
.alert .alert-link:hover,
|
||||||
|
.alert .alert-link:focus {
|
||||||
|
text-decoration: none;
|
||||||
|
}
|
|
@ -0,0 +1,91 @@
|
||||||
|
.navbar .btn-link {
|
||||||
|
color: $navbar-light-color;
|
||||||
|
padding: 0.4375rem 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
#mode {
|
||||||
|
margin-right: 1.25rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
.btn-link:focus {
|
||||||
|
outline: 0;
|
||||||
|
box-shadow: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
#navigation {
|
||||||
|
margin-left: 1.25rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
@include media-breakpoint-up(md) {
|
||||||
|
#mode {
|
||||||
|
margin-right: 0.5rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
.navbar .btn-link {
|
||||||
|
padding: 0.5625em 0.25rem 0.5rem 0.125rem;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.navbar .btn-link:hover {
|
||||||
|
color: $navbar-light-hover-color;
|
||||||
|
}
|
||||||
|
|
||||||
|
.navbar .btn-link:active {
|
||||||
|
color: $navbar-light-active-color;
|
||||||
|
}
|
||||||
|
|
||||||
|
body .toggle-dark {
|
||||||
|
display: block;
|
||||||
|
}
|
||||||
|
|
||||||
|
body .toggle-light {
|
||||||
|
display: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
body.dark .toggle-light {
|
||||||
|
display: block;
|
||||||
|
}
|
||||||
|
|
||||||
|
body.dark .toggle-dark {
|
||||||
|
display: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
.btn-clipboard {
|
||||||
|
display: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
@include media-breakpoint-up(md) {
|
||||||
|
.doks-clipboard {
|
||||||
|
position: relative;
|
||||||
|
float: right;
|
||||||
|
}
|
||||||
|
|
||||||
|
.btn-clipboard {
|
||||||
|
position: absolute;
|
||||||
|
top: 1rem;
|
||||||
|
right: 0.25rem;
|
||||||
|
z-index: 10;
|
||||||
|
display: block;
|
||||||
|
padding: 0.25rem 0.5rem;
|
||||||
|
font-size: $font-size-sm;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.copy-status::after {
|
||||||
|
content: "Copy";
|
||||||
|
display: block;
|
||||||
|
color: $body-color;
|
||||||
|
}
|
||||||
|
|
||||||
|
.copy-status:hover::after {
|
||||||
|
content: "Copy";
|
||||||
|
display: block;
|
||||||
|
color: $pink-500;
|
||||||
|
}
|
||||||
|
|
||||||
|
.copy-status:focus::after,
|
||||||
|
.copy-status:active::after {
|
||||||
|
content: "Copied";
|
||||||
|
display: block;
|
||||||
|
color: $pink-500;
|
||||||
|
}
|
|
@ -0,0 +1,62 @@
|
||||||
|
pre,
|
||||||
|
code,
|
||||||
|
kbd,
|
||||||
|
samp {
|
||||||
|
font-family: $font-family-monospace;
|
||||||
|
font-size: $font-size-sm;
|
||||||
|
border-radius: $border-radius;
|
||||||
|
}
|
||||||
|
|
||||||
|
code {
|
||||||
|
background: $beige;
|
||||||
|
color: $black;
|
||||||
|
padding: 0.25rem 0.5rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
pre {
|
||||||
|
margin: 2rem 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
pre code {
|
||||||
|
display: block;
|
||||||
|
overflow-x: auto;
|
||||||
|
line-height: $line-height-base;
|
||||||
|
padding: 1.25rem 1.5rem;
|
||||||
|
tab-size: 4;
|
||||||
|
scrollbar-width: thin;
|
||||||
|
scrollbar-color: transparent transparent;
|
||||||
|
}
|
||||||
|
|
||||||
|
.hljs {
|
||||||
|
padding: 1.25rem 1.5rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
@include media-breakpoint-down(sm) {
|
||||||
|
pre,
|
||||||
|
code,
|
||||||
|
kbd,
|
||||||
|
samp {
|
||||||
|
border-radius: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
pre {
|
||||||
|
margin: 2rem -1.5rem;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
pre code::-webkit-scrollbar {
|
||||||
|
height: 5px;
|
||||||
|
}
|
||||||
|
|
||||||
|
pre code::-webkit-scrollbar-thumb {
|
||||||
|
background: $gray-200;
|
||||||
|
}
|
||||||
|
|
||||||
|
pre code:hover {
|
||||||
|
scrollbar-width: thin;
|
||||||
|
scrollbar-color: $gray-200 transparent;
|
||||||
|
}
|
||||||
|
|
||||||
|
pre code::-webkit-scrollbar-thumb:hover {
|
||||||
|
background: $gray-200;
|
||||||
|
}
|
|
@ -0,0 +1,30 @@
|
||||||
|
.comment-list {
|
||||||
|
@extend .list-unstyled;
|
||||||
|
}
|
||||||
|
|
||||||
|
.comment-list ol {
|
||||||
|
list-style: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
.comment-form p {
|
||||||
|
@extend .form-group !optional;
|
||||||
|
}
|
||||||
|
|
||||||
|
.comment-form input[type="text"],
|
||||||
|
.comment-form input[type="email"],
|
||||||
|
.comment-form input[type="url"],
|
||||||
|
.comment-form textarea {
|
||||||
|
@extend .form-control;
|
||||||
|
}
|
||||||
|
|
||||||
|
.comment-form input[type="submit"] {
|
||||||
|
@extend .btn;
|
||||||
|
@extend .btn-secondary;
|
||||||
|
}
|
||||||
|
|
||||||
|
blockquote {
|
||||||
|
margin-bottom: 1rem;
|
||||||
|
font-size: 1.25rem;
|
||||||
|
border-left: 3px solid $gray-300;
|
||||||
|
padding-left: 1rem;
|
||||||
|
}
|
|
@ -0,0 +1,62 @@
|
||||||
|
/*
|
||||||
|
|
||||||
|
Doks — based on Ascetic by (c) Ivan Sagalaev <Maniac@SoftwareManiacs.Org>
|
||||||
|
|
||||||
|
*/
|
||||||
|
|
||||||
|
.hljs {
|
||||||
|
display: block;
|
||||||
|
overflow-x: auto;
|
||||||
|
padding: 0.5em;
|
||||||
|
background: $beige;
|
||||||
|
color: $body-color;
|
||||||
|
}
|
||||||
|
|
||||||
|
.hljs-string,
|
||||||
|
.hljs-variable,
|
||||||
|
.hljs-template-variable,
|
||||||
|
.hljs-symbol,
|
||||||
|
.hljs-bullet,
|
||||||
|
.hljs-section,
|
||||||
|
.hljs-addition,
|
||||||
|
.hljs-attribute,
|
||||||
|
.hljs-link {
|
||||||
|
color: $pink-500;
|
||||||
|
}
|
||||||
|
|
||||||
|
.hljs-comment,
|
||||||
|
.hljs-quote,
|
||||||
|
.hljs-meta,
|
||||||
|
.hljs-deletion {
|
||||||
|
color: #888;
|
||||||
|
}
|
||||||
|
|
||||||
|
.hljs-keyword,
|
||||||
|
.hljs-selector-tag,
|
||||||
|
.hljs-section,
|
||||||
|
.hljs-name,
|
||||||
|
.hljs-type,
|
||||||
|
.hljs-strong {
|
||||||
|
font-weight: bold;
|
||||||
|
}
|
||||||
|
|
||||||
|
.hljs-emphasis {
|
||||||
|
font-style: italic;
|
||||||
|
}
|
||||||
|
|
||||||
|
body.dark .hljs {
|
||||||
|
background: $body-overlay-dark;
|
||||||
|
color: $body-color-dark;
|
||||||
|
}
|
||||||
|
|
||||||
|
body.dark .hljs-string,
|
||||||
|
body.dark .hljs-variable,
|
||||||
|
body.dark .hljs-template-variable,
|
||||||
|
body.dark .hljs-symbol,
|
||||||
|
body.dark .hljs-bullet,
|
||||||
|
body.dark .hljs-section,
|
||||||
|
body.dark .hljs-addition,
|
||||||
|
body.dark .hljs-attribute,
|
||||||
|
body.dark .hljs-link {
|
||||||
|
color: $blue-300;
|
||||||
|
}
|
|
@ -0,0 +1,19 @@
|
||||||
|
/** Search form */
|
||||||
|
.search-form {
|
||||||
|
@extend .form-inline !optional;
|
||||||
|
}
|
||||||
|
|
||||||
|
.search-form label {
|
||||||
|
@extend .form-group;
|
||||||
|
|
||||||
|
font-weight: normal;
|
||||||
|
}
|
||||||
|
|
||||||
|
.search-form .search-field {
|
||||||
|
@extend .form-control;
|
||||||
|
}
|
||||||
|
|
||||||
|
.search-form .search-submit {
|
||||||
|
@extend .btn;
|
||||||
|
@extend .btn-secondary;
|
||||||
|
}
|
|
@ -0,0 +1,48 @@
|
||||||
|
figure {
|
||||||
|
margin: 2rem 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
.figure-caption {
|
||||||
|
margin: 0.25rem 0 0.75rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
figure.wide {
|
||||||
|
margin: 2rem -1.5rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
figure.wide .figure-caption {
|
||||||
|
margin: 0.25rem 1.5rem 0.75rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
@include media-breakpoint-up(md) {
|
||||||
|
figure.wide {
|
||||||
|
margin: 2rem -2.5rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
figure.wide .figure-caption {
|
||||||
|
margin: 0.25rem 2.5rem 0.75rem;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
@include media-breakpoint-up(lg) {
|
||||||
|
figure.wide {
|
||||||
|
margin: 2rem -5rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
figure.wide .figure-caption {
|
||||||
|
margin: 0.25rem 5rem 0.75rem;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.blur-up {
|
||||||
|
filter: blur(5px);
|
||||||
|
}
|
||||||
|
|
||||||
|
.blur-up.lazyloaded {
|
||||||
|
filter: unset;
|
||||||
|
}
|
||||||
|
|
||||||
|
.img-simple {
|
||||||
|
margin-top: 0.375rem;
|
||||||
|
margin-bottom: 1.25rem;
|
||||||
|
}
|
|
@ -0,0 +1,75 @@
|
||||||
|
.navbar-form {
|
||||||
|
position: relative;
|
||||||
|
}
|
||||||
|
|
||||||
|
#suggestions {
|
||||||
|
position: absolute;
|
||||||
|
right: 0;
|
||||||
|
margin-top: 0.5rem;
|
||||||
|
width: calc(100vw - 3rem);
|
||||||
|
}
|
||||||
|
|
||||||
|
#suggestions a {
|
||||||
|
display: block;
|
||||||
|
text-decoration: none;
|
||||||
|
padding: 0.75rem;
|
||||||
|
margin: 0 0.5rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
#suggestions a:focus {
|
||||||
|
background: $gray-100;
|
||||||
|
outline: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
#suggestions div:not(:first-child) {
|
||||||
|
border-top: 1px dashed $gray-200;
|
||||||
|
}
|
||||||
|
|
||||||
|
#suggestions div:first-child {
|
||||||
|
margin-top: 0.5rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
#suggestions div:last-child {
|
||||||
|
margin-bottom: 0.5rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
#suggestions a:hover {
|
||||||
|
background: $gray-100;
|
||||||
|
}
|
||||||
|
|
||||||
|
#suggestions span {
|
||||||
|
display: flex;
|
||||||
|
font-size: $font-size-base;
|
||||||
|
}
|
||||||
|
|
||||||
|
#suggestions span:first-child {
|
||||||
|
font-weight: $headings-font-weight;
|
||||||
|
color: $black;
|
||||||
|
}
|
||||||
|
|
||||||
|
#suggestions span:nth-child(2) {
|
||||||
|
color: $gray-700;
|
||||||
|
}
|
||||||
|
|
||||||
|
@include media-breakpoint-up(sm) {
|
||||||
|
#suggestions {
|
||||||
|
width: 30rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
#suggestions a {
|
||||||
|
display: flex;
|
||||||
|
}
|
||||||
|
|
||||||
|
#suggestions span:first-child {
|
||||||
|
width: 9rem;
|
||||||
|
padding-right: 1rem;
|
||||||
|
border-right: 1px solid $gray-200;
|
||||||
|
display: inline-block;
|
||||||
|
text-align: right;
|
||||||
|
}
|
||||||
|
|
||||||
|
#suggestions span:nth-child(2) {
|
||||||
|
width: 19rem;
|
||||||
|
padding-left: 1rem;
|
||||||
|
}
|
||||||
|
}
|
|
@ -0,0 +1,131 @@
|
||||||
|
/*!
|
||||||
|
* GitHub Light v0.5.0
|
||||||
|
* Copyright (c) 2012 - 2017 GitHub, Inc.
|
||||||
|
* Licensed under MIT (https://github.com/primer/github-syntax-theme-generator/blob/master/LICENSE)
|
||||||
|
*/
|
||||||
|
|
||||||
|
.c1,
|
||||||
|
.c /* comment, punctuation.definition.comment, string.comment */ {
|
||||||
|
color: #6a737d;
|
||||||
|
}
|
||||||
|
|
||||||
|
.v /* variable */,
|
||||||
|
.smw /* sublimelinter.mark.warning */ {
|
||||||
|
color: #e36209;
|
||||||
|
}
|
||||||
|
|
||||||
|
// .c1 /* constant, entity.name.constant, variable.other.constant, variable.language, support, meta.property-name, support.constant, support.variable, meta.module-reference, markup.raw, meta.diff.header, meta.output */,
|
||||||
|
.s .v /* string variable */ {
|
||||||
|
color: #005cc5;
|
||||||
|
}
|
||||||
|
|
||||||
|
.e /* entity */,
|
||||||
|
.en /* entity.name */ {
|
||||||
|
color: #6f42c1;
|
||||||
|
}
|
||||||
|
|
||||||
|
.smi /* variable.parameter.function, storage.modifier.package, storage.modifier.import, storage.type.java, variable.other */,
|
||||||
|
.s .s1 /* string source */ {
|
||||||
|
color: #24292e;
|
||||||
|
}
|
||||||
|
|
||||||
|
.ent /* entity.name.tag, markup.quote */ {
|
||||||
|
color: #22863a;
|
||||||
|
}
|
||||||
|
|
||||||
|
.k /* keyword, storage, storage.type */ {
|
||||||
|
color: #d73a49;
|
||||||
|
}
|
||||||
|
|
||||||
|
.s /* string */,
|
||||||
|
.pds /* punctuation.definition.string, source.regexp, string.regexp.character-class */,
|
||||||
|
.s .pse .s1 /* string punctuation.section.embedded source */,
|
||||||
|
.sr /* string.regexp */,
|
||||||
|
.sr .cce /* string.regexp constant.character.escape */,
|
||||||
|
.sr .sre /* string.regexp source.ruby.embedded */,
|
||||||
|
.sr .sra /* string.regexp string.regexp.arbitrary-repitition */ {
|
||||||
|
color: #032f62;
|
||||||
|
}
|
||||||
|
|
||||||
|
.bu /* invalid.broken, invalid.deprecated, invalid.unimplemented, message.error, brackethighlighter.unmatched, sublimelinter.mark.error */ {
|
||||||
|
color: #b31d28;
|
||||||
|
}
|
||||||
|
|
||||||
|
.ii /* invalid.illegal */ {
|
||||||
|
color: #fafbfc;
|
||||||
|
background-color: #b31d28;
|
||||||
|
}
|
||||||
|
|
||||||
|
.c2 /* carriage-return */ {
|
||||||
|
color: #fafbfc;
|
||||||
|
background-color: #d73a49;
|
||||||
|
}
|
||||||
|
|
||||||
|
.c2::before /* carriage-return */ {
|
||||||
|
content: "^M";
|
||||||
|
}
|
||||||
|
|
||||||
|
.sr .cce /* string.regexp constant.character.escape */ {
|
||||||
|
font-weight: bold;
|
||||||
|
color: #22863a;
|
||||||
|
}
|
||||||
|
|
||||||
|
.ml /* markup.list */ {
|
||||||
|
color: #735c0f;
|
||||||
|
}
|
||||||
|
|
||||||
|
.mh /* markup.heading */,
|
||||||
|
.mh .en /* markup.heading entity.name */,
|
||||||
|
.ms /* meta.separator */ {
|
||||||
|
font-weight: bold;
|
||||||
|
color: #005cc5;
|
||||||
|
}
|
||||||
|
|
||||||
|
.mi /* markup.italic */ {
|
||||||
|
font-style: italic;
|
||||||
|
color: #24292e;
|
||||||
|
}
|
||||||
|
|
||||||
|
.mb /* markup.bold */ {
|
||||||
|
font-weight: bold;
|
||||||
|
color: #24292e;
|
||||||
|
}
|
||||||
|
|
||||||
|
.md /* markup.deleted, meta.diff.header.from-file, punctuation.definition.deleted */ {
|
||||||
|
color: #b31d28;
|
||||||
|
background-color: #ffeef0;
|
||||||
|
}
|
||||||
|
|
||||||
|
.mi1 /* markup.inserted, meta.diff.header.to-file, punctuation.definition.inserted */ {
|
||||||
|
color: #22863a;
|
||||||
|
background-color: #f0fff4;
|
||||||
|
}
|
||||||
|
|
||||||
|
.mc /* markup.changed, punctuation.definition.changed */ {
|
||||||
|
color: #e36209;
|
||||||
|
background-color: #ffebda;
|
||||||
|
}
|
||||||
|
|
||||||
|
.mi2 /* markup.ignored, markup.untracked */ {
|
||||||
|
color: #f6f8fa;
|
||||||
|
background-color: #005cc5;
|
||||||
|
}
|
||||||
|
|
||||||
|
.mdr /* meta.diff.range */ {
|
||||||
|
font-weight: bold;
|
||||||
|
color: #6f42c1;
|
||||||
|
}
|
||||||
|
|
||||||
|
.ba /* brackethighlighter.tag, brackethighlighter.curly, brackethighlighter.round, brackethighlighter.square, brackethighlighter.angle, brackethighlighter.quote */ {
|
||||||
|
color: #586069;
|
||||||
|
}
|
||||||
|
|
||||||
|
.sg /* sublimelinter.gutter-mark */ {
|
||||||
|
color: #959da5;
|
||||||
|
}
|
||||||
|
|
||||||
|
.corl /* constant.other.reference.link, string.other.link */ {
|
||||||
|
text-decoration: underline;
|
||||||
|
color: #032f62;
|
||||||
|
}
|
||||||
|
|
|
@ -0,0 +1,5 @@
|
||||||
|
table {
|
||||||
|
@extend .table;
|
||||||
|
|
||||||
|
margin: 3rem 0;
|
||||||
|
}
|
|
@ -0,0 +1,20 @@
|
||||||
|
.footer {
|
||||||
|
border-top: 1px solid $gray-200;
|
||||||
|
padding-top: 1.125rem;
|
||||||
|
padding-bottom: 1.125rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
.footer ul {
|
||||||
|
margin-bottom: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
.footer li {
|
||||||
|
font-size: $font-size-sm;
|
||||||
|
margin-bottom: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
@include media-breakpoint-up(md) {
|
||||||
|
.footer li {
|
||||||
|
font-size: $font-size-base;
|
||||||
|
}
|
||||||
|
}
|
|
@ -0,0 +1,268 @@
|
||||||
|
.banner .nav li {
|
||||||
|
@extend .nav-item;
|
||||||
|
}
|
||||||
|
|
||||||
|
.banner .nav a {
|
||||||
|
@extend .nav-link;
|
||||||
|
}
|
||||||
|
|
||||||
|
.navbar-text {
|
||||||
|
margin-left: 1rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
.navbar-brand {
|
||||||
|
font-weight: $headings-font-weight;
|
||||||
|
}
|
||||||
|
|
||||||
|
.navbar-light .navbar-brand,
|
||||||
|
.navbar-light .navbar-brand:hover,
|
||||||
|
.navbar-light .navbar-brand:active {
|
||||||
|
color: $body-color;
|
||||||
|
}
|
||||||
|
|
||||||
|
.navbar-light .navbar-nav .active .nav-link {
|
||||||
|
color: $primary;
|
||||||
|
}
|
||||||
|
|
||||||
|
@include media-breakpoint-up(md) {
|
||||||
|
.navbar-brand {
|
||||||
|
font-size: $font-size-xl;
|
||||||
|
}
|
||||||
|
|
||||||
|
.navbar-text {
|
||||||
|
margin-left: 1.25rem;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.navbar-nav {
|
||||||
|
flex-direction: row;
|
||||||
|
}
|
||||||
|
|
||||||
|
.nav-item {
|
||||||
|
margin-left: 1.25rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
@include media-breakpoint-up(md) {
|
||||||
|
.nav-item {
|
||||||
|
margin-left: 0.5rem;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
@include media-breakpoint-down(sm) {
|
||||||
|
.nav-item:first-child {
|
||||||
|
margin-left: 0;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
@include media-breakpoint-down(md) {
|
||||||
|
.navbar .container {
|
||||||
|
padding-left: 1.5rem;
|
||||||
|
padding-right: 1.5rem;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.break {
|
||||||
|
flex-basis: 100%;
|
||||||
|
height: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
.navbar {
|
||||||
|
background-color: rgba(255, 255, 255, 0.95);
|
||||||
|
border-bottom: 1px solid $gray-200;
|
||||||
|
margin-top: 4px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.header-bar {
|
||||||
|
border-top: 4px solid;
|
||||||
|
border-image-source: linear-gradient(90deg, $primary, #8ed6fb 50%, #d32e9d);
|
||||||
|
border-image-slice: 1;
|
||||||
|
}
|
||||||
|
|
||||||
|
.home .navbar {
|
||||||
|
border-bottom: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
.navbar-form {
|
||||||
|
position: relative;
|
||||||
|
margin-top: 0.25rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
@include media-breakpoint-up(md) {
|
||||||
|
.navbar-brand {
|
||||||
|
margin-right: 1rem !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
.main-nav .nav-item:first-child .nav-link,
|
||||||
|
.social-nav .nav-item:first-child .nav-link {
|
||||||
|
padding-left: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
.main-nav .nav-item:last-child .nav-link,
|
||||||
|
.social-nav .nav-item:last-child .nav-link {
|
||||||
|
padding-right: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
.navbar-form {
|
||||||
|
margin-top: 0;
|
||||||
|
margin-left: 6rem;
|
||||||
|
margin-right: 1.5rem;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
@include media-breakpoint-up(lg) {
|
||||||
|
.navbar-form {
|
||||||
|
margin-left: 15rem;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
@include media-breakpoint-up(xl) {
|
||||||
|
.navbar-form {
|
||||||
|
margin-left: 30rem;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.form-control.is-search {
|
||||||
|
/*
|
||||||
|
padding-right: calc(1.5em + 0.75rem);
|
||||||
|
*/
|
||||||
|
padding-right: 2.5rem;
|
||||||
|
background: $gray-100;
|
||||||
|
border: 0;
|
||||||
|
|
||||||
|
/*
|
||||||
|
background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%236c757d' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' class='feather feather-search'%3E%3Ccircle cx='11' cy='11' r='8'%3E%3C/circle%3E%3Cline x1='21' y1='21' x2='16.65' y2='16.65'%3E%3C/line%3E%3C/svg%3E");
|
||||||
|
background-repeat: no-repeat;
|
||||||
|
background-position: right calc(0.375em + 0.1875rem) center;
|
||||||
|
background-size: calc(0.75em + 0.375rem) calc(0.75em + 0.375rem);
|
||||||
|
*/
|
||||||
|
}
|
||||||
|
|
||||||
|
.navbar-form::after {
|
||||||
|
position: absolute;
|
||||||
|
top: 0.4625rem;
|
||||||
|
right: 0.5375rem;
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
justify-content: center;
|
||||||
|
height: 1.5rem;
|
||||||
|
padding-right: 0.4375rem;
|
||||||
|
padding-left: 0.4375rem;
|
||||||
|
font-size: $font-size-base * 0.75;
|
||||||
|
color: $gray-700;
|
||||||
|
content: "/";
|
||||||
|
border: 1px solid $gray-300;
|
||||||
|
border-radius: 0.25rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
/*! purgecss start ignore */
|
||||||
|
.algolia-autocomplete {
|
||||||
|
display: flex !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
.algolia-autocomplete .ds-dropdown-menu {
|
||||||
|
box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15) !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
@include media-breakpoint-down(sm) {
|
||||||
|
.algolia-autocomplete .ds-dropdown-menu {
|
||||||
|
max-width: 512px !important;
|
||||||
|
min-width: 312px !important;
|
||||||
|
width: auto !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
.algolia-autocomplete .algolia-docsearch-suggestion .algolia-docsearch-suggestion--subcategory-column::after {
|
||||||
|
content: "|";
|
||||||
|
margin-right: 0.25rem;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.algolia-autocomplete .algolia-docsearch-suggestion--title {
|
||||||
|
margin-bottom: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
.algolia-autocomplete .algolia-docsearch-suggestion--highlight {
|
||||||
|
padding: 0 0.05em;
|
||||||
|
}
|
||||||
|
|
||||||
|
.algolia-autocomplete .algolia-docsearch-footer {
|
||||||
|
margin-top: 1rem;
|
||||||
|
margin-right: 0.5rem;
|
||||||
|
margin-bottom: 0.5rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
/*! purgecss end ignore */
|
||||||
|
|
||||||
|
/*
|
||||||
|
* Source: https://medium.com/creative-technology-concepts-code/responsive-mobile-dropdown-navigation-using-css-only-7218e4498a99
|
||||||
|
*/
|
||||||
|
|
||||||
|
/* Style the menu icon for the dropdown */
|
||||||
|
|
||||||
|
.navbar .menu-icon {
|
||||||
|
cursor: pointer;
|
||||||
|
|
||||||
|
/* display: inline-block; */
|
||||||
|
|
||||||
|
/* float: right; */
|
||||||
|
padding: 1.125rem 0.625rem;
|
||||||
|
margin: 0 0 0 -0.625rem;
|
||||||
|
|
||||||
|
/* position: relative; */
|
||||||
|
user-select: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
.navbar .menu-icon .navicon {
|
||||||
|
background: $navbar-light-color;
|
||||||
|
display: block;
|
||||||
|
height: 2px;
|
||||||
|
position: relative;
|
||||||
|
transition: background 0.2s ease-out;
|
||||||
|
width: 18px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.navbar .menu-icon .navicon::before,
|
||||||
|
.navbar .menu-icon .navicon::after {
|
||||||
|
background: $navbar-light-color;
|
||||||
|
content: "";
|
||||||
|
display: block;
|
||||||
|
height: 100%;
|
||||||
|
position: absolute;
|
||||||
|
transition: all 0.2s ease-out;
|
||||||
|
width: 100%;
|
||||||
|
}
|
||||||
|
|
||||||
|
.navbar .menu-icon .navicon::before {
|
||||||
|
top: 5px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.navbar .menu-icon .navicon::after {
|
||||||
|
top: -5px;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Add the icon and menu animations when the checkbox is clicked */
|
||||||
|
|
||||||
|
.navbar .menu-btn {
|
||||||
|
display: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
.navbar .menu-btn:checked ~ .navbar-collapse {
|
||||||
|
display: block;
|
||||||
|
max-height: 100vh;
|
||||||
|
}
|
||||||
|
|
||||||
|
.navbar .menu-btn:checked ~ .menu-icon .navicon {
|
||||||
|
background: transparent;
|
||||||
|
}
|
||||||
|
|
||||||
|
.navbar .menu-btn:checked ~ .menu-icon .navicon::before {
|
||||||
|
transform: rotate(-45deg);
|
||||||
|
}
|
||||||
|
|
||||||
|
.navbar .menu-btn:checked ~ .menu-icon .navicon::after {
|
||||||
|
transform: rotate(45deg);
|
||||||
|
}
|
||||||
|
|
||||||
|
.navbar .menu-btn:checked ~ .menu-icon:not(.steps) .navicon::before,
|
||||||
|
.navbar .menu-btn:checked ~ .menu-icon:not(.steps) .navicon::after {
|
||||||
|
top: 0;
|
||||||
|
}
|
|
@ -0,0 +1,45 @@
|
||||||
|
.docs-content > h2[id]::before,
|
||||||
|
.docs-content > h3[id]::before,
|
||||||
|
.docs-content > h4[id]::before {
|
||||||
|
display: block;
|
||||||
|
height: 6rem;
|
||||||
|
margin-top: -6rem;
|
||||||
|
content: "";
|
||||||
|
}
|
||||||
|
|
||||||
|
.anchor {
|
||||||
|
visibility: hidden;
|
||||||
|
padding-left: 0.5rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
h1:hover a,
|
||||||
|
h2:hover a,
|
||||||
|
h3:hover a,
|
||||||
|
h4:hover a {
|
||||||
|
visibility: visible;
|
||||||
|
text-decoration: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
.card-list {
|
||||||
|
margin-top: 2.25rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
.edit-page {
|
||||||
|
margin-top: 3rem;
|
||||||
|
font-size: $font-size-base;
|
||||||
|
}
|
||||||
|
|
||||||
|
.edit-page svg {
|
||||||
|
margin-right: 0.5rem;
|
||||||
|
margin-bottom: 0.25rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
p.meta {
|
||||||
|
margin-top: 0.5rem;
|
||||||
|
font-size: $font-size-base;
|
||||||
|
}
|
||||||
|
|
||||||
|
.breadcrumb {
|
||||||
|
margin-top: 2.25rem;
|
||||||
|
font-size: $font-size-base;
|
||||||
|
}
|
|
@ -0,0 +1,28 @@
|
||||||
|
.home .card,
|
||||||
|
.contributors.list .card,
|
||||||
|
.blog.list .card {
|
||||||
|
margin-top: 2rem;
|
||||||
|
margin-bottom: 2rem;
|
||||||
|
transition: transform 0.3s;
|
||||||
|
}
|
||||||
|
|
||||||
|
.home .card:hover,
|
||||||
|
.contributors.list .card:hover,
|
||||||
|
.blog.list .card:hover {
|
||||||
|
transform: scale(1.025);
|
||||||
|
}
|
||||||
|
|
||||||
|
.home .card-body,
|
||||||
|
.contributors.list .card-body,
|
||||||
|
.blog.list .card-body {
|
||||||
|
padding: 0 2rem 1rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
.blog-header {
|
||||||
|
text-align: center;
|
||||||
|
margin-bottom: 2rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
.blog-footer {
|
||||||
|
text-align: center;
|
||||||
|
}
|
|
@ -0,0 +1,110 @@
|
||||||
|
.docs-links,
|
||||||
|
.docs-toc {
|
||||||
|
scrollbar-width: thin;
|
||||||
|
scrollbar-color: $white $white;
|
||||||
|
}
|
||||||
|
|
||||||
|
.docs-links::-webkit-scrollbar,
|
||||||
|
.docs-toc::-webkit-scrollbar {
|
||||||
|
width: 5px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.docs-links::-webkit-scrollbar-track,
|
||||||
|
.docs-toc::-webkit-scrollbar-track {
|
||||||
|
background: $white;
|
||||||
|
}
|
||||||
|
|
||||||
|
.docs-links::-webkit-scrollbar-thumb,
|
||||||
|
.docs-toc::-webkit-scrollbar-thumb {
|
||||||
|
background: $white;
|
||||||
|
}
|
||||||
|
|
||||||
|
.docs-links:hover,
|
||||||
|
.docs-toc:hover {
|
||||||
|
scrollbar-width: thin;
|
||||||
|
scrollbar-color: $gray-200 $white;
|
||||||
|
}
|
||||||
|
|
||||||
|
.docs-links:hover::-webkit-scrollbar-thumb,
|
||||||
|
.docs-toc:hover::-webkit-scrollbar-thumb {
|
||||||
|
background: $gray-200;
|
||||||
|
}
|
||||||
|
|
||||||
|
.docs-links::-webkit-scrollbar-thumb:hover,
|
||||||
|
.docs-toc::-webkit-scrollbar-thumb:hover {
|
||||||
|
background: $gray-200;
|
||||||
|
}
|
||||||
|
|
||||||
|
.docs-links h3,
|
||||||
|
.page-links h3 {
|
||||||
|
text-transform: uppercase;
|
||||||
|
font-size: $font-size-base;
|
||||||
|
margin: 1.25rem 0 0.5rem 0;
|
||||||
|
padding: 1.5rem 0 0 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
@include media-breakpoint-up(lg) {
|
||||||
|
.docs-links h3,
|
||||||
|
.page-links h3 {
|
||||||
|
margin: 1.125rem 1.5rem 0.75rem 0;
|
||||||
|
padding: 1.375rem 0 0 0;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.docs-links h3:not(:first-child) {
|
||||||
|
border-top: 1px solid $gray-200;
|
||||||
|
}
|
||||||
|
|
||||||
|
a.docs-link {
|
||||||
|
color: $body-color;
|
||||||
|
display: block;
|
||||||
|
padding: 0.125rem 0;
|
||||||
|
font-size: $font-size-base;
|
||||||
|
}
|
||||||
|
|
||||||
|
.page-links li {
|
||||||
|
margin-top: 0.375rem;
|
||||||
|
padding-top: 0.375rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
.page-links li ul li {
|
||||||
|
border-top: none;
|
||||||
|
padding-left: 1rem;
|
||||||
|
margin-top: 0.125rem;
|
||||||
|
padding-top: 0.125rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
.page-links li:not(:first-child) {
|
||||||
|
border-top: 1px dashed $gray-200;
|
||||||
|
}
|
||||||
|
|
||||||
|
.page-links a {
|
||||||
|
color: $body-color;
|
||||||
|
display: block;
|
||||||
|
padding: 0.125rem 0;
|
||||||
|
font-size: $font-size-base * 0.9375;
|
||||||
|
}
|
||||||
|
|
||||||
|
.docs-link:hover,
|
||||||
|
.docs-link.active,
|
||||||
|
.page-links a:hover {
|
||||||
|
text-decoration: none;
|
||||||
|
color: $link-color;
|
||||||
|
}
|
||||||
|
|
||||||
|
.docs-links h3.sidebar-link,
|
||||||
|
.page-links h3.sidebar-link {
|
||||||
|
text-transform: none;
|
||||||
|
font-size: $font-size-md;
|
||||||
|
font-weight: normal;
|
||||||
|
}
|
||||||
|
|
||||||
|
.docs-links h3.sidebar-link a,
|
||||||
|
.page-links h3.sidebar-link a {
|
||||||
|
color: $body-color;
|
||||||
|
}
|
||||||
|
|
||||||
|
.docs-links h3.sidebar-link a:hover,
|
||||||
|
.page-links h3.sidebar-link a:hover {
|
||||||
|
text-decoration: underline;
|
||||||
|
}
|
|
@ -0,0 +1,17 @@
|
||||||
|
module.exports = {
|
||||||
|
presets: [
|
||||||
|
[
|
||||||
|
'@babel/preset-env',
|
||||||
|
{
|
||||||
|
targets: {
|
||||||
|
browsers: [
|
||||||
|
// Best practice: https://github.com/babel/babel/issues/7789
|
||||||
|
'>=1%',
|
||||||
|
'not ie 11',
|
||||||
|
'not op_mini all'
|
||||||
|
]
|
||||||
|
}
|
||||||
|
}
|
||||||
|
]
|
||||||
|
]
|
||||||
|
};
|
|
@ -0,0 +1,91 @@
|
||||||
|
baseurl = "/"
|
||||||
|
canonifyURLs = false
|
||||||
|
disableAliases = true
|
||||||
|
disableHugoGeneratorInject = true
|
||||||
|
enableEmoji = true
|
||||||
|
enableGitInfo = false
|
||||||
|
enableRobotsTXT = true
|
||||||
|
languageCode = "en-US"
|
||||||
|
paginate = 7
|
||||||
|
rssLimit = 10
|
||||||
|
|
||||||
|
# add redirects/headers
|
||||||
|
[outputs]
|
||||||
|
home = ["HTML", "RSS", "REDIRECTS", "HEADERS"]
|
||||||
|
section = ["HTML", "RSS", "SITEMAP"]
|
||||||
|
|
||||||
|
# remove .{ext} from text/netlify
|
||||||
|
[mediaTypes."text/netlify"]
|
||||||
|
suffixes = [""]
|
||||||
|
delimiter = ""
|
||||||
|
|
||||||
|
# add output format for netlify _redirects
|
||||||
|
[outputFormats.REDIRECTS]
|
||||||
|
mediaType = "text/netlify"
|
||||||
|
baseName = "_redirects"
|
||||||
|
isPlainText = true
|
||||||
|
notAlternative = true
|
||||||
|
|
||||||
|
# add output format for netlify _headers
|
||||||
|
[outputFormats.HEADERS]
|
||||||
|
mediaType = "text/netlify"
|
||||||
|
baseName = "_headers"
|
||||||
|
isPlainText = true
|
||||||
|
notAlternative = true
|
||||||
|
|
||||||
|
# add output format for section sitemap.xml
|
||||||
|
[outputFormats.SITEMAP]
|
||||||
|
mediaType = "application/xml"
|
||||||
|
baseName = "sitemap"
|
||||||
|
isHTML = false
|
||||||
|
isPlainText = true
|
||||||
|
noUgly = true
|
||||||
|
rel = "sitemap"
|
||||||
|
|
||||||
|
[markup]
|
||||||
|
[markup.goldmark]
|
||||||
|
[markup.goldmark.extensions]
|
||||||
|
linkify = false
|
||||||
|
[markup.goldmark.parser]
|
||||||
|
autoHeadingID = true
|
||||||
|
autoHeadingIDType = "github"
|
||||||
|
[markup.goldmark.parser.attribute]
|
||||||
|
block = true
|
||||||
|
title = true
|
||||||
|
[markup.goldmark.renderer]
|
||||||
|
unsafe = true
|
||||||
|
[markup.highlight]
|
||||||
|
codeFences = false
|
||||||
|
guessSyntax = false
|
||||||
|
hl_Lines = ""
|
||||||
|
lineNoStart = 1
|
||||||
|
lineNos = false
|
||||||
|
lineNumbersInTable = true
|
||||||
|
noClasses = false
|
||||||
|
style = "dracula"
|
||||||
|
tabWidth = 4
|
||||||
|
|
||||||
|
[sitemap]
|
||||||
|
changefreq = "weekly"
|
||||||
|
filename = "sitemap.xml"
|
||||||
|
priority = 0.5
|
||||||
|
|
||||||
|
[taxonomies]
|
||||||
|
contributor = "contributors"
|
||||||
|
|
||||||
|
[RelPermalinks]
|
||||||
|
blog = "/blog/:title/"
|
||||||
|
|
||||||
|
[module]
|
||||||
|
[[module.mounts]]
|
||||||
|
source = "assets"
|
||||||
|
target = "assets"
|
||||||
|
[[module.mounts]]
|
||||||
|
source = "static"
|
||||||
|
target = "static"
|
||||||
|
[[module.mounts]]
|
||||||
|
source = "node_modules/flexsearch"
|
||||||
|
target = "assets/js/vendor/flexsearch"
|
||||||
|
[[module.mounts]]
|
||||||
|
source = "node_modules/katex"
|
||||||
|
target = "assets/js/vendor/katex"
|
|
@ -0,0 +1,62 @@
|
||||||
|
[[docs]]
|
||||||
|
name = "Prologue"
|
||||||
|
weight = 10
|
||||||
|
identifier = "prologue"
|
||||||
|
url = "/docs/prologue/"
|
||||||
|
|
||||||
|
[[docs]]
|
||||||
|
name = "Test"
|
||||||
|
weight = 10
|
||||||
|
identifier = "test"
|
||||||
|
url = "/docs/test/"
|
||||||
|
|
||||||
|
[[docs]]
|
||||||
|
name = "Browser"
|
||||||
|
weight = 11
|
||||||
|
identifier = "browser"
|
||||||
|
url = "/docs/browser/"
|
||||||
|
|
||||||
|
[[dev]]
|
||||||
|
name = "Browser"
|
||||||
|
weight = 11
|
||||||
|
identifier = "browser"
|
||||||
|
url = "/dev_guide/browser/"
|
||||||
|
|
||||||
|
[[docs]]
|
||||||
|
name = "Help"
|
||||||
|
weight = 60
|
||||||
|
identifier = "help"
|
||||||
|
url = "/docs/help/"
|
||||||
|
|
||||||
|
[[main]]
|
||||||
|
name = "Docs"
|
||||||
|
url = "/docs/prologue/introduction/"
|
||||||
|
weight = 10
|
||||||
|
|
||||||
|
[[main]]
|
||||||
|
name = "Dev Guide"
|
||||||
|
url = "/dev_guide/"
|
||||||
|
weight = 11
|
||||||
|
|
||||||
|
[[main]]
|
||||||
|
name = "Blog"
|
||||||
|
url = "/blog/"
|
||||||
|
weight = 20
|
||||||
|
|
||||||
|
[[social]]
|
||||||
|
name = "Twitter"
|
||||||
|
pre = "<svg xmlns=\"http://www.w3.org/2000/svg\" width=\"20\" height=\"20\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\" class=\"feather feather-twitter\"><path d=\"M23 3a10.9 10.9 0 0 1-3.14 1.53 4.48 4.48 0 0 0-7.86 3v1A10.66 10.66 0 0 1 3 4s-4 9 5 13a11.64 11.64 0 0 1-7 2c9 5 20 0 20-11.5a4.5 4.5 0 0 0-.08-.83A7.72 7.72 0 0 0 23 3z\"></path></svg>"
|
||||||
|
url = "https://twitter.com/getdoks"
|
||||||
|
weight = 10
|
||||||
|
|
||||||
|
[[social]]
|
||||||
|
name = "GitHub"
|
||||||
|
pre = "<svg xmlns=\"http://www.w3.org/2000/svg\" width=\"20\" height=\"20\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\" class=\"feather feather-github\"><path d=\"M9 19c-5 1.5-5-2.5-7-3m14 6v-3.87a3.37 3.37 0 0 0-.94-2.61c3.14-.35 6.44-1.54 6.44-7A5.44 5.44 0 0 0 20 4.77 5.07 5.07 0 0 0 19.91 1S18.73.65 16 2.48a13.38 13.38 0 0 0-7 0C6.27.65 5.09 1 5.09 1A5.07 5.07 0 0 0 5 4.77a5.44 5.44 0 0 0-1.5 3.78c0 5.42 3.3 6.61 6.44 7A3.37 3.37 0 0 0 9 18.13V22\"></path></svg>"
|
||||||
|
url = "https://github.com/h-enk/doks"
|
||||||
|
post = "v0.1.0"
|
||||||
|
weight = 20
|
||||||
|
|
||||||
|
# [[footer]]
|
||||||
|
# name = "Privacy"
|
||||||
|
# url = "/privacy-policy/"
|
||||||
|
# weight = 10
|
|
@ -0,0 +1,58 @@
|
||||||
|
# Meta Data for SEO
|
||||||
|
|
||||||
|
## Homepage
|
||||||
|
title = "Doks"
|
||||||
|
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
|
||||||
|
images = ["doks.png"]
|
||||||
|
twitterSite = "henkverlinde"
|
||||||
|
twitterCreator = "henkverlinde"
|
||||||
|
facebookAuthor = "verlinde.henk"
|
||||||
|
facebookPublisher = "verlinde.henk"
|
||||||
|
ogLocale = "en_US"
|
||||||
|
|
||||||
|
## JSON-LD
|
||||||
|
schemaType = "Organization"
|
||||||
|
schemaLogo = "logo-doks.png"
|
||||||
|
schemaTwitter = "https://twitter.com/henkverlinde"
|
||||||
|
schemaLinkedIn = "https://www.linkedin.com/in/henkverlinde/"
|
||||||
|
schemaGitHub = "https://github.com/h-enk"
|
||||||
|
schemaSection = "blog"
|
||||||
|
|
||||||
|
## Sitelinks Search Box
|
||||||
|
siteLinksSearchBox = false
|
||||||
|
|
||||||
|
## Chrome Browser
|
||||||
|
themeColor = "#fff"
|
||||||
|
|
||||||
|
# Images
|
||||||
|
quality = 85
|
||||||
|
bgColor = "#fff"
|
||||||
|
landscapePhotoWidths = [900, 800, 700, 600, 500]
|
||||||
|
portraitPhotoWidths = [800, 700, 600, 500]
|
||||||
|
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>"
|
||||||
|
|
||||||
|
# Alert
|
||||||
|
alert = false
|
||||||
|
alertText = "Like Doks? <a class=\"alert-link\" href=\"https://github.com/h-enk/doks/stargazers\">Star on GitHub</a>. Thanks!</a>"
|
||||||
|
|
||||||
|
# Edit Page
|
||||||
|
docsRepo = "https://github.com/h-enk/doks"
|
||||||
|
editPage = false
|
||||||
|
|
||||||
|
[options]
|
||||||
|
lazySizes = true
|
||||||
|
clipBoard = true
|
||||||
|
instantPage = true
|
||||||
|
flexSearch = true
|
||||||
|
darkMode = true
|
||||||
|
bootStrapJs = false
|
||||||
|
breadCrumb = false
|
||||||
|
highLight = true
|
||||||
|
kaTex = false
|
|
@ -0,0 +1,2 @@
|
||||||
|
baseurl = "https://doks-next.netlify.app/"
|
||||||
|
canonifyURLs = true
|
|
@ -0,0 +1,31 @@
|
||||||
|
const autoprefixer = require('autoprefixer');
|
||||||
|
const purgecss = require('@fullhuman/postcss-purgecss');
|
||||||
|
const whitelister = require('purgecss-whitelister');
|
||||||
|
|
||||||
|
module.exports = {
|
||||||
|
plugins: [
|
||||||
|
autoprefixer(),
|
||||||
|
purgecss({
|
||||||
|
content: [
|
||||||
|
'./layouts/**/*.html',
|
||||||
|
'./content/**/*.md',
|
||||||
|
],
|
||||||
|
safelist: [
|
||||||
|
'lazyloaded',
|
||||||
|
'table',
|
||||||
|
'thead',
|
||||||
|
'tbody',
|
||||||
|
'tr',
|
||||||
|
'th',
|
||||||
|
'td',
|
||||||
|
...whitelister([
|
||||||
|
'./assets/scss/components/_doks.scss',
|
||||||
|
'./assets/scss/components/_code.scss',
|
||||||
|
'./assets/scss/components/_search.scss',
|
||||||
|
'./assets/scss/common/_dark.scss',
|
||||||
|
'./node_modules/katex/dist/katex.css',
|
||||||
|
]),
|
||||||
|
],
|
||||||
|
}),
|
||||||
|
],
|
||||||
|
}
|
|
@ -0,0 +1,2 @@
|
||||||
|
baseurl = "https://doks.netlify.app/"
|
||||||
|
canonifyURLs = true
|
|
@ -0,0 +1,9 @@
|
||||||
|
---
|
||||||
|
title : "Modern Documentation Theme"
|
||||||
|
description: "Doks is a Hugo theme helping you build modern documentation websites that are secure, fast, and SEO-ready — by default."
|
||||||
|
lead: "Doks is a Hugo theme helping you build modern documentation websites that are secure, fast, and SEO-ready — by default."
|
||||||
|
date: 2020-10-06T08:47:36+00:00
|
||||||
|
lastmod: 2020-10-06T08:47:36+00:00
|
||||||
|
draft: false
|
||||||
|
images: []
|
||||||
|
---
|
|
@ -0,0 +1,8 @@
|
||||||
|
---
|
||||||
|
title: "Blog"
|
||||||
|
description: "The Doks Blog."
|
||||||
|
date: 2020-10-06T08:49:55+00:00
|
||||||
|
lastmod: 2020-10-06T08:49:55+00:00
|
||||||
|
draft: false
|
||||||
|
images: []
|
||||||
|
---
|
|
@ -0,0 +1,11 @@
|
||||||
|
---
|
||||||
|
title: "Say hello to Doks 👋"
|
||||||
|
description: "Introducing Doks, a Hugo theme helping you build modern documentation websites that are secure, fast, and SEO-ready — by default."
|
||||||
|
lead: "Introducing Doks, a Hugo theme helping you build modern documentation websites that are secure, fast, and SEO-ready — by default."
|
||||||
|
date: 2020-11-04T09:19:42+01:00
|
||||||
|
lastmod: 2020-11-04T09:19:42+01:00
|
||||||
|
draft: false
|
||||||
|
weight: 50
|
||||||
|
images: ["say-hello-to-doks.png"]
|
||||||
|
contributors: ["Henk Verlinde"]
|
||||||
|
---
|
Binary file not shown.
After Width: | Height: | Size: 8.0 KiB |
|
@ -0,0 +1,10 @@
|
||||||
|
---
|
||||||
|
title: "Contact"
|
||||||
|
description: "Drop us an email."
|
||||||
|
date: 2020-08-27T19:25:12+02:00
|
||||||
|
lastmod: 2020-08-27T19:25:12+02:00
|
||||||
|
draft: true
|
||||||
|
images: []
|
||||||
|
---
|
||||||
|
|
||||||
|
{{< email user="hello" domain="getdoks.org" >}}
|
|
@ -0,0 +1,10 @@
|
||||||
|
---
|
||||||
|
title: "Contributors"
|
||||||
|
description: "The Doks contributors."
|
||||||
|
date: 2020-10-06T08:50:29+00:00
|
||||||
|
lastmod: 2020-10-06T08:50:29+00:00
|
||||||
|
draft: false
|
||||||
|
images: []
|
||||||
|
---
|
||||||
|
|
||||||
|
The Doks contributors.
|
|
@ -0,0 +1,12 @@
|
||||||
|
---
|
||||||
|
title: "Henk Verlinde"
|
||||||
|
description: "Creator of Hyas."
|
||||||
|
date: 2020-10-06T08:50:45+00:00
|
||||||
|
lastmod: 2020-10-06T08:50:45+00:00
|
||||||
|
draft: false
|
||||||
|
images: []
|
||||||
|
---
|
||||||
|
|
||||||
|
Creator of Hyas.
|
||||||
|
|
||||||
|
[@HenkVerlinde](https://twitter.com/henkverlinde)
|
|
@ -0,0 +1,11 @@
|
||||||
|
---
|
||||||
|
title : "Dev Guide"
|
||||||
|
description: "Dev Guide"
|
||||||
|
lead: ""
|
||||||
|
date: 2020-10-06T08:48:23+00:00
|
||||||
|
lastmod: 2020-10-06T08:48:23+00:00
|
||||||
|
draft: false
|
||||||
|
images: []
|
||||||
|
---
|
||||||
|
|
||||||
|
# Dev Guide
|
|
@ -0,0 +1,10 @@
|
||||||
|
---
|
||||||
|
title : "Browser"
|
||||||
|
description: "Status Browser"
|
||||||
|
lead: ""
|
||||||
|
date: 2020-10-06T08:48:23+00:00
|
||||||
|
lastmod: 2020-10-06T08:48:23+00:00
|
||||||
|
draft: false
|
||||||
|
images: []
|
||||||
|
---
|
||||||
|
|
|
@ -0,0 +1,18 @@
|
||||||
|
---
|
||||||
|
title : "DApps"
|
||||||
|
description: ""
|
||||||
|
lead: ""
|
||||||
|
date: 2020-10-06T08:48:23+00:00
|
||||||
|
lastmod: 2020-10-06T08:48:23+00:00
|
||||||
|
draft: false
|
||||||
|
images: []
|
||||||
|
menu:
|
||||||
|
docs:
|
||||||
|
parent: "browser"
|
||||||
|
toc: true
|
||||||
|
---
|
||||||
|
|
||||||
|
## dapps
|
||||||
|
### connecting a dapp
|
||||||
|
### confirming transaction
|
||||||
|
### signing
|
|
@ -0,0 +1,83 @@
|
||||||
|
---
|
||||||
|
title : "Favourites"
|
||||||
|
description: ""
|
||||||
|
lead: ""
|
||||||
|
date: 2020-10-06T08:48:23+00:00
|
||||||
|
lastmod: 2020-10-06T08:48:23+00:00
|
||||||
|
draft: false
|
||||||
|
images: []
|
||||||
|
menu:
|
||||||
|
dev:
|
||||||
|
parent: "browser"
|
||||||
|
toc: true
|
||||||
|
---
|
||||||
|
|
||||||
|
[User Docs for this section](/docs/browser/favourites/)
|
||||||
|
|
||||||
|
## Adding a favourite
|
||||||
|
|
||||||
|
key source file: [`src/status/libstatus/browser.nim`](https://github.com/status-im/status-desktop/blob/d2b6bf9310df088c89abcca7c1df42abc3999b18/src/status/libstatus/browser.nim#L3)
|
||||||
|
|
||||||
|
key source file: [`src/app/browser/view.nim`](https://github.com/status-im/status-desktop/blob/d2b6bf9310df088c89abcca7c1df42abc3999b18/src/app/browser/view.nim#L46)
|
||||||
|
|
||||||
|
#### with the Star icon
|
||||||
|
|
||||||
|
// TODO
|
||||||
|
|
||||||
|
#### with the Add favourite button
|
||||||
|
|
||||||
|
key source file: [`ui/app/AppLayouts/Browser/FavoritesList.qml`](https://github.com/status-im/status-desktop/blob/d2b6bf9310df088c89abcca7c1df42abc3999b18/ui/app/AppLayouts/Browser/FavoritesList.qml#L39)
|
||||||
|
|
||||||
|
key source file: [`ui/app/AppLayouts/Browser/AddFavoriteModal.qml`](https://github.com/status-im/status-desktop/blob/17b3a444589725f1723bda8549623e14a0277b2d/ui/app/AppLayouts/Browser/AddFavoriteModal.qml#L9)
|
||||||
|
|
||||||
|
The modal is opened by calling `addFavoriteModal.open()` in `ui/app/AppLayouts/Browser/FavoritesList.qml`
|
||||||
|
|
||||||
|
## Displaying favourites
|
||||||
|
|
||||||
|
key source file: [`src/status/libstatus/browser.nim`](https://github.com/status-im/status-desktop/blob/d2b6bf9310df088c89abcca7c1df42abc3999b18/src/status/libstatus/browser.nim#L21)
|
||||||
|
|
||||||
|
key source file: [`src/app/browser/view.nim`](https://github.com/status-im/status-desktop/blob/d2b6bf9310df088c89abcca7c1df42abc3999b18/src/app/browser/view.nim#L39)
|
||||||
|
|
||||||
|
key source file: [`src/app/browser/views/bookmark_list.nim`](https://github.com/status-im/status-desktop/blob/17b3a444589725f1723bda8549623e14a0277b2d/src/app/browser/views/bookmark_list.nim#L5)
|
||||||
|
|
||||||
|
#### In the Toolbar
|
||||||
|
|
||||||
|
key source file: [`ui/app/AppLayouts/Browser/FavoritesBar.qml`](https://github.com/status-im/status-desktop/blob/d2b6bf9310df088c89abcca7c1df42abc3999b18/ui/app/AppLayouts/Browser/FavoritesBar.qml#L12)
|
||||||
|
|
||||||
|
#### in the blank page
|
||||||
|
|
||||||
|
key source file: [`ui/app/AppLayouts/Browser/BrowserLayout.qml`](https://github.com/status-im/status-desktop/blob/d2b6bf9310df088c89abcca7c1df42abc3999b18/ui/app/AppLayouts/Browser/BrowserLayout.qml#L670)
|
||||||
|
|
||||||
|
key source file: [`ui/app/AppLayouts/Browser/FavoritesList.qml`](https://github.com/status-im/status-desktop/blob/d2b6bf9310df088c89abcca7c1df42abc3999b18/ui/app/AppLayouts/Browser/FavoritesList.qml#L10)
|
||||||
|
|
||||||
|
// todo add how the list is added from the backend
|
||||||
|
|
||||||
|
## Editing a favourite
|
||||||
|
|
||||||
|
key source file: [`src/status/libstatus/browser.nim`](https://github.com/status-im/status-desktop/blob/d2b6bf9310df088c89abcca7c1df42abc3999b18/src/status/libstatus/browser.nim#L13)
|
||||||
|
|
||||||
|
## Removing a favourite
|
||||||
|
|
||||||
|
key source file: [`ui/app/AppLayouts/Browser/FavoriteMenu.qml`](https://github.com/status-im/status-desktop/blob/d2b6bf9310df088c89abcca7c1df42abc3999b18/ui/app/AppLayouts/Browser/FavoriteMenu.qml#L53)
|
||||||
|
|
||||||
|
key source file: [`ui/app/AppLayouts/Browser/AddFavoriteModal.qml`](https://github.com/status-im/status-desktop/blob/d2b6bf9310df088c89abcca7c1df42abc3999b18/ui/app/AppLayouts/Browser/AddFavoriteModal.qml#L129)
|
||||||
|
|
||||||
|
key source file: [`src/app/browser/view.nim`](https://github.com/status-im/status-desktop/blob/d2b6bf9310df088c89abcca7c1df42abc3999b18/src/app/browser/view.nim#L51)
|
||||||
|
|
||||||
|
key source file: [`src/status/libstatus/browser.nim`](https://github.com/status-im/status-desktop/blob/d2b6bf9310df088c89abcca7c1df42abc3999b18/src/status/libstatus/browser.nim#L25)
|
||||||
|
|
||||||
|
A favourite is removed by calling `browserModel.removeBookmark` from QML, in Nim, an RPC call to the backend is made using `browsers_deleteBookmark` with `url` as the payload
|
||||||
|
|
||||||
|
## Loading a favourite
|
||||||
|
|
||||||
|
key source file: [`ui/app/AppLayouts/Browser/FavoritesBar.qml`](https://github.com/status-im/status-desktop/blob/d2b6bf9310df088c89abcca7c1df42abc3999b18/ui/app/AppLayouts/Browser/FavoritesBar.qml#L46)
|
||||||
|
|
||||||
|
key source file: [`ui/app/AppLayouts/Browser/BrowserLayout.qml`](https://github.com/status-im/status-desktop/blob/d2b6bf9310df088c89abcca7c1df42abc3999b18/ui/app/AppLayouts/Browser/BrowserLayout.qml#L51)
|
||||||
|
|
||||||
|
A favourite is loaded by setting `currentWebView.url` to the intended url.
|
||||||
|
|
||||||
|
In this case [`ui/app/AppLayouts/Browser/FavoritesBar.qml`](https://github.com/status-im/status-desktop/blob/d2b6bf9310df088c89abcca7c1df42abc3999b18/ui/app/AppLayouts/Browser/FavoritesBar.qml#L46) each delegate has its own `url` property and that is used to set the `currentWebView.url` value after going through the`determineRealURL` helper in case it's a ENS domain etc..
|
||||||
|
|
||||||
|
```
|
||||||
|
currentWebView.url = determineRealURL(url)
|
||||||
|
```
|
|
@ -0,0 +1,16 @@
|
||||||
|
---
|
||||||
|
title : "Other Features"
|
||||||
|
description: ""
|
||||||
|
lead: ""
|
||||||
|
date: 2020-10-06T08:48:23+00:00
|
||||||
|
lastmod: 2020-10-06T08:48:23+00:00
|
||||||
|
draft: false
|
||||||
|
images: []
|
||||||
|
menu:
|
||||||
|
docs:
|
||||||
|
parent: "browser"
|
||||||
|
toc: true
|
||||||
|
---
|
||||||
|
|
||||||
|
## other features
|
||||||
|
### downloads
|
|
@ -0,0 +1,20 @@
|
||||||
|
---
|
||||||
|
title : "Other options"
|
||||||
|
description: ""
|
||||||
|
lead: ""
|
||||||
|
date: 2020-10-06T08:48:23+00:00
|
||||||
|
lastmod: 2020-10-06T08:48:23+00:00
|
||||||
|
draft: false
|
||||||
|
images: []
|
||||||
|
menu:
|
||||||
|
docs:
|
||||||
|
parent: "browser"
|
||||||
|
toc: true
|
||||||
|
---
|
||||||
|
|
||||||
|
## other options
|
||||||
|
### zoom
|
||||||
|
### find
|
||||||
|
### compatibility mode
|
||||||
|
### developer tools
|
||||||
|
### incognito mode
|
|
@ -0,0 +1,18 @@
|
||||||
|
---
|
||||||
|
title : "Settings"
|
||||||
|
description: ""
|
||||||
|
lead: ""
|
||||||
|
date: 2020-10-06T08:48:23+00:00
|
||||||
|
lastmod: 2020-10-06T08:48:23+00:00
|
||||||
|
draft: false
|
||||||
|
images: []
|
||||||
|
menu:
|
||||||
|
docs:
|
||||||
|
parent: "browser"
|
||||||
|
toc: true
|
||||||
|
---
|
||||||
|
|
||||||
|
## settings
|
||||||
|
### setting home page
|
||||||
|
### dapp access permissions
|
||||||
|
### other configs
|
|
@ -0,0 +1,18 @@
|
||||||
|
---
|
||||||
|
title : "Tabs"
|
||||||
|
description: ""
|
||||||
|
lead: ""
|
||||||
|
date: 2020-10-06T08:48:23+00:00
|
||||||
|
lastmod: 2020-10-06T08:48:23+00:00
|
||||||
|
draft: false
|
||||||
|
images: []
|
||||||
|
menu:
|
||||||
|
docs:
|
||||||
|
parent: "browser"
|
||||||
|
toc: true
|
||||||
|
---
|
||||||
|
|
||||||
|
## tabs
|
||||||
|
### opening tabs
|
||||||
|
### reordering tabs
|
||||||
|
### closing tabs
|
|
@ -0,0 +1,19 @@
|
||||||
|
---
|
||||||
|
title : "URL Bar"
|
||||||
|
description: ""
|
||||||
|
lead: ""
|
||||||
|
date: 2020-10-06T08:48:23+00:00
|
||||||
|
lastmod: 2020-10-06T08:48:23+00:00
|
||||||
|
draft: false
|
||||||
|
images: []
|
||||||
|
menu:
|
||||||
|
docs:
|
||||||
|
parent: "browser"
|
||||||
|
toc: true
|
||||||
|
---
|
||||||
|
|
||||||
|
## url bar
|
||||||
|
### loading page
|
||||||
|
### search engine
|
||||||
|
### ethereum explorer
|
||||||
|
### ens/swarm support
|
|
@ -0,0 +1,19 @@
|
||||||
|
---
|
||||||
|
title : "Wallet"
|
||||||
|
description: ""
|
||||||
|
lead: ""
|
||||||
|
date: 2020-10-06T08:48:23+00:00
|
||||||
|
lastmod: 2020-10-06T08:48:23+00:00
|
||||||
|
draft: false
|
||||||
|
images: []
|
||||||
|
menu:
|
||||||
|
docs:
|
||||||
|
parent: "browser"
|
||||||
|
toc: true
|
||||||
|
---
|
||||||
|
|
||||||
|
## wallet
|
||||||
|
### connecting/disconnecting
|
||||||
|
### choosing account
|
||||||
|
### viewing assets
|
||||||
|
### viewing history
|
|
@ -0,0 +1,9 @@
|
||||||
|
---
|
||||||
|
title : "Docs"
|
||||||
|
description: "Docs Doks."
|
||||||
|
lead: ""
|
||||||
|
date: 2020-10-06T08:48:23+00:00
|
||||||
|
lastmod: 2020-10-06T08:48:23+00:00
|
||||||
|
draft: false
|
||||||
|
images: []
|
||||||
|
---
|
|
@ -0,0 +1,10 @@
|
||||||
|
---
|
||||||
|
title : "Browser"
|
||||||
|
description: "Status Browser"
|
||||||
|
lead: ""
|
||||||
|
date: 2020-10-06T08:48:23+00:00
|
||||||
|
lastmod: 2020-10-06T08:48:23+00:00
|
||||||
|
draft: false
|
||||||
|
images: []
|
||||||
|
---
|
||||||
|
|
|
@ -0,0 +1,18 @@
|
||||||
|
---
|
||||||
|
title : "DApps"
|
||||||
|
description: ""
|
||||||
|
lead: ""
|
||||||
|
date: 2020-10-06T08:48:23+00:00
|
||||||
|
lastmod: 2020-10-06T08:48:23+00:00
|
||||||
|
draft: false
|
||||||
|
images: []
|
||||||
|
menu:
|
||||||
|
docs:
|
||||||
|
parent: "browser"
|
||||||
|
toc: true
|
||||||
|
---
|
||||||
|
|
||||||
|
## dapps
|
||||||
|
### connecting a dapp
|
||||||
|
### confirming transaction
|
||||||
|
### signing
|
|
@ -0,0 +1,58 @@
|
||||||
|
---
|
||||||
|
title : "Favourites"
|
||||||
|
description: ""
|
||||||
|
lead: ""
|
||||||
|
date: 2020-10-06T08:48:23+00:00
|
||||||
|
lastmod: 2020-10-06T08:48:23+00:00
|
||||||
|
draft: false
|
||||||
|
images: []
|
||||||
|
menu:
|
||||||
|
docs:
|
||||||
|
parent: "browser"
|
||||||
|
toc: true
|
||||||
|
---
|
||||||
|
|
||||||
|
[Dev Docs for this section](/dev_guide/browser/favourites/)
|
||||||
|
|
||||||
|
## Adding a favourite
|
||||||
|
|
||||||
|
There are two ways to add a favourite.
|
||||||
|
|
||||||
|
#### Star icon
|
||||||
|
|
||||||
|
Click the star icon
|
||||||
|
![url_bar](/images/browser/url_bar.png)
|
||||||
|
|
||||||
|
A dialog will open, confirm the details and click "Done"
|
||||||
|
|
||||||
|
![star_modal](/images/browser/star_modal.png)
|
||||||
|
|
||||||
|
#### Add favourite button
|
||||||
|
|
||||||
|
Another way to add a favourite is through the Add Favourite button in a blank tab
|
||||||
|
![add_favourite](/images/browser/add_favourite.png)
|
||||||
|
|
||||||
|
A dialog will open, confirm the details and click "Done"
|
||||||
|
|
||||||
|
![add_modal](/images/browser/add_modal.png)
|
||||||
|
|
||||||
|
## Displaying favourites
|
||||||
|
|
||||||
|
Favourites will be displayed in the favourites bar as well as in a blank tab as quick shortcuts
|
||||||
|
![favourites](/images/browser/favourites.png)
|
||||||
|
|
||||||
|
## Editing a favourite
|
||||||
|
|
||||||
|
Right click on a bookmark and click "Edit"
|
||||||
|
![context_menu_1](/images/browser/context_menu_1.png)
|
||||||
|
![context_menu_2](/images/browser/context_menu_2.png)
|
||||||
|
|
||||||
|
then change the details and click "done"
|
||||||
|
|
||||||
|
![edit_modal](/images/browser/edit_modal.png)
|
||||||
|
|
||||||
|
## Removing a favourite
|
||||||
|
|
||||||
|
Right click on a bookmark and click "Remove"
|
||||||
|
![context_menu_1](/images/browser/context_menu_1.png)
|
||||||
|
![context_menu_2](/images/browser/context_menu_2.png)
|
|
@ -0,0 +1,16 @@
|
||||||
|
---
|
||||||
|
title : "Other Features"
|
||||||
|
description: ""
|
||||||
|
lead: ""
|
||||||
|
date: 2020-10-06T08:48:23+00:00
|
||||||
|
lastmod: 2020-10-06T08:48:23+00:00
|
||||||
|
draft: false
|
||||||
|
images: []
|
||||||
|
menu:
|
||||||
|
docs:
|
||||||
|
parent: "browser"
|
||||||
|
toc: true
|
||||||
|
---
|
||||||
|
|
||||||
|
## other features
|
||||||
|
### downloads
|
|
@ -0,0 +1,20 @@
|
||||||
|
---
|
||||||
|
title : "Other options"
|
||||||
|
description: ""
|
||||||
|
lead: ""
|
||||||
|
date: 2020-10-06T08:48:23+00:00
|
||||||
|
lastmod: 2020-10-06T08:48:23+00:00
|
||||||
|
draft: false
|
||||||
|
images: []
|
||||||
|
menu:
|
||||||
|
docs:
|
||||||
|
parent: "browser"
|
||||||
|
toc: true
|
||||||
|
---
|
||||||
|
|
||||||
|
## other options
|
||||||
|
### zoom
|
||||||
|
### find
|
||||||
|
### compatibility mode
|
||||||
|
### developer tools
|
||||||
|
### incognito mode
|
|
@ -0,0 +1,18 @@
|
||||||
|
---
|
||||||
|
title : "Settings"
|
||||||
|
description: ""
|
||||||
|
lead: ""
|
||||||
|
date: 2020-10-06T08:48:23+00:00
|
||||||
|
lastmod: 2020-10-06T08:48:23+00:00
|
||||||
|
draft: false
|
||||||
|
images: []
|
||||||
|
menu:
|
||||||
|
docs:
|
||||||
|
parent: "browser"
|
||||||
|
toc: true
|
||||||
|
---
|
||||||
|
|
||||||
|
## settings
|
||||||
|
### setting home page
|
||||||
|
### dapp access permissions
|
||||||
|
### other configs
|
|
@ -0,0 +1,18 @@
|
||||||
|
---
|
||||||
|
title : "Tabs"
|
||||||
|
description: ""
|
||||||
|
lead: ""
|
||||||
|
date: 2020-10-06T08:48:23+00:00
|
||||||
|
lastmod: 2020-10-06T08:48:23+00:00
|
||||||
|
draft: false
|
||||||
|
images: []
|
||||||
|
menu:
|
||||||
|
docs:
|
||||||
|
parent: "browser"
|
||||||
|
toc: true
|
||||||
|
---
|
||||||
|
|
||||||
|
## tabs
|
||||||
|
### opening tabs
|
||||||
|
### reordering tabs
|
||||||
|
### closing tabs
|
|
@ -0,0 +1,19 @@
|
||||||
|
---
|
||||||
|
title : "URL Bar"
|
||||||
|
description: ""
|
||||||
|
lead: ""
|
||||||
|
date: 2020-10-06T08:48:23+00:00
|
||||||
|
lastmod: 2020-10-06T08:48:23+00:00
|
||||||
|
draft: false
|
||||||
|
images: []
|
||||||
|
menu:
|
||||||
|
docs:
|
||||||
|
parent: "browser"
|
||||||
|
toc: true
|
||||||
|
---
|
||||||
|
|
||||||
|
## url bar
|
||||||
|
### loading page
|
||||||
|
### search engine
|
||||||
|
### ethereum explorer
|
||||||
|
### ens/swarm support
|
|
@ -0,0 +1,19 @@
|
||||||
|
---
|
||||||
|
title : "Wallet"
|
||||||
|
description: ""
|
||||||
|
lead: ""
|
||||||
|
date: 2020-10-06T08:48:23+00:00
|
||||||
|
lastmod: 2020-10-06T08:48:23+00:00
|
||||||
|
draft: false
|
||||||
|
images: []
|
||||||
|
menu:
|
||||||
|
docs:
|
||||||
|
parent: "browser"
|
||||||
|
toc: true
|
||||||
|
---
|
||||||
|
|
||||||
|
## wallet
|
||||||
|
### connecting/disconnecting
|
||||||
|
### choosing account
|
||||||
|
### viewing assets
|
||||||
|
### viewing history
|
|
@ -0,0 +1,9 @@
|
||||||
|
---
|
||||||
|
title: "Help"
|
||||||
|
description: "Help Doks."
|
||||||
|
lead: ""
|
||||||
|
date: 2020-10-06T08:49:15+00:00
|
||||||
|
lastmod: 2020-10-06T08:49:15+00:00
|
||||||
|
draft: false
|
||||||
|
images: []
|
||||||
|
---
|
|
@ -0,0 +1,50 @@
|
||||||
|
---
|
||||||
|
title: "FAQ"
|
||||||
|
description: "Answers to frequently asked questions."
|
||||||
|
lead: "Answers to frequently asked questions."
|
||||||
|
date: 2020-10-06T08:49:31+00:00
|
||||||
|
lastmod: 2020-10-06T08:49:31+00:00
|
||||||
|
draft: false
|
||||||
|
images: []
|
||||||
|
menu:
|
||||||
|
docs:
|
||||||
|
parent: "help"
|
||||||
|
weight: 630
|
||||||
|
toc: true
|
||||||
|
---
|
||||||
|
|
||||||
|
## Hyas?
|
||||||
|
|
||||||
|
Doks is a [Hyas theme](https://gethyas.com/themes/) build by the creator of Hyas.
|
||||||
|
|
||||||
|
## Footer notice?
|
||||||
|
|
||||||
|
Please keep it in place.
|
||||||
|
|
||||||
|
## Keyboard shortcuts for search?
|
||||||
|
|
||||||
|
- focus: `/`
|
||||||
|
- select: `↓` and `↑`
|
||||||
|
- open: `Enter`
|
||||||
|
- close: `Esc`
|
||||||
|
|
||||||
|
## Other documentation?
|
||||||
|
|
||||||
|
- [Netlify](https://docs.netlify.com/)
|
||||||
|
- [Hugo](https://gohugo.io/documentation/)
|
||||||
|
|
||||||
|
## Can I get support?
|
||||||
|
|
||||||
|
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)
|
|
@ -0,0 +1,32 @@
|
||||||
|
---
|
||||||
|
title: "How to Update"
|
||||||
|
description: "Regularly update the installed npm packages to keep your Doks website stable, usable, and secure."
|
||||||
|
lead: "Regularly update the installed npm packages to keep your Doks website stable, usable, and secure."
|
||||||
|
date: 2020-11-12T13:26:54+01:00
|
||||||
|
lastmod: 2020-11-12T13:26:54+01:00
|
||||||
|
draft: false
|
||||||
|
images: []
|
||||||
|
menu:
|
||||||
|
docs:
|
||||||
|
parent: "help"
|
||||||
|
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>." >}}
|
||||||
|
|
||||||
|
## Check for outdated packages
|
||||||
|
|
||||||
|
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 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>...]
|
||||||
|
```
|
|
@ -0,0 +1,30 @@
|
||||||
|
---
|
||||||
|
title: "Troubleshooting"
|
||||||
|
description: "Solutions to common problems."
|
||||||
|
lead: "Solutions to common problems."
|
||||||
|
date: 2020-11-12T15:22:20+01:00
|
||||||
|
lastmod: 2020-11-12T15:22:20+01:00
|
||||||
|
draft: false
|
||||||
|
images: []
|
||||||
|
menu:
|
||||||
|
docs:
|
||||||
|
parent: "help"
|
||||||
|
weight: 620
|
||||||
|
toc: true
|
||||||
|
---
|
||||||
|
|
||||||
|
## Problems updating npm packages
|
||||||
|
|
||||||
|
Delete the `./node_modules` folder, and run again:
|
||||||
|
|
||||||
|
```bash
|
||||||
|
npm install
|
||||||
|
```
|
||||||
|
|
||||||
|
## Problems with cache
|
||||||
|
|
||||||
|
Delete the temporary directories:
|
||||||
|
|
||||||
|
```bash
|
||||||
|
npm run clean
|
||||||
|
```
|
|
@ -0,0 +1,9 @@
|
||||||
|
---
|
||||||
|
title : "Prologue"
|
||||||
|
description: "Prologue Doks."
|
||||||
|
lead: ""
|
||||||
|
date: 2020-10-06T08:48:45+00:00
|
||||||
|
lastmod: 2020-10-06T08:48:45+00:00
|
||||||
|
draft: false
|
||||||
|
images: []
|
||||||
|
---
|
|
@ -0,0 +1,118 @@
|
||||||
|
---
|
||||||
|
title: "Commands"
|
||||||
|
description: "Doks comes with commands for common tasks."
|
||||||
|
lead: "Doks comes with commands for common tasks."
|
||||||
|
date: 2020-10-13T15:21:01+02:00
|
||||||
|
lastmod: 2020-10-13T15:21:01+02:00
|
||||||
|
draft: false
|
||||||
|
images: []
|
||||||
|
menu:
|
||||||
|
docs:
|
||||||
|
parent: "prologue"
|
||||||
|
weight: 130
|
||||||
|
toc: true
|
||||||
|
---
|
||||||
|
|
||||||
|
{{< 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]
|
||||||
|
```
|
||||||
|
|
||||||
|
See also the Hugo docs: [hugo new](https://gohugo.io/commands/hugo_new/).
|
||||||
|
|
||||||
|
## lint
|
||||||
|
|
||||||
|
Check scripts, styles, and markdown for errors:
|
||||||
|
|
||||||
|
{{< btn-copy text="npm run lint" >}}
|
||||||
|
|
||||||
|
```bash
|
||||||
|
npm run lint
|
||||||
|
```
|
||||||
|
|
||||||
|
### scripts
|
||||||
|
|
||||||
|
Check scripts for errors:
|
||||||
|
|
||||||
|
{{< btn-copy text="npm run lint:scripts" >}}
|
||||||
|
|
||||||
|
```bash
|
||||||
|
npm run lint:scripts [-- --fix]
|
||||||
|
```
|
||||||
|
|
||||||
|
### styles
|
||||||
|
|
||||||
|
Check styles for errors:
|
||||||
|
|
||||||
|
{{< btn-copy text="npm run lint:styles" >}}
|
||||||
|
|
||||||
|
```bash
|
||||||
|
npm run lint:styles [-- --fix]
|
||||||
|
```
|
||||||
|
|
||||||
|
### markdown
|
||||||
|
|
||||||
|
Check markdown for errors:
|
||||||
|
|
||||||
|
{{< btn-copy text="npm run lint:markdown" >}}
|
||||||
|
|
||||||
|
```bash
|
||||||
|
npm run lint:markdown [-- --fix]
|
||||||
|
```
|
||||||
|
|
||||||
|
## clean
|
||||||
|
|
||||||
|
Delete temporary directories:
|
||||||
|
|
||||||
|
{{< btn-copy text="npm run clean" >}}
|
||||||
|
|
||||||
|
```bash
|
||||||
|
npm run clean
|
||||||
|
```
|
||||||
|
|
||||||
|
## start
|
||||||
|
|
||||||
|
Start local development server:
|
||||||
|
|
||||||
|
{{< btn-copy text="npm run start" >}}
|
||||||
|
|
||||||
|
```bash
|
||||||
|
npm run start
|
||||||
|
```
|
||||||
|
|
||||||
|
## build
|
||||||
|
|
||||||
|
Build production website:
|
||||||
|
|
||||||
|
{{< btn-copy text="npm run build" >}}
|
||||||
|
|
||||||
|
```bash
|
||||||
|
npm run build
|
||||||
|
```
|
||||||
|
|
||||||
|
### functions
|
||||||
|
|
||||||
|
Build Lambda functions:
|
||||||
|
|
||||||
|
{{< btn-copy text="npm run build:functions" >}}
|
||||||
|
|
||||||
|
```bash
|
||||||
|
npm run build:functions
|
||||||
|
```
|
||||||
|
|
||||||
|
### preview
|
||||||
|
|
||||||
|
Build production website including draft and future content:
|
||||||
|
|
||||||
|
{{< btn-copy text="npm run build:preview" >}}
|
||||||
|
|
||||||
|
```bash
|
||||||
|
npm run build:preview
|
||||||
|
```
|
|
@ -0,0 +1,58 @@
|
||||||
|
---
|
||||||
|
title: "Introduction"
|
||||||
|
description: "Doks is a Hugo theme helping you build modern documentation websites that are secure, fast, and SEO-ready — by default."
|
||||||
|
lead: "Doks is a Hugo theme helping you build modern documentation websites that are secure, fast, and SEO-ready — by default."
|
||||||
|
date: 2020-10-06T08:48:57+00:00
|
||||||
|
lastmod: 2020-10-06T08:48:57+00:00
|
||||||
|
draft: false
|
||||||
|
images: []
|
||||||
|
menu:
|
||||||
|
docs:
|
||||||
|
parent: "prologue"
|
||||||
|
weight: 100
|
||||||
|
toc: true
|
||||||
|
---
|
||||||
|
|
||||||
|
## Get started
|
||||||
|
|
||||||
|
There are two main ways to get started with Doks:
|
||||||
|
|
||||||
|
### Tutorial
|
||||||
|
|
||||||
|
{{< 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." >}}
|
||||||
|
|
||||||
|
One page summary of how to start a new Doks project. [Quick Start →]({{< relref "quick-start" >}})
|
||||||
|
|
||||||
|
## Go further
|
||||||
|
|
||||||
|
Recipes, Reference Guides, Extensions, and Showcase.
|
||||||
|
|
||||||
|
### Recipes
|
||||||
|
|
||||||
|
Get instructions on how to accomplish common tasks with Doks. [Recipes →](https://getdoks.org/docs/recipes/project-configuration/)
|
||||||
|
|
||||||
|
### Reference Guides
|
||||||
|
|
||||||
|
Learn how to customize Doks to fully make it your own. [Reference Guides →](https://getdoks.org/docs/reference-guides/security/)
|
||||||
|
|
||||||
|
### Extensions
|
||||||
|
|
||||||
|
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/electric-blocks/)
|
||||||
|
|
||||||
|
## Contributing
|
||||||
|
|
||||||
|
Find out how to contribute to Doks. [Contributing →](https://getdoks.org/docs/contributing/how-to-contribute/)
|
||||||
|
|
||||||
|
## Help
|
||||||
|
|
||||||
|
Get help on Doks. [Help →]({{< relref "how-to-update" >}})
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue