Skip to content

Refactor api.data.ts: Add comments and improve code clarity - Added comments to explain the purpose and functionality of key functions. - Clarified the logic behind header parsing, slug generation, and file caching. - Documented the use of regular expressions for header cleaning and anchor extraction. - Improved readability and maintainability of the codebase. (#2410) #3112

Refactor api.data.ts: Add comments and improve code clarity - Added comments to explain the purpose and functionality of key functions. - Clarified the logic behind header parsing, slug generation, and file caching. - Documented the use of regular expressions for header cleaning and anchor extraction. - Improved readability and maintainability of the codebase. (#2410)

Refactor api.data.ts: Add comments and improve code clarity - Added comments to explain the purpose and functionality of key functions. - Clarified the logic behind header parsing, slug generation, and file caching. - Documented the use of regular expressions for header cleaning and anchor extraction. - Improved readability and maintainability of the codebase. (#2410) #3112

Workflow file for this run

name: textlint
on:
push:
branches:
- main
pull_request:
jobs:
textlint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: pnpm/action-setup@v4
- uses: actions/setup-node@v4
with:
node-version: 18
cache: 'pnpm'
- name: Install deps
run: pnpm install
- name: Run textlint
run: pnpm run lint
env:
CI: true