Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
113 changes: 33 additions & 80 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ jobs:
uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1
with:
name: docs-build
path: ./packages/docs/build
path: ./packages/docs/dist

get-lint-packages:
runs-on: ubuntu-latest
Expand Down Expand Up @@ -95,90 +95,43 @@ jobs:
- uses: ./.github/workflows/setup
- run: npm run lint

# docs-deploy:
# needs: [build, lint, test, monorepo-lint]
# runs-on: ubuntu-latest
# if: github.ref == 'refs/heads/main' && github.event_name != 'pull_request'
# steps:
# - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
# - uses: ./.github/workflows/setup

# - name: Retrieve the docs build directory
# uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.1
# with:
# name: docs-build
# path: ./packages/docs/build

# - name: Check if the "DOCS_SSH_PRIVATE_KEY" GitHub secret is set
# env:
# SECRET_CHECK: ${{ secrets.DOCS_SSH_PRIVATE_KEY }}
# if: ${{ env.SECRET_CHECK == '' }}
# run: |
# echo "Error: The GitHub secret of \"DOCS_SSH_PRIVATE_KEY\" is not set."
# exit 1

# - name: Check if the "TYPESENSE_API_KEY" GitHub secret is set
# env:
# SECRET_CHECK: ${{ secrets.TYPESENSE_API_KEY }}
# if: ${{ env.SECRET_CHECK == '' }}
# run: |
# echo "Error: The GitHub secret of \"TYPESENSE_API_KEY\" is not set."
# exit 1

# - name: Check if the "TYPESENSE_HOST" GitHub secret is set
# env:
# SECRET_CHECK: ${{ secrets.TYPESENSE_HOST }}
# if: ${{ env.SECRET_CHECK == '' }}
# run: |
# echo "Error: The GitHub secret of \"TYPESENSE_HOST\" is not set."
# exit 1

# - name: Check if the "TYPESENSE_PORT" GitHub secret is set
# env:
# SECRET_CHECK: ${{ secrets.TYPESENSE_PORT }}
# if: ${{ env.SECRET_CHECK == '' }}
# run: |
# echo "Error: The GitHub secret of \"TYPESENSE_PORT\" is not set."
# exit 1

# - name: Check if the "TYPESENSE_PROTOCOL" GitHub secret is set
# env:
# SECRET_CHECK: ${{ secrets.TYPESENSE_PROTOCOL }}
# if: ${{ env.SECRET_CHECK == '' }}
# run: |
# echo "Error: The GitHub secret of \"TYPESENSE_PROTOCOL\" is not set."
# exit 1

# - name: Checkout the docs repository
# uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
# with:
# ssh-key: ${{ secrets.DOCS_SSH_PRIVATE_KEY }}
# repository: IsaacScript/isaacscript.github.io
# ref: gh-pages
# # The current working directory is:
# # /home/runner/work/isaacscript/isaacscript
# # Thus, the following path is equivalent to:
# # /home/runner/work/isaacscript/isaacscript/isaacscript.github.io
# # (It is not possible to clone the repo in the parent directory for security reasons.)
# path: isaacscript.github.io
docs-deploy:
needs: [build, lint, test, monorepo-lint]
runs-on: ubuntu-latest
if: github.ref == 'refs/heads/main' && github.event_name != 'pull_request'
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- uses: ./.github/workflows/setup

# - name: Deploy the documentation website
# id: deploy_documentation_website
# run: npx tsx ./packages/docs/scripts/deploy.mts ${{ github.sha }}
- name: Retrieve the docs build directory
uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.1
with:
name: docs-build
path: ./packages/docs/dist

- name: Check if the "DOCS_SSH_PRIVATE_KEY" GitHub secret is set
env:
SECRET_CHECK: ${{ secrets.DOCS_SSH_PRIVATE_KEY }}
if: ${{ env.SECRET_CHECK == '' }}
run: |
echo "Error: The GitHub secret of \"DOCS_SSH_PRIVATE_KEY\" is not set."
exit 1

- name: Checkout the docs repository
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
ssh-key: ${{ secrets.DOCS_SSH_PRIVATE_KEY }}
repository: IsaacScript/isaacscript.github.io
ref: gh-pages
path: isaacscript.github.io

# - name: Run DocSearch Scraper
# uses: celsiusnarhwal/typesense-scraper@15f9049f1e4a868fc94e45948f86bd0ceed2f4b3 # v2.0.1
# if: steps.deploy_documentation_website.outputs.SHOULD_SCRAPE == '1'
# with:
# api-key: ${{ secrets.TYPESENSE_API_KEY }}
# host: ${{ secrets.TYPESENSE_HOST }}
# port: ${{ secrets.TYPESENSE_PORT }}
# protocol: ${{ secrets.TYPESENSE_PROTOCOL }}
# config: packages/docs/docsearch.config.json
- name: Deploy the documentation website
working-directory: ./packages/docs
run: npm run deploy

discord:
name: Discord Failure Notification
needs: [build, lint, test, monorepo-lint] # docs-deploy
needs: [build, lint, test, monorepo-lint, docs-deploy]
if: failure()
runs-on: ubuntu-latest
steps:
Expand Down
17 changes: 3 additions & 14 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -6,17 +6,9 @@
.DS_Store
thumbs.db

# Docusaurus artifacts
# https://github.com/facebook/docusaurus/blob/main/packages/create-docusaurus/templates/shared/gitignore
build
.docusaurus
.cache-loader

# Ignore the auto-generated API docs from TypeDoc (since it will just contain duplicate information
# from what is already in the JSDoc comments of the source code).
packages/docs/docs/eslint-config-isaacscript
packages/docs/docs/isaacscript-common
packages/docs/docs/isaac-typescript-definitions
# Astro artifacts and staged documentation
packages/docs/.astro
packages/docs/src/content/docs

# Temporary build files
packages/isaacscript-common/src/indexLua.ts
Expand Down Expand Up @@ -136,9 +128,6 @@ dist
# vitepress cache directory
**/.vitepress/cache

# Docusaurus cache and generated files
.docusaurus

# Serverless directories
.serverless/

Expand Down
4 changes: 1 addition & 3 deletions .markdownlintignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,4 @@
.markdownlintignore
node_modules
dist
packages/docs/docs/eslint-config-isaacscript
packages/docs/docs/isaacscript-common
packages/docs/docs/isaac-typescript-definitions
packages/docs/src/content/docs
11 changes: 3 additions & 8 deletions .prettierignore
Original file line number Diff line number Diff line change
Expand Up @@ -26,13 +26,8 @@ mod/resources/**/*.anm2
# Compiled plugins
packages/isaacscript-cli/plugins/*.cjs

# Docusaurus artifacts
.docusaurus
.cache-loader

# API docs are automatically created by TypeDoc.
packages/docs/docs/isaacscript-common
packages/docs/docs/isaac-typescript-definitions
packages/docs/docs/eslint-config-isaacscript
# Astro artifacts and staged documentation
packages/docs/.astro
packages/docs/src/content/docs

# @template-customization-end
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ Each project in the monorepo is contained within the "packages" directory.

| Name | Description | Version |
| ----------------------------------------------------------------------- | -------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------- |
| [docs](./packages/docs) | The Docusaurus website. | n/a |
| [docs](./packages/docs) | The documentation website. | n/a |
| [eslint-config-isaacscript](./packages/eslint-config-isaacscript) | A sharable ESLint config for IsaacScript projects. | [![npm version](https://img.shields.io/npm/v/eslint-config-isaacscript.svg)](https://www.npmjs.com/package/eslint-config-isaacscript) |
| [eslint-plugin-isaacscript](./packages/eslint-plugin-isaacscript) | An ESLint plugin that contains useful rules. | [![npm version](https://img.shields.io/npm/v/eslint-plugin-isaacscript.svg)](https://www.npmjs.com/package/eslint-plugin-isaacscript) |
| [isaac-lua-polyfill](./packages/isaac-lua-polyfill) | Polyfills for testing Isaac mods using TypeScript. | [![npm version](https://img.shields.io/npm/v/isaac-lua-polyfill.svg)](https://www.npmjs.com/package/isaac-lua-polyfill) |
Expand Down
10 changes: 5 additions & 5 deletions cspell.config.jsonc
Original file line number Diff line number Diff line change
Expand Up @@ -30,20 +30,20 @@
"mod/content/rooms/**",
"mod/resources/rooms/**",
// @template-customization-start
"**/.docusaurus/**",
"Node.gitignore",
"packages/docs/docs/isaacscript-common/**",
"packages/docs/docs/isaac-typescript-definitions/**",
"packages/docs/.astro/**",
"packages/docs/src/content/docs/**",
// @template-customization-end
],
"words": [
"celsiusnarhwal",
"extraconsolecommands",
"frontmatter",
"klaw",
"lualib",
"pagefind",
"pypi",
"pyproject",
"ssmacro",
"sublist",
"syncer",
"typedoc",
"typesense",
Expand Down
8 changes: 2 additions & 6 deletions knip.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,8 @@ const config = {
workspaces: {
"packages/*": {},
"packages/docs": {
ignore: [
"eslint.config.mjs",
"scripts/**",
"sidebars.ts",
"src/**/index.tsx",
],
entry: ["content/homepage.mdx", "scripts/**"],
ignore: ["eslint.config.mjs"],
},
"packages/eslint-plugin-isaacscript": {
ignore: [
Expand Down
Loading