Skip to content

Commit

Permalink
Merge pull request #220 from libp2p/theme/migrate-to-doks
Browse files Browse the repository at this point in the history
refactor/migrate-to-doks
  • Loading branch information
salmad3 authored Nov 17, 2022
2 parents 73d0ef4 + 867dfcc commit e738188
Show file tree
Hide file tree
Showing 564 changed files with 23,060 additions and 50,188 deletions.
Binary file removed .DS_Store
Binary file not shown.
16 changes: 8 additions & 8 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
# editorconfig.org

root = true

[*]
insert_final_newline = true
indent_size = 2
indent_style = space
indent_size = 2
end_of_line = lf
charset = utf-8
trim_trailing_whitespace = true

[*.{md,yaml,yml,toml}]
indent_size = 4

[Makefile]
indent_style = tab
insert_final_newline = true
4 changes: 4 additions & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
assets/js/index.js
assets/js/katex.js
assets/js/vendor
node_modules
31 changes: 31 additions & 0 deletions .eslintrc.json
Original file line number Diff line number Diff line change
@@ -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"
}
]
}
}
61 changes: 27 additions & 34 deletions .github/workflows/cicheck.yml
Original file line number Diff line number Diff line change
@@ -1,41 +1,34 @@
name: CI
name: Hyas CI

# Controls when the action will run.
on:
push:
branches: master
pull_request:
branches: [ master ]
branches: master

jobs:
cicheck:
runs-on: ubuntu-latest
build:
runs-on: ${{ matrix.os }}

strategy:
matrix:
os: [ubuntu-latest]
node: [16.x]

# Steps represent a sequence of tasks that will be executed as part of the job
steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- name: Checkout
uses: actions/checkout@v2
with:
fetch-depth: 0 # No shallow clone, we need all history!
- name: Setup Python
uses: actions/setup-python@v2.2.2
# Runs a set of commands using the runners shell
- name: Install dependencies
run: |
sudo apt-get update -y
sudo apt-get install -y optipng jpegoptim jq
pip install bs4
pip install requests
pip install scour
- name: Run CI Checks
env:
GH_USERNAME: ${{ secrets.GH_USERNAME }}
GH_USER_EMAIL: ${{ secrets.GH_USER_EMAIL }}
GH_TOKEN: ${{ secrets.GH_TOKEN }}
GH_USER_ID: ${{ secrets.GH_USER_ID }}
LANGUAGETOOLS_API_KEY: ${{ secrets.LANGUAGETOOLS_API_KEY }}
LANGUAGETOOLS_USERNAME: ${{ secrets.LANGUAGETOOLS_USERNAME }}
PR_HEAD_REF: ${{ github.event.pull_request.head.ref }}
FIRST_COMMIT: ${{ github.event.pull_request.base.sha }}
LAST_COMMIT: ${{ github.event.after }}
PR_NUMBER: ${{ github.event.pull_request.number }}
run: bash ${{github.workspace}}/scripts/cicheck.sh
- name: Check out Hyas project
uses: actions/checkout@v2

- name: Set up Node.js ${{ matrix.node }}
uses: actions/setup-node@v2
with:
node-version: ${{ matrix.node }}

- name: Install dependencies
run: npm ci

- name: Run Hyas test script
run: npm test

- name: Build production website
run: npm run build
26 changes: 0 additions & 26 deletions .github/workflows/stale.yml

This file was deleted.

6 changes: 6 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,13 @@ node_modules/
public/
tmp/

/resources

# Generated source files
content/reference/pkg/*/
src/styles/constants.less
build

# OS generated files
.DS_Store
.DS_Store?
11 changes: 11 additions & 0 deletions .markdownlint-cli2.jsonc
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"config": {
"default": true,
"MD013": false,
"MD024": false,
"MD026": false,
"MD033": false,
"MD034": false
},
"ignores": ["node_modules", "CHANGELOG.md", "README.md"]
}
3 changes: 3 additions & 0 deletions .stylelintignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
assets/scss/components/_syntax.scss
assets/scss/vendor
node_modules
48 changes: 48 additions & 0 deletions .stylelintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
{
"extends": "stylelint-config-standard-scss",
"rules": {
"no-empty-source": null,
"string-quotes": "double",
"scss/comment-no-empty": null,
"max-line-length": null,
"scss/at-extend-no-missing-placeholder": null,
"scss/dollar-variable-colon-space-after": null,
"scss/dollar-variable-empty-line-before": null,
"color-function-notation": null,
"alpha-value-notation": null,
"selector-id-pattern": null,
"selector-class-pattern": null,
"scss/no-global-function-names": null,
"number-max-precision": null,
"hue-degree-notation": null,
"value-no-vendor-prefix": null,
"property-no-vendor-prefix": null,
"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"
]
}
]
}
}
3 changes: 3 additions & 0 deletions CODE_OF_CONDUCT.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# Contributor Code of Conduct

The `docs` libp2p project follows the [`IPFS Community Code of Conduct`](https://github.com/ipfs/community/blob/master/code-of-conduct.md)
2 changes: 0 additions & 2 deletions LICENSE
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,6 @@ The above copyright notice and this permission notice shall be included in all c

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.



=======================================================================

Other written documentation and content licensed under the Creative Commons Attribution License as follows:
Expand Down
76 changes: 0 additions & 76 deletions Makefile

This file was deleted.

Loading

0 comments on commit e738188

Please sign in to comment.