Skip to content

Commit 8b2e1bc

Browse files
committed
update ci/fixup linting
1 parent 5a65103 commit 8b2e1bc

File tree

7 files changed

+26
-16
lines changed

7 files changed

+26
-16
lines changed

.github/workflows/jekyll.yml

Lines changed: 20 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,10 @@ on:
1313

1414
# Allows you to run this workflow manually from the Actions tab
1515
workflow_dispatch:
16+
# inputs:
17+
# skip-htmlproofer:
18+
# description: 'Skips running htmlproofer'
19+
# type: boolean
1620

1721
pull_request:
1822

@@ -36,6 +40,11 @@ jobs:
3640
- name: Checkout
3741
uses: actions/checkout@v4
3842

43+
- name: Setup Python
44+
uses: actions/setup-python@v5
45+
with:
46+
python-version: '3.13'
47+
3948
- name: Setup Ruby
4049
uses: ruby/setup-ruby@8575951200e472d5f2d95c625da0c7bec8217c42 # v1.161.0
4150
with:
@@ -48,22 +57,22 @@ jobs:
4857
uses: actions/configure-pages@v5
4958

5059
- name: Build with Jekyll
51-
# Outputs to the './_site' directory by default
52-
run: bundle exec jekyll build --baseurl "${{ steps.pages.outputs.base_path }}"
60+
run: ./_jekyll.py merge
5361
env:
5462
JEKYLL_ENV: production
5563

56-
- name: Run HTMLProofer
57-
run: |
58-
base_path="${{ steps.pages.outputs.base_path }}"
59-
base_url="${{ steps.pages.outputs.base_url }}"
60-
61-
bundle exec htmlproofer _site --swap-urls "^$base_path/:/,^${base_url/:/\\:}/:/" --ignore-files "/_site\\/mods/"
64+
# - name: Run HTMLProofer
65+
# if: ${{ !inputs.skip-htmlproofer }}
66+
# run: >
67+
# bundle exec htmlproofer _merged_site
68+
# --ignore-files "/_merged_site\\/(oak|willow2)-mod-db\\/mods/"
69+
# --swap-urls "https\://bl-sdk.github.io/:/"
6270

6371
- name: Upload artifact
64-
if: github.ref == 'refs/heads/master' && github.repository == 'bl-sdk/willow2-mod-db'
65-
# Automatically uploads an artifact from the './_site' directory by default
72+
if: github.ref == 'refs/heads/master' && github.repository == 'bl-sdk/bl-sdk.github.io'
6673
uses: actions/upload-pages-artifact@v3
74+
with:
75+
path: _merged_site/
6776

6877
spelling:
6978
runs-on: ubuntu-latest
@@ -81,7 +90,7 @@ jobs:
8190
name: github-pages
8291
url: ${{ steps.deployment.outputs.page_url }}
8392
runs-on: ubuntu-latest
84-
if: github.ref == 'refs/heads/master' && github.repository == 'bl-sdk/willow2-mod-db'
93+
if: github.ref == 'refs/heads/master' && github.repository == 'bl-sdk/bl-sdk.github.io'
8594

8695
needs:
8796
- build

.typos.toml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
[files]
22
extend-exclude = [
3-
"_mods/"
3+
"_oak_mods/",
4+
"_willow2_mods/",
45
]

Readme.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ bundle exec jekyll serve
66
```
77

88
However, as you'll notice this only builds the dev docs. The final site actually consists of three
9-
seperate jekyll projects, with one set of interwoven source files, the developer docs being the
9+
separate jekyll projects, with one set of interwoven source files, the developer docs being the
1010
default. You can build the others by appending an extra config file:
1111

1212
```sh

_config.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ nav_external_links:
7373
- title: BL2/TPS/AoDK Mods
7474
url: willow2-mod-db/
7575
- title: BL3/WL Mods
76-
url: oak-mods-db/
76+
url: oak-mod-db/
7777
- title: Modding Support Discord
7878
url: https://discord.gg/bXeqV8Ef9R
7979
- title: SDK Developer Discord

_jekyll.py

100644100755
File mode changed.

developing/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ To add your mod, you'll need to add a markdown file to either the `_oak_mods` or
122122
folders in [this site's repo](https://github.com/bl-sdk/bl-sdk.github.io).
123123

124124
### Simplest Configuration
125-
The simplest possibile file is the following. Make sure the url points at an auto-updating link,
125+
The simplest possible file is the following. Make sure the url points at an auto-updating link,
126126
instead of a specific commit.
127127

128128
```md

willow2-mod-db/faq/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ To fix this, simply copy the inner folder and move it up a level. To avoid runni
4646
future, always drag the folder directly out of the zip file.
4747

4848
## Why do some SDK mods disable when I restart the game, when others stay enabled?
49-
In legacy mods, the mod author had to explictly turn on auto-enabling. It may simply never have been
49+
In legacy mods, the mod author had to explicitly turn on auto-enabling. It may simply never have been
5050
updated to turn it on.
5151

5252
In modern mods, auto-enabling is on by default, so if a mod doesn't auto-enable, the author must

0 commit comments

Comments
 (0)