Skip to content

Commit 391cc3d

Browse files
New docs site
1 parent 14e1537 commit 391cc3d

File tree

321 files changed

+7334
-13960
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

321 files changed

+7334
-13960
lines changed

.github/workflows/deploy.yml

Lines changed: 55 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -1,39 +1,63 @@
1-
name: Deploy Documentation
1+
name: Deploy to Pages
22

33
on:
44
push:
55
branches:
66
- 2.x
7-
7+
workflow_dispatch:
8+
permissions:
9+
contents: read
10+
pages: write
11+
id-token: write
12+
concurrency:
13+
group: "pages"
14+
cancel-in-progress: false
15+
defaults:
16+
run:
17+
shell: bash
818
jobs:
9-
deploy:
19+
build:
1020
runs-on: ubuntu-latest
11-
21+
env:
22+
HUGO_VERSION: 0.126.0
1223
steps:
13-
- name: Checkout source
14-
uses: actions/checkout@v4
15-
with:
16-
submodules: recursive
17-
fetch-depth: 0
18-
19-
- name: Setup Hugo
20-
uses: peaceiris/actions-hugo@v3
21-
with:
22-
hugo-version: 'latest'
23-
extended: true
24-
25-
- name: Build Hugo site
26-
run: |
27-
cd docs
28-
hugo --minify
29-
30-
- name: Deploy to GitHub Pages
31-
uses: peaceiris/actions-gh-pages@v4
32-
with:
33-
personal_token: ${{ secrets.DEPLOY_TOKEN }}
34-
external_repository: backslashphp/backslashphp.github.io
35-
publish_branch: main
36-
publish_dir: ./docs/public
37-
cname: backslashphp.github.io
38-
user_name: 'github-actions[bot]'
39-
user_email: 'github-actions[bot]@users.noreply.github.com'
24+
- name: Install Hugo CLI
25+
run: |
26+
wget -O ${{ runner.temp }}/hugo.deb https://github.com/gohugoio/hugo/releases/download/v${HUGO_VERSION}/hugo_extended_${HUGO_VERSION}_linux-amd64.deb \
27+
&& sudo dpkg -i ${{ runner.temp }}/hugo.deb
28+
- name: Install Dart Sass
29+
run: sudo snap install dart-sass
30+
- name: Checkout
31+
uses: actions/checkout@v4
32+
with:
33+
submodules: recursive
34+
fetch-depth: 0
35+
- name: Setup Node.js
36+
uses: actions/setup-node@v4
37+
with:
38+
node-version: '20'
39+
cache: 'npm'
40+
- name: Setup Pages
41+
id: pages
42+
uses: actions/configure-pages@v4
43+
- name: Install dependencies
44+
run: "[[ -f package-lock.json || -f npm-shrinkwrap.json ]] && npm ci || true"
45+
- name: Build production website
46+
env:
47+
HUGO_ENVIRONMENT: production
48+
HUGO_ENV: production
49+
TZ: America/Toronto
50+
run: |
51+
npm run build \
52+
-- \
53+
--baseURL "${{ steps.pages.outputs.base_url }}/"
54+
- name: Copy to backslashphp/backslashphp.github.io
55+
uses: peaceiris/actions-gh-pages@v4
56+
with:
57+
personal_token: ${{ secrets.DEPLOY_TOKEN }}
58+
external_repository: backslashphp/backslashphp.github.io
59+
publish_branch: main
60+
publish_dir: ./docs/public
61+
cname: backslashphp.github.io
62+
user_name: 'github-actions[bot]'
63+
user_email: 'github-actions[bot]@users.noreply.github.com'

docs/.gitignore

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1-
/public/
2-
/resources/
1+
.env
2+
.netlify
33
.hugo_build.lock
4+
node_modules
5+
public
6+
resources

docs/.gitmodules

Lines changed: 0 additions & 3 deletions
This file was deleted.

docs/.npmignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
!.npmrc
2+
!.gitignore

docs/.npmrc

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
enable-pre-post-scripts=true
2+
auto-install-peers=true
3+
node-linker=hoisted
4+
prefer-symlinked-executables=false

docs/.prettierignore

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
*.html
2+
*.ico
3+
*.png
4+
*.jp*g
5+
*.toml
6+
*.*ignore
7+
*.svg
8+
*.xml
9+
LICENSE
10+
.npmrc
11+
.gitkeep
12+
*.woff*

docs/.prettierrc.yaml

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
# Default config
2+
tabWidth: 4
3+
endOfLine: crlf
4+
singleQuote: true
5+
printWidth: 100000
6+
trailingComma: none
7+
bracketSameLine: true
8+
quoteProps: consistent
9+
experimentalTernaries: true
10+
11+
# Overrided config
12+
overrides:
13+
- files: ["*.md", "*.json", "*.yaml"]
14+
options:
15+
tabWidth: 2
16+
singleQuote: false
17+
- files: ["*.scss"]
18+
options:
19+
singleQuote: false

docs/LICENSE

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
MIT License
2+
3+
Copyright (c) 2020-2025 Thulite
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy
6+
of this software and associated documentation files (the "Software"), to deal
7+
in the Software without restriction, including without limitation the rights
8+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
copies of the Software, and to permit persons to whom the Software is
10+
furnished to do so, subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in all
13+
copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21+
SOFTWARE.

docs/assets/favicon.png

5.82 KB
Loading

docs/assets/favicon.svg

Lines changed: 39 additions & 0 deletions
Loading

0 commit comments

Comments
 (0)