-
Notifications
You must be signed in to change notification settings - Fork 28
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
Documentation: Improve the fields section of the Manifest reference document #308
Comments
thanks for the report! Looking at this. Something is definitely screwing up how the table gets generated. It looks like the fields are bolded twice: once by the |
Just checking, @melissawm are you looking into this? Also out of interest, would you be able to view the built docs in npe2 CI's? Would that be "docs render"? |
Yes, in theory. Start with Then you should be able to render the docs folder with jupyterbook ( I'm forgetting a step though (or it's broken). The toc doesn't seem to be picking things up properly. |
Thanks, just to confirm, you can only do this locally not in the CI ? |
I am, but here's my issue so far: Markdown doesn't accept a list syntax inside a table. The alternative would be to use html tags such as
This works, BUT: the manifest reference document is auto-generated from https://github.com/napari/npe2/blob/main/_docs/render.py, and from the quick investigation I did this creates documentation based on |
Ah that sounds complicated! |
I'm happy to send a pr to the schema.json file but I just want to confirm with one of the maintainers that this is the right approach - it is kinda tricky 😅 |
@melissawm I am super keen to get this fixed asap (even if we end up changing or simplifying docs rendering somehow down the track, which I'm very open to).
Is this something you can do, or do we need idk permissions or security tokens or something? If it's something you can do, please go ahead and do it and let me know what's needed from our end and I'll make sure we get it done. Agree that the rendering from the remote schema is a little unwieldy - I assume it's being done to make sure the docs match the released version, but this is a little hazy with the versioned |
For info, when I made a change in #310, I note that this change is not reflected in dev: https://napari.org/dev/plugins/building_a_plugin/guides.html#widgets (though dev docs are different from stable). Are npe2 releases co-ordinated with napari releases? if not this makes 'dev' and 'stable' a bit tricky. |
Looks like we npe2 version will always be latest released version. |
sounds like a good idea. This might be a good issue for napari/docs? |
I think it needs to be a fix in both the docs and napari repo workflows. |
Just gonna leave this here... napari/napari#6049 😂 @melissawm could you summarise what the build workflow for this table is? I am lost from reading the discussion above. It sounds like:
Is that right? Because if so then I guess it doesn't hurt to use the HTML table syntax instead of markdown? |
Long story short: the PR above fixes this, but then a new schema.json file needs to be generated and uploaded to https://github.com/napari/npe2/releases/latest/download/schema.json |
The schema.json file at https://github.com/napari/npe2/releases/latest/download/schema.json also needs to be updated after this PR is merged. Fixes #308 (not the bold part though, that will only be fixed with the new theme) Co-authored-by: Nathan Clack <[email protected]>
The manifest reference fields section isn't displaying correctly at https://napari.org/dev/plugins/technical_references/manifest.html#fields for two reasons:
icon
should have the three list items below it as part of that table entry. I guess the indentation is off, because the table does not display properly.The text was updated successfully, but these errors were encountered: