-
-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Before now, documentation build errors would only be caught when testing manually or PRing a new version of StyledStrings.jl to the main Julia repo. To address this, a new CI task is introduced, and a few small changes made to make automated docs builds possible, namely: - Tweaking the documentation workflow - Introducing some docs build scripts under docs/ - Fixing a dodgy jldoctest We also add a documentation page for the internals.
- Loading branch information
Showing
8 changed files
with
65 additions
and
14 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
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 |
---|---|---|
@@ -1,5 +1,5 @@ | ||
*.jl.*.cov | ||
*.jl.cov | ||
*.jl.mem | ||
/Manifest.toml | ||
**/Manifest.toml | ||
/docs/build/ |
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,2 @@ | ||
all: | ||
julia --color=yes make.jl |
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,3 @@ | ||
[deps] | ||
Documenter = "e30172f5-a6a5-5a46-863b-614d45cd2de4" | ||
StyledStrings = "f489334b-da3d-4c2e-b8f0-e476e12c162b" |
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,19 @@ | ||
using StyledStrings | ||
using Documenter | ||
|
||
DocMeta.setdocmeta!(StyledStrings, :DocTestSetup, :(using StyledStrings); recursive=true) | ||
|
||
makedocs(; | ||
modules = [StyledStrings], | ||
sitename = "Styled Strings", | ||
authors = "tecosaur <[email protected]> and contributors", | ||
repo = "https://github.com/JuliaLang/StyledStrings.jl/blob/{commit}{path}#{line}", | ||
format = Documenter.HTML(), | ||
pages = [ | ||
"StyledStrings" => "index.md", | ||
"Internals" => "internals.md", | ||
], | ||
warnonly = [:cross_references], | ||
) | ||
|
||
deploydocs(repo="github.com/JuliaLang/StyledStrings.jl") |
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
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,27 @@ | ||
# Internals | ||
|
||
Everything documented in this page is internal and subject to breaking changes, | ||
even in minor version updates of Julia or StyledStrings.jl. If you are curious | ||
about the internals, read on, but if you want to depend on them, please consider | ||
opening a pull request or issue to discuss making them part of the public API. | ||
|
||
```@docs | ||
StyledStrings.ANSI_4BIT_COLORS | ||
StyledStrings.FACES | ||
StyledStrings.HTML_BASIC_COLORS | ||
StyledStrings.Legacy.ANSI_256_COLORS | ||
StyledStrings.Legacy.RENAMED_COLORS | ||
StyledStrings.Legacy.legacy_color | ||
StyledStrings.Legacy.load_env_colors! | ||
StyledStrings.ansi_4bit_color_code | ||
StyledStrings.eachregion | ||
StyledStrings.face! | ||
StyledStrings.getface | ||
StyledStrings.loadface! | ||
StyledStrings.loaduserfaces! | ||
StyledStrings.resetfaces! | ||
StyledStrings.termcolor | ||
StyledStrings.termcolor24bit | ||
StyledStrings.termcolor8bit | ||
StyledStrings.withfaces | ||
``` |
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