Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
34 commits
Select commit Hold shift + click to select a range
4b0959e
Update custom-style.scss
UNLINEARITY Jan 7, 2026
87ebd40
style/filetree样式升级
UNLINEARITY Jan 7, 2026
60327de
style/修改侧边栏样式
UNLINEARITY Jan 7, 2026
e49e93a
Update sidebar.njk
UNLINEARITY Jan 7, 2026
914ccb4
style/修复侧边栏样式
UNLINEARITY Jan 7, 2026
8689e0b
Update sidebar.njk
UNLINEARITY Jan 7, 2026
0e995fa
Update filetree.njk
UNLINEARITY Jan 7, 2026
ccee599
Update filetree.njk
UNLINEARITY Jan 7, 2026
e630521
fix/修复侧边栏折叠逻辑
UNLINEARITY Jan 7, 2026
693af47
Published multiple files
UNLINEARITY Jan 24, 2026
baa61e9
feat: 完善侧边栏样式
UNLINEARITY Feb 25, 2026
bbaaab0
chore: introduce linting tools and modernize style system
UNLINEARITY Feb 25, 2026
929a822
style: refine UI spacing, sticky headers, TOC appearance and button s…
UNLINEARITY Feb 25, 2026
6a58ec2
Published multiple files
UNLINEARITY Feb 28, 2026
8fd3cc6
Delete content src/site/img/user/OCR/images/2---Overview-of-this-book…
UNLINEARITY Feb 28, 2026
1bab5d0
Delete content src/site/img/user/OCR/images/3---Chapter-1-Basic-Conce…
UNLINEARITY Feb 28, 2026
2c32727
Delete content src/site/img/user/OCR/images/3---Chapter-1-Basic-Conce…
UNLINEARITY Feb 28, 2026
dcf522c
Delete content src/site/img/user/OCR/images/3---Chapter-1-Basic-Conce…
UNLINEARITY Feb 28, 2026
50a7112
Delete content src/site/img/user/OCR/images/3---Chapter-1-Basic-Conce…
UNLINEARITY Feb 28, 2026
6046762
Delete content src/site/img/user/OCR/images/3---Chapter-1-Basic-Conce…
UNLINEARITY Feb 28, 2026
5cf4df3
Delete content src/site/img/user/OCR/images/3---Chapter-1-Basic-Conce…
UNLINEARITY Feb 28, 2026
bdd4cc2
Delete content src/site/img/user/OCR/images/3---Chapter-2-State-Value…
UNLINEARITY Feb 28, 2026
069e773
Delete content src/site/img/user/OCR/images/3---Chapter-2-State-Value…
UNLINEARITY Feb 28, 2026
2a0e45d
Delete content src/site/img/user/OCR/images/3---Chapter-2-State-Value…
UNLINEARITY Feb 28, 2026
0f36fce
Delete content src/site/img/user/OCR/images/3---Chapter-2-State-Value…
UNLINEARITY Feb 28, 2026
dd4659c
Delete content src/site/img/user/OCR/images/MR-tablet-v2_32_0.jpg
UNLINEARITY Feb 28, 2026
9ec3dd3
Delete content src/site/img/user/OCR/images/MR-tablet-v2_33_0.jpg
UNLINEARITY Feb 28, 2026
738945d
fix: resolve layout conflicts, centralize logo, and redesign toggle b…
UNLINEARITY Mar 8, 2026
3bc0fc8
style: refine sidebar visuals, search theme, and unify accent color
UNLINEARITY Mar 8, 2026
2f3aed0
style: revert to calmer base colors and refine link states
UNLINEARITY Mar 8, 2026
5368581
fix: fine-tune right toggle button and clear graph canvas on page switch
UNLINEARITY Mar 8, 2026
70d00b9
fix: improve local graph sizing, centering, and depth slider experience
UNLINEARITY Mar 8, 2026
5cc5ac8
fix: adjust filetree indentation and tighten left header spacing
UNLINEARITY Mar 9, 2026
0656fca
Merge pull request #535 from UNLINEARITY/test
UNLINEARITY Mar 9, 2026
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
408 changes: 204 additions & 204 deletions .eleventy.js

Large diffs are not rendered by default.

18 changes: 18 additions & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
# Dependencies
node_modules/

# Build output
dist/
build/

# Vendor files
src/site/vendor/

# Minified files
*.min.js

# Cache
.cache/

# Logs
*.log
31 changes: 31 additions & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
# Dependencies
node_modules/
package-lock.json
yarn.lock
pnpm-lock.yaml

# Build output
dist/
build/

# Vendor files
src/site/vendor/

# Cache
.cache/
*.log

# Environment
.env
.env.*

# Large media files
*.mp4
*.webm
*.mov
*.mp3
*.wav
*.flac
*.zip
*.tar.gz
*.rar
35 changes: 35 additions & 0 deletions .prettierrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
{
"semi": true,
"singleQuote": true,
"tabWidth": 2,
"useTabs": false,
"printWidth": 100,
"trailingComma": "es5",
"bracketSpacing": true,
"arrowParens": "avoid",
"endOfLine": "lf",
"quoteProps": "as-needed",
"proseWrap": "preserve",
"htmlWhitespaceSensitivity": "css",
"embeddedLanguageFormatting": "auto",
"overrides": [
{
"files": "*.json",
"options": {
"printWidth": 80
}
},
{
"files": "*.scss",
"options": {
"singleQuote": false
}
},
{
"files": "*.css",
"options": {
"singleQuote": false
}
}
]
}
35 changes: 35 additions & 0 deletions .stylelintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
{
"extends": ["stylelint-config-standard-scss"],
"plugins": ["stylelint-scss"],
"rules": {
"color-function-notation": null,
"alpha-value-notation": null,
"color-named": null,
"font-weight-notation": null,
"media-feature-range-notation": null,
"declaration-block-no-duplicate-properties": null,
"declaration-block-no-redundant-longhand-properties": null,
"declaration-block-no-shorthand-property-overrides": null,
"declaration-empty-line-before": null,
"comment-empty-line-before": null,
"scss/selector-no-redundant-nesting-selector": null,
"function-url-quotes": "always",
"length-zero-no-unit": true,
"shorthand-property-no-redundant-values": true,
"property-no-vendor-prefix": null,
"selector-class-pattern": null,
"selector-id-pattern": null,
"keyframes-name-pattern": null,
"custom-property-empty-line-before": null,
"scss/double-slash-comment-empty-line-before": null,
"comment-whitespace-inside": null,
"property-no-deprecated": null,
"no-duplicate-selectors": null
},
"ignoreFiles": [
"dist/**/*",
"node_modules/**/*",
"src/site/vendor/**/*",
"**/*.min.css"
]
}
99 changes: 99 additions & 0 deletions eslint.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,99 @@
const js = require('@eslint/js');
const globals = require('globals');
const prettier = require('eslint-config-prettier');

module.exports = [
js.configs.recommended,
prettier,
{
languageOptions: {
ecmaVersion: 2022,
sourceType: 'commonjs',
globals: {
...globals.node,
...globals.browser,
...globals.es2021,
},
},
rules: {
// 错误预防
'no-console': 'off',
'no-debugger': 'warn',
'no-unused-vars': ['warn', { argsIgnorePattern: '^_', varsIgnorePattern: '^_' }],
'no-undef': 'error',
'no-unreachable': 'error',
'no-dupe-keys': 'error',
'no-dupe-args': 'error',
'no-extra-semi': 'warn',
'no-func-assign': 'error',
'no-obj-calls': 'error',
'no-sparse-arrays': 'warn',
'valid-typeof': 'error',

// 最佳实践
'eqeqeq': ['warn', 'smart'],
'curly': ['warn', 'multi-line'],
'no-eval': 'error',
'no-implied-eval': 'error',
'no-new-func': 'error',
'no-return-assign': 'warn',
'no-script-url': 'error',
'no-self-compare': 'error',
'no-sequences': 'warn',
'no-throw-literal': 'warn',
'no-unused-expressions': 'off',
'no-useless-call': 'warn',
'no-useless-concat': 'warn',
'no-void': 'warn',
'wrap-iife': ['warn', 'inside'],

// 变量声明
'no-use-before-define': ['error', { functions: false, classes: true }],
'no-var': 'warn',
'prefer-const': 'warn',

// 代码风格 (由 Prettier 处理大部分)
'semi': ['warn', 'always'],
'quotes': ['warn', 'single', { avoidEscape: true, allowTemplateLiterals: true }],
'indent': 'off', // 由 Prettier 处理
'linebreak-style': 'off',

// Node.js 特定
'no-process-exit': 'off',
'no-sync': 'off',
},
},
{
// 浏览器脚本特定配置
files: ['src/site/scripts/**/*.js'],
languageOptions: {
globals: {
...globals.browser,
'mermaid': 'readonly',
'ForceGraph': 'readonly',
'lucide': 'readonly',
'Alpine': 'readonly',
'FlexSearch': 'readonly',
},
},
rules: {
'no-console': 'off',
},
},
{
// 测试文件和配置文件忽略某些规则
files: ['*.config.js', '*.config.mjs'],
rules: {
'no-console': 'off',
},
},
{
// 忽略的文件
ignores: [
'dist/**',
'node_modules/**',
'src/site/vendor/**',
'*.min.js',
],
},
];
Loading