-
-
Notifications
You must be signed in to change notification settings - Fork 3.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add JSDoc to docs build environment #3069
Comments
This is odd since It doesn't look like jsdoc was removed from the Docker image, it is still being installed as per the commit by @adambrenecki: |
|
Any chance of getting the images out soon-ish? Can I help somehow? |
On Lorikeet, which uses JSDoc, I had a build that completed on Sept. 16, 2017. 9:18 p.m. (not sure which timezone, but it's not my local one); more recent builds have started failing again. So I guess the new image is being used for some builds but not all? |
Weird, another build passed, but then failed again: https://readthedocs.org/projects/remotestoragejs/builds/ |
@agjohnson Any chance you could update the images this week maybe? We're planning to publish a big new version of our library end of this or beginning of next week, which includes the switch to RST, JSDoc and Read the Docs... |
So, until today we had a ~50% chance of the builds passing, but now all of them are failing. It seems like the worker(s) that already used the new image are not in use anymore, or at least not used for our docs (I have no idea how that stuff is set up, so just my hunch from the outside). Here's what the history of https://readthedocs.org/projects/remotestoragejs/builds/ looks like: It'd be fantastic, if someone could finally update the images in production, so that we and other projects are able to build JavaScript API docs using sphinx-js (or JSDoc in some other way)! |
The images were updated this week. If you're projects aren't using the latest build image, that is the cause. I'm really not sure how jsdoc made it into our @skddc i've set the container image to the latest version for your project, see if that helps. |
Thanks! Unfortunately, that change seems to have broken the builds a bit more: https://readthedocs.org/projects/remotestoragejs/builds/6176840/ There's a "permission denied" for the first command already. |
Can you try wiping your build? I think this is a matter of the old environment persisting |
Yay, that worked! Thanks a lot! |
Hi. |
@crccheck noted above, you need access to our latest build image, the default image is not our latest image but the Note, as per the issue above as well, you'll need to wipe your build env first. |
Sorry, I got some followup questions:
Is that a project setting I have access to? I can't find anything that could do that besides changing Python versions. Is everyone that wants to use
Is "latest" newer or older than the 2.0 series? For example, a lot of Docker builds have their |
Nope, not yet. This will be user configurable at some point in the future.
We follow semantic versioning, our |
Using @agjohnson is there something you can do on your end? My project is: |
I confirmed that the 2.0 version of the Dockerfile does not contain the npm This is included in the latest Dockerfile however. Is there any way to specify which version of the Docker image to use? |
We're working on a method now! Having this user configurable probably makes a lot of sense for us. |
Never mind. I read the docs and found the bit about using a |
Hi all ! I have tried the solution by @jflory7 but it still fails when trying to execute jsdoc:
UPDATE, i had a typo in my YAML, silly me :D |
Hi, how does one do this with a v2 configuration file? Is jsdoc included with the nodejs plugin? Can the documentation be updated?
EDIT: It still works, you just need to use the "legacy build specification": https://docs.readthedocs.io/en/latest/config-file/v2.html#legacy-build-specification - see my .readthedocs.yml here: https://github.com/ReadAlongs/SoundSwallower/blob/master/.readthedocs.yml |
Hi @dhdaines. You should not use build:
os: ubuntu-22.04
tools:
python: "3.9"
nodejs: "16"
jobs:
post_install:
- npm install -g jsdoc You can see a full working example at https://test-builds.readthedocs.io/en/jsdoc/ Let me know if that works for you. |
Thank you @humitos ! Yes, it works great now. I did not know that I was able to install npm packages from the v2 config file... |
Also, I did not know that test-builds.readthedocs.io existed! Is it something that everyone can use to test their RTD configs? Is it documented somewhere? |
|
Details
Expected Result
Use sphinx-js extension to pull in JavaScript function references and documentation (not entirely expected, but it would be fantastic)
Actual Result
No jsdoc executable available, nor possible to install via PIP dependencies.
Explanation / Feature request
The recently launched sphinx-js extension is a great way to mix JSDoc source code docs with ReST documentation. It adds directives which are similar to the Python-specific
autodoc
ones. Here's a good introductory blog post by the Mozillian who created it:https://hacks.mozilla.org/2017/07/introducing-sphinx-js-a-better-way-to-document-large-javascript-projects/
Afaics, the "only" thing missing to get this working on Read the Docs would be to add the jsdoc program to the environment that is used to build docs on RtD. I believe this would be a great addition, which would enable all JavaScript developers to better document their code.
Disclaimer: the docs linked above are mostly stubs. We're in the process of releasing a new major version of our JS library, and only just started writing proper documentation for it.
The text was updated successfully, but these errors were encountered: