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

Add Diagram constructors to the public API explicitly #13

Merged
merged 3 commits into from
Jul 12, 2022

Conversation

bauglir
Copy link
Owner

@bauglir bauglir commented Jul 12, 2022

#12 duplicated the docstrings for the Diagram constructors in the docstring of the Diagram type. Instead, the methods should have been explicitly added to the API documentation to include their docstrings directly without duplication.

This ensures the docstring attached to the constructor can be included
in the documentation. This constructor mostly exists to provide a more
straightforward API that specifies the `type` first and the
`specification` second, to accomodate for the order of the fields in the
`Diagram` type. But both orders are technically okay.
Instead of duplicating the docstrings and signatures for the
constructors of the `Diagram` type in its docstring, the constructors
should be added to the API themselves.
@bauglir bauglir added the documentation Improvements or additions to documentation label Jul 12, 2022
@bauglir bauglir self-assigned this Jul 12, 2022
@codecov
Copy link

codecov bot commented Jul 12, 2022

Codecov Report

Merging #13 (9578ce3) into development (7a6c022) will not change coverage.
The diff coverage is 100.00%.

@@              Coverage Diff              @@
##           development       #13   +/-   ##
=============================================
  Coverage       100.00%   100.00%           
=============================================
  Files                2         2           
  Lines               91        92    +1     
=============================================
+ Hits                91        92    +1     
Impacted Files Coverage Δ
src/Kroki.jl 100.00% <100.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 7a6c022...9578ce3. Read the comment docs.

@bauglir bauglir enabled auto-merge July 12, 2022 08:04
@bauglir bauglir merged commit 566fdee into development Jul 12, 2022
@bauglir bauglir deleted the deduplicate-diagram-constructor-docstrings branch July 12, 2022 08:05
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