pyodide / pyodide/sphinx-js

Recurse by default

Open
#16 3 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

enhancement
Dominant language
Python
Stars
290
Forks
80
PR merge metrics
No merged PRs in 30d

Description

It might be nice to find JS files deeper than at the root of the source directory. To so do, pass -r to jsdoc. However, that also searches within any node_modules dir, which is bad, because that's huge and irrelevant. We can exclude node_modules using a jsdoc config file.

Thus, the way to go about this is probably to include a jsdoc conf file inside sphinx-js and point to it. Set up the exclusion and say recurse:true within it.

People who want to provide their own jsdoc config files should start with a copy of ours and can control their own recursion preferences.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by locating where sphinx-js invokes JSDoc and where project configuration files are packaged or passed through. Add the shared JSDoc configuration with recursion enabled and node_modules excluded, then verify that nested JS files are found without traversing node_modules and that users can copy the configuration to override recursion.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript, python
Domain
documentation
Issue type
Feature
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.