Skip to content

Commit

Permalink
Rewrite docs linter
Browse files Browse the repository at this point in the history
1. I want to set the stage to deal with MithrilJS#2898 properly.
2. `request` was deprecated years ago. Decided that it's better to just
   move to native Node.js APIs in its place.
3. `glob` was outdated, and it's easier to just toss it than to upgrade
   across a major version.
4. I switched to using Marked's "lexer" directly so I'm not fussing
   with the complexity of renderers. This of course necessitated a more
   complex file processor as its "lexer" is really an AST parser.

I also decided to go a few steps further:
- Drop the cache to simplify everything. I might reverse this later,
  but just caching URLs per-page should be enough to prevent the world
  from crashing down.
- Drop some more dependencies, so I don't have to come back to this
  later nearly as quickly.
- Upgrade to a more modern language version in the scripts.
- Update Marked. It was super outdated.
- Add line and column numbers to the warnings. That took quite a bit of
  work, thanks to a missing Marked feature plus a bug in Marked.
  • Loading branch information
dead-claudia committed Sep 2, 2024
1 parent 7b819f3 commit 053a9d7
Show file tree
Hide file tree
Showing 15 changed files with 1,200 additions and 1,154 deletions.
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
/.vscode
/.DS_Store
/.eslintcache
/.lint-docs-cache

# These are artifacts from various scripts
/dist
Expand Down
Loading

0 comments on commit 053a9d7

Please sign in to comment.