Skip to content
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

Use MDX to add proper image captions in web and pdf documentation #1914

Merged
merged 3 commits into from
Apr 16, 2021

Conversation

cmdcolin
Copy link
Collaborator

This is a stub PR that tries to standardize how to make captions on figures in our docs

Currently it is assumed the line following a markdown image like ![](img/blah.png) is a caption, and this is actually hardcoded as an assumption in the PDF. There is also the suggestion to fill out alt text e.g. ![Alt text here](img/blah.png)

Currently the webpages don't even display captions that well, and since markdown has no real good concept of a caption, I propose using MDX for this

This PR begins this propagation

It appears to work well on the user guide and quickstart_gui for admin server, so I may continue to propagate it. Images will be moved from website/docs/img to website/static/img since I think it is required to be in static resources for use with mdx maybe https://docusaurus.io/docs/static-assets

@cmdcolin cmdcolin marked this pull request as draft April 16, 2021 20:47
@github-actions github-actions bot added the needs label triage Needs a label to show in changelog (breaking, enhancement, bug, documentation, or internal) label Apr 16, 2021
@codecov
Copy link

codecov bot commented Apr 16, 2021

Codecov Report

Merging #1914 (b64a16b) into main (9bd0dbe) will decrease coverage by 0.00%.
The diff coverage is n/a.

Impacted file tree graph

@@            Coverage Diff             @@
##             main    #1914      +/-   ##
==========================================
- Coverage   58.13%   58.12%   -0.01%     
==========================================
  Files         461      461              
  Lines       21488    21488              
  Branches     5102     5102              
==========================================
- Hits        12492    12490       -2     
- Misses       8685     8687       +2     
  Partials      311      311              
Impacted Files Coverage Δ
...inearGenomeView/components/RefNameAutocomplete.tsx 89.36% <0.00%> (-4.26%) ⬇️
packages/core/util/index.ts 81.28% <0.00%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 9bd0dbe...b64a16b. Read the comment docs.

@cmdcolin cmdcolin added documentation and removed needs label triage Needs a label to show in changelog (breaking, enhancement, bug, documentation, or internal) labels Apr 16, 2021
@cmdcolin cmdcolin changed the title Fix captions mdx Use MDX to add proper image captions in web and pdf documentation Apr 16, 2021
@cmdcolin
Copy link
Collaborator Author

I think this one is pretty solid...maybe I'll just go ahead and merge. Can revisit if needed

@cmdcolin cmdcolin marked this pull request as ready for review April 16, 2021 22:20
@cmdcolin cmdcolin merged commit 7b0e324 into main Apr 16, 2021
@cmdcolin cmdcolin deleted the fix_captions_mdx branch April 16, 2021 22:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant