Skip to content

✨ Add a search bar to docs #3

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 20 commits into from
Mar 4, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
20 commits
Select commit Hold shift + click to select a range
1dc3278
✨ Add a search bar to docs
SnaveSutit Mar 3, 2025
8c94aaf
🚧 WIP general improvements
SnaveSutit Mar 4, 2025
36d6ea9
🐛 Local build is failing due to invalid config
SnaveSutit Mar 4, 2025
b2ebec7
🎨 Attempt to re-route page loading errors to /404
SnaveSutit Mar 4, 2025
e4b6c14
🎨 Clean up and improve home page, layout, and CSS.
SnaveSutit Mar 4, 2025
1c9f408
⚰️ Remove `/docs/home`.
SnaveSutit Mar 4, 2025
50dc991
✨ Add welcome page to `/docs`
SnaveSutit Mar 4, 2025
984ed92
🎨 Format getting started page
SnaveSutit Mar 4, 2025
b9253da
🐛 Add missing `Export Namespace` setting to blueprint settings docs
SnaveSutit Mar 4, 2025
7d03f21
🚚 Change path for `legacy-versions/installing-legacy-versions` to `le…
SnaveSutit Mar 4, 2025
813dfaa
🚚 Change path for `legacy-releases/index` to `legacy-releases/versions`
SnaveSutit Mar 4, 2025
7620a0d
📝 Add rig structure explanation to `rigs/overview`
SnaveSutit Mar 4, 2025
5e3774d
📝 Update some setting names in `the-blueprint-format/locators`
SnaveSutit Mar 4, 2025
a4c9eec
📝 Add modern examples to `rigs/controlling-a-rig-instance`
SnaveSutit Mar 4, 2025
55e4708
📝 Add missing tags to `rigs/tags`
SnaveSutit Mar 4, 2025
50912a2
📝 Add new questions and answers to `resources/faq`
SnaveSutit Mar 4, 2025
7b9e3d1
🚚 Move files around
SnaveSutit Mar 4, 2025
f18b622
📝 Add tutorial for rig stacking
SnaveSutit Mar 4, 2025
4c2fabc
🔧 Setup corepack in workflow
SnaveSutit Mar 4, 2025
693a29f
🔧 Setup workflow to include secrets in the build env
SnaveSutit Mar 4, 2025
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
20 changes: 11 additions & 9 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,20 +6,19 @@ jobs:
steps:
- uses: actions/checkout@v3

- name: Set Node Version to 18
- name: Set Node Version to 22
uses: actions/setup-node@v2
with:
node-version: '18'
node-version: '22'

- name: Enable Corepack
run: corepack enable

- name: Install Dependencies
uses: borales/actions-yarn@v4
with:
cmd: install
run: yarn install

- name: Build Production Bundle
uses: borales/actions-yarn@v4
with:
cmd: build
- name: Build
run: yarn build

- name: Push to Build Branch
if: github.ref == 'refs/heads/main'
Expand All @@ -30,3 +29,6 @@ jobs:
FOLDER: build # The directory where your assets are generated
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # GitHub will automatically add this - you don't need to bother getting a token
MESSAGE: 'Build: ({sha}) {msg}' # The commit message
# Env Secrets
PUBLIC_ALGOLIA_ID: ${{ secrets.PUBLIC_ALGOLIA_ID }}
PUBLIC_ALGOLIA_SEARCH_KEY: ${{ secrets.PUBLIC_ALGOLIA_SEARCH_KEY }}
40 changes: 36 additions & 4 deletions .prettierrc
Original file line number Diff line number Diff line change
@@ -1,9 +1,41 @@
{
"$schema": "http://json.schemastore.org/prettierrc",
"tabWidth": 4,
"useTabs": true,
"semi": false,
"singleQuote": true,
"trailingComma": "none",
"arrowParens": "avoid",
"printWidth": 100,
"plugins": ["prettier-plugin-svelte"],
"overrides": [{ "files": "*.svelte", "options": { "parser": "svelte" } }],
"semi": false
"trailingComma": "es5",
"bracketSameLine": false,
"endOfLine": "auto",
"overrides": [
{
"files": ["**/*.yml", "**/*.yaml"],
"options": {
"parser": "yaml",
"tabWidth": 2,
"useTabs": false
}
},
{
"files": "**/*.ts",
"options": {
"parser": "typescript"
}
},
{
"files": "**/*.svelte",
"options": {
"parser": "svelte",
"plugins": ["prettier-plugin-svelte"]
}
},
{
"files": "**/*.svg",
"options": {
"parser": "html"
}
}
]
}
Binary file added .yarn/install-state.gz
Binary file not shown.
1 change: 1 addition & 0 deletions .yarnrc.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
nodeLinker: node-modules
33 changes: 0 additions & 33 deletions eslint.config.js

This file was deleted.

266 changes: 266 additions & 0 deletions eslint.config.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,266 @@
import svelteEslint from 'eslint-plugin-svelte'
import svelteParser from 'svelte-eslint-parser'
import tsESLint, { type ConfigWithExtends } from 'typescript-eslint'
import svelteConfig from './svelte.config'
import type { NamingConventionRule } from './tslintNamingConventionRule'

console.log(`[${new Date().toLocaleTimeString()}] Loading ESLint config`)

const IGNORE_PATTERNS = [
'.DS_Store',
'.env',
'.env.*',
'.github',
'.vscode',
'**/node_modules/**',

// Blockbench Plugin Template
'dist/**/*',

// Ignore files for PNPM, NPM and YARN
'pnpm-lock.yaml',
'package-lock.json',
'yarn.lock'
]

const CUSTOM_RULES: ConfigWithExtends['rules'] = {
// ESLint
semi: ['error', 'never'],
'prefer-const': 'warn',
'no-fallthrough': 'off',
'no-mixed-spaces-and-tabs': 'off',
'no-unreachable': 'warn',
'@typescript-eslint/no-unused-vars': [
'warn',
{
vars: 'local',
args: 'after-used',
argsIgnorePattern: '^_',
ignoreRestSiblings: true
}
],
// Svelte
'svelte/html-quotes': ['warn', { prefer: 'double' }],
'svelte/block-lang': ['error', { script: ['ts', null], style: null }],
'svelte/comment-directive': ['error', { reportUnusedDisableDirectives: true }],
// Check File
'check-file/filename-naming-convention': [
'error',
{
'src/**/*.{ts.d.ts}': 'CAMEL_CASE',
'tools/**/*.{ts.d.ts}': 'CAMEL_CASE'
}
],
'check-file/folder-naming-convention': [
'error',
{
'src/**': 'KEBAB_CASE',
'tools/**': 'KEBAB_CASE'
}
],
// TypeScript
'@typescript-eslint/no-explicit-any': 'off',
'@typescript-eslint/no-floating-promises': ['error', { ignoreVoid: true }],
'@typescript-eslint/array-type': ['warn', { default: 'array-simple' }],
'@typescript-eslint/consistent-indexed-object-style': ['warn', 'record'],
'@typescript-eslint/consistent-generic-constructors': 'warn',
'@typescript-eslint/no-namespace': 'off',
'@typescript-eslint/restrict-template-expressions': 'off',
'@typescript-eslint/no-unsafe-member-access': 'off',
'@typescript-eslint/no-unsafe-assignment': 'off',
'@typescript-eslint/ban-ts-comment': 'off',
'@typescript-eslint/require-await': 'warn',
'@typescript-eslint/no-unsafe-call': 'off',
'@typescript-eslint/unbound-method': 'off',
'@typescript-eslint/no-non-null-assertion': 'off',
'@typescript-eslint/triple-slash-reference': 'off',
// Naming conventions
'@typescript-eslint/naming-convention': [
'warn',
{
// DFU Version imports
selector: ['import'],
modifiers: ['default'],
filter: {
regex: 'v\\d+_\\d+_\\d+$',
match: true
},
custom: {
match: true,
regex: 'v\\d+_\\d+_\\d+$'
},
format: null
},
{
selector: ['import'],
modifiers: ['default'],
format: ['camelCase', 'PascalCase', 'UPPER_CASE']
},
{
selector: 'class',
format: ['PascalCase']
},
{
selector: ['classProperty', 'classMethod'],
format: ['camelCase']
},
{
selector: ['classProperty', 'classMethod'],
leadingUnderscore: 'allow',
format: ['camelCase']
},
{
selector: ['classProperty', 'classMethod'],
modifiers: ['private'],
leadingUnderscore: 'allowDouble',
trailingUnderscore: 'allowDouble',
format: ['camelCase']
},
{
selector: 'typeProperty',
format: null
},
{
selector: 'variable',
modifiers: ['const', 'destructured'],
format: null
},
{
selector: 'variable',
modifiers: ['const', 'global'],
types: ['function'],
leadingUnderscore: 'allow',
format: ['UPPER_CASE', 'camelCase']
},
{
selector: 'variable',
modifiers: ['const', 'global'],
leadingUnderscore: 'allow',
format: ['UPPER_CASE']
},
{
selector: 'variable',
modifiers: ['const', 'exported'],
format: ['camelCase', 'UPPER_CASE']
},
{
selector: 'variableLike',
format: ['camelCase']
},
{ selector: 'interface', format: ['PascalCase'] },
{
selector: 'interface',
modifiers: ['exported'],
format: ['PascalCase'],
prefix: ['I']
},
{ selector: 'typeLike', format: ['PascalCase'] },
{ selector: 'objectLiteralProperty', format: null },
{ selector: 'default', format: ['camelCase'] },
{
selector: 'parameter',
modifiers: ['unused'],
format: ['camelCase'],
leadingUnderscore: 'allow'
},
{
selector: 'parameter',
format: ['camelCase']
},
{
selector: 'enumMember',
format: ['camelCase', 'PascalCase', 'UPPER_CASE']
},
{
selector: 'enum',
format: ['UPPER_CASE']
}
] satisfies NamingConventionRule
}

export default tsESLint.config(
{
ignores: IGNORE_PATTERNS
},
...tsESLint.configs.stylisticTypeChecked,
...svelteEslint.configs['flat/prettier'],
{
plugins: {
'@typescript-eslint': tsESLint.plugin,
svelte: svelteEslint
}
},
{
rules: CUSTOM_RULES
},
{
languageOptions: {
parser: tsESLint.parser,
parserOptions: {
project: './tsconfig.json',
extraFileExtensions: ['.svelte']
},
globals: {
browser: true,
node: true
}
}
},
{
files: ['**/*.svelte'],
rules: {
// Causes issues with Svelte and global types
'no-undef': 'off',
'@typescript-eslint/naming-convention': [
'warn',
{
selector: 'variable',
modifiers: ['exported'],
format: ['camelCase']
},
{
selector: 'variable',
modifiers: ['const', 'global'],
format: ['UPPER_CASE']
},
{
selector: 'variable',
modifiers: ['const', 'global'],
types: ['function'],
format: ['camelCase']
},
{
selector: 'variable',
format: ['camelCase'],
leadingUnderscore: 'allow'
}
] satisfies NamingConventionRule
},
languageOptions: {
parser: svelteParser,
parserOptions: {
parser: tsESLint.parser,
svelteConfig: svelteConfig,
extraFileExtensions: ['.svelte']
},
globals: {
browser: true,
node: true
}
},
settings: {
ignoreWarnings: ['svelte/a11y-no-onchange', 'a11y-no-onchange']
}
},
{
languageOptions: {
parserOptions: {
projectService: true,
tsconfigRootDir: '.'
}
},
linterOptions: {
reportUnusedDisableDirectives: true
}
}
)
Loading
Loading