Skip to content

Commit

Permalink
feat: migrate to docusaurus 2
Browse files Browse the repository at this point in the history
  • Loading branch information
PhilippHeuer committed Aug 14, 2022
1 parent 146fc10 commit d23ea89
Show file tree
Hide file tree
Showing 1,272 changed files with 13,686 additions and 4,960 deletions.
10 changes: 10 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
root = true

[*]
end_of_line = lf
insert_final_newline = true

[*.{js,json,yml}]
charset = utf-8
indent_style = space
indent_size = 2
28 changes: 10 additions & 18 deletions .github/workflows/gh-pages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,28 +8,20 @@ jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
with:
submodules: true # Fetch Hugo themes (true OR recursive)
fetch-depth: 0 # Fetch all history for .GitInfo and .Lastmod
fetch-depth: 0 # full history for contributor information
- name: Setup Node
uses: actions/setup-node@v1
uses: actions/setup-node@v3
with:
node-version: 12
- name: Setup Hugo
uses: peaceiris/actions-hugo@v2
with:
extended: true # important: required for generates css file from scss files
- name: Prepare to build
node-version: lts/*
- name: Build Docs
run: |
npm install -g npm@latest
npm install
- name: Build Page
run: hugo --minify
cd docs
yarn install
yarn build
- name: Deploy
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }} # or your own token to deploy pages
publish_dir: ./public


github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: docs/build
22 changes: 16 additions & 6 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,7 +1,17 @@
.vscode/
public/
/resources/
# docusaurus
.docusaurus
.cache-loader

# node
node_modules/
.idea/
*.iml
dist

# yarn
.yarn

# build
build/

# logs
npm-debug.log*
yarn-debug.log*
yarn-error.log*
4 changes: 2 additions & 2 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
MIT License

Copyright (c) 2020 Twitch4J
Copyright (c) 2022 Twitch4J

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand All @@ -18,4 +18,4 @@ 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.
SOFTWARE.
101 changes: 0 additions & 101 deletions assets/css/_codeblock.scss

This file was deleted.

Empty file removed assets/css/_dark.scss
Empty file.
201 changes: 0 additions & 201 deletions assets/css/_docs.scss

This file was deleted.

Loading

0 comments on commit d23ea89

Please sign in to comment.