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

Improve documentation regarding supported output formats #28

Merged
merged 12 commits into from
Jul 22, 2022

Conversation

bauglir
Copy link
Owner

@bauglir bauglir commented Jul 19, 2022

All this information is available either through docstrings and phrased differently, or through Kroki's website. Aggregating all the information in Julia's help system should make the package a bit easier to work with.

@bauglir bauglir added the documentation Improvements or additions to documentation label Jul 19, 2022
@bauglir bauglir self-assigned this Jul 19, 2022
@codecov
Copy link

codecov bot commented Jul 19, 2022

Codecov Report

Merging #28 (c92dd03) into development (a654355) will not change coverage.
The diff coverage is 100.00%.

@@              Coverage Diff              @@
##           development       #28   +/-   ##
=============================================
  Coverage       100.00%   100.00%           
=============================================
  Files                4         4           
  Lines              110       122   +12     
=============================================
+ Hits               110       122   +12     
Impacted Files Coverage Δ
src/kroki/string_literals.jl 100.00% <ø> (ø)
src/Kroki.jl 100.00% <100.00%> (ø)

Help us with your feedback. Take ten seconds to tell us how you rate us.

bauglir added 12 commits July 20, 2022 23:32
This was already included as a comment, but makes more sense to include
in the docstring. Especially as it is the intention to make the content
of this constant more visible to end-users.
This information was already included as a comment. However, this
information makes sense to surface to end-users as well. Especially
given that it ties in to the `SUPPORTED_TEXT_PLAIN_SHOW_MIME_TYPES`
configuration variable.
Although this information is also available on Kroki's website, it's
convenient to have the information as it is encoded in this library
readily available through Julia's help system.
…`text/plain` MIME types

Ths `LIMITED_DIAGRAM_SUPPORT` lists all the known `text/plain` MIME
types and links them to the diagram types that support that form of
rendering. `SUPPORTED_TEXT_PLAIN_SHOW_MIME_TYPES` only lists the MIME
types themselves.
…ypes in the docstring

This makes the information more readily available through Julia's help
system, instead of requiring people to look up the variable.
This declutters the main `runtests` file a bit and makes it easier to
test only this particular piece of functionality (and to ignore it while
testing other pieces of the package).
This declutters the main `runtests` file a bit and makes it easier to
test only this particular piece of functionality (and to ignore it while
testing other pieces of the package).
Instead of simply reusing the symbols used to track the different types
of diagrams, it is nicer if the documentation refers to the different
diagram types by their actual names.

The intention is to use this information elsewhere as well.
This metadata has more uses than just supporting the docstrings of the
string literals, e.g. in the `LIMITED_DIAGRAM_SUPPORT` table. Therefore
it makes sense to put it in a more centralized location and formalize
retrieval of the metadata more.
This uses friendlier names if they're available and ensures links to
documentation are easily accessible.
The information in this table is mostly a mirror of the information
available on Kroki's website, and the docstring of
`LIMITED_DIAGRAM_SUPPORT`. Having this information visible directly on
the landing page of the documentation provides a convenient reference
for anyone skimming the documentation.
This makes adding caveats, e.g. with regards to supported output
formats, easier by having one central location to document them before
referring to Kroki's website.
@bauglir bauglir force-pushed the improve-diagram-output-format-support-docstrings branch from 4d1da91 to c92dd03 Compare July 22, 2022 22:11
@bauglir bauglir marked this pull request as ready for review July 22, 2022 22:11
@bauglir bauglir merged commit 52a17d2 into development Jul 22, 2022
@bauglir bauglir deleted the improve-diagram-output-format-support-docstrings branch July 22, 2022 22:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant