-
Notifications
You must be signed in to change notification settings - Fork 23
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
37 additions
and
42 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
35 changes: 35 additions & 0 deletions
35
docs/src/docs_best_practices/how-to/requirements_checklist.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
# Complete Basic Requirements Checklist | ||
|
||
Sienna packages should follow the [Diataxis](https://diataxis.fr/) | ||
framework, be strictly compiled with [`Documenter.jl`](https://documenter.juliadocs.org/stable/) | ||
v1.0 or greater, and be automatically formatted with | ||
[`JuliaFormatter.jl`](https://domluna.github.io/JuliaFormatter.jl/stable/). | ||
|
||
## For New Packages | ||
|
||
The [`SiennaTemplate.jl`](https://github.com/NREL-Sienna/SiennaTemplate.jl) Git repo has the | ||
required environments and formatting and documentation code. Start from this template. | ||
|
||
## For Existing Packages | ||
|
||
Existing Sienna packages will need to be updated with these requirements, but these will | ||
only need to be addressed once: | ||
|
||
1. Organize the top-level documentation to follow the [Diataxis](https://diataxis.fr/) | ||
framework (plus a welcome page/section). This might be a significant undertaking. See: | ||
- How to [Write a How-to Guide](@ref) | ||
- How to [Write a Tutorial](@ref) | ||
- How to [Organize APIs and Write Docstrings](@ref) | ||
1. Replace `compat` requirements of `Documenter = "0.27"` in `docs/` environment with | ||
`Documenter = "1.0"` | ||
1. Update the `docs/make.jl` file to call | ||
[`Documenter.makedocs`](https://documenter.juliadocs.org/stable/lib/public/#Documenter.makedocs) | ||
*without* the `warnonly` `kwarg` (i.e., all errors caught by `makedocs` must be resolved before | ||
merging). [See an example here](https://github.com/NREL-Sienna/InfrastructureSystems.jl/blob/768438a40c46767560891ec493cf87ed232a2b2b/docs/make.jl#L47). | ||
- See How-to [Troubleshoot Common Errors](@ref) if this results in a host of errors. | ||
1. Update the `scripts/formatter/formatter_code.jl` to format the markdown .md files in the | ||
`docs/` folder, calling `format`() with the `kwarg` `format_markdown = true`. See | ||
[these](https://github.com/NREL-Sienna/InfrastructureSystems.jl/blob/768438a40c46767560891ec493cf87ed232a2b2b/scripts/formatter/formatter_code.jl#L13) | ||
[three](https://github.com/NREL-Sienna/InfrastructureSystems.jl/blob/768438a40c46767560891ec493cf87ed232a2b2b/scripts/formatter/formatter_code.jl#L8) | ||
[links](https://github.com/NREL-Sienna/InfrastructureSystems.jl/blob/768438a40c46767560891ec493cf87ed232a2b2b/scripts/formatter/formatter_code.jl#L23) | ||
for examples of the updated lines. |
40 changes: 0 additions & 40 deletions
40
docs/src/docs_best_practices/reference/requirements_checklist.md
This file was deleted.
Oops, something went wrong.