No documentation was found for object "SomeClass" or any path ending with that.
Nobody has claimed this yet.
- Dominant language
- Python
- Stars
- 290
- Forks
- 80
- PR merge metrics
- No merged PRs in 30d
Description
I'm trying to setup sphinx_js but I keep receiving this error:
~/test_sphinx_js$ sphinx-build -b html docs/source/ docs/build/html/
Running Sphinx v4.4.0
building [mo]: targets for 0 po files that are out of date
building [html]: targets for 1 source files that are out of date
updating environment: [new config] 1 added, 0 changed, 0 removed
reading sources... [100%] index
Sphinx error:
No documentation was found for object "SomeClass" or any path ending with that.
this is my test project structure:
.
├── docs
│ ├── build
│ │ └── html
│ ├── make.bat
│ ├── Makefile
│ └── source
│ ├── conf.py
│ ├── index.rst
│ ├── _static
│ └── _templates
└── src
└── SomeClass.js
and these are the relevant settings and code:
conf.py
[...]
extensions = ['sphinx_js']
js_source_path = '../../src'
primary_domain = 'js'
[...]
index.rst:
Welcome to SomeDocs's documentation!
====================================
.. toctree::
:maxdepth: 2
:caption: Contents:
Indices and tables
==================
* :ref:`genindex`
* :ref:`modindex`
* :ref:`search`
.. js:autoclass:: SomeClass
SomeClass.js:
/** Class representing something. */
export default class SomeClass {
/**
* Create class.
* @param {string} name - The name of the object.
* @param {string} type - The type of object.
*/
constructor(name, type) {
this.name = name;
this.type = type;
}
}
I must be missing something obvious but I can't wrap my head around it
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Reproduce the reported sphinx-build command using docs/source/conf.py, docs/source/index.rst, and src/SomeClass.js, then trace how sphinx_js uses js_source_path and resolves the js:autoclass target. Done means determining why SomeClass is not found and documenting or fixing the behavior so this example builds successfully.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript, python
- Domain
- documentation, tooling
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 30/100