Skip to content

Commit

Permalink
rebuild online manual
Browse files Browse the repository at this point in the history
  • Loading branch information
gagolews committed Jul 11, 2024
1 parent 766df58 commit 9eab8e5
Show file tree
Hide file tree
Showing 125 changed files with 4,322 additions and 1,631 deletions.
61 changes: 36 additions & 25 deletions .devel/roxygen2-patch.R
Original file line number Diff line number Diff line change
@@ -1,57 +1,66 @@
# Copyleft 2021-2022, Marek Gagolewski <https://www.gagolewski.com>
# Adding author and other metadata to every Rd file
# Copyleft (C) 2021-2024, Marek Gagolewski <https://www.gagolewski.com>
# Adding author and other metadata to every Rd file;
# There is one and only one official manual. Ad- and tracker-free.
# Enjoy the free internet.

library("roxygen2")

postprocess_contents <- function(contents)
{
stopifnot(is.character(contents), length(contents)==1, !is.na(contents))

author <- "\\href{https://www.gagolewski.com/}{Marek Gagolewski}\n"

seealso <- stringi::stri_paste(
"The official online manual of \\pkg{stringx} at ",
"\\url{https://stringx.gagolewski.com/}\n",
"\n"
)






if (!stringi::stri_detect_regex(
contents, "% Please edit documentation in R/.*\\\\name", dotall=TRUE)
contents, "% Please edit documentation in R/.*\\\\name", dotall=TRUE) # fixed comment generated by roxugen2
) return(contents)

if (!stringi::stri_detect_fixed(contents, "\\author")) {
contents <- stringi::stri_paste(contents,
"\\author{\n",
"\\href{https://www.gagolewski.com/}{Marek Gagolewski}\n",
author,
"}\n")
}

# There is one and only one official manual. Ad- and tracker-free.
# Enjoy the free internet.

if (!stringi::stri_detect_fixed(contents, "\\seealso{\n")) {
contents <- stringi::stri_paste(contents,
"\\seealso{\n",
"The official online manual of \\pkg{stringx} at ",
"\\url{https://stringx.gagolewski.com/}\n",
"}\n")
contents <- stringi::stri_paste(
contents,
stringi::stri_paste("\\seealso{\n", seealso, "}\n")
)
}
else {
contents <- stringi::stri_replace_first_fixed(contents, "\\seealso{\n",
stringi::stri_paste(
"\\seealso{\n",
"The official online manual of \\pkg{stringx} at ",
"\\url{https://stringx.gagolewski.com/}\n",
"\n"
))
contents <- stringi::stri_replace_first_fixed(
contents,
"\\seealso{\n",
stringi::stri_paste("\\seealso{\n", seealso)
)
}

contents
}

# ########################################################################### #

# taken from roxygen2 7.2.1 by Hadley Wickham et al.
write_if_different <- function (path, contents, href = NULL, check = TRUE)
# taken from roxygen2 7.3.2 by Hadley Wickham et al.
write_if_different <- function (path, contents, command=NULL, check=TRUE)
{
if (!file.exists(dirname(path))) {
dir.create(dirname(path), showWarnings = FALSE)
}
name <- basename(path)
if (check && !made_by_roxygen(path)) {
cli::cli_warn(c("Skipping {.path {name}}", x = "It already exists and was not generated by roxygen2."))
cli::cli_inform(c(x = "Skipping {.path {name}}", i = "It already exists and was not generated by roxygen2."))
return(FALSE)
}
line_ending <- detect_line_ending(path)
Expand All @@ -66,12 +75,14 @@ write_if_different <- function (path, contents, href = NULL, check = TRUE)


if (!str_detect(name, "^[a-zA-Z][a-zA-Z0-9_.-]*$")) {
cli::cli_warn(c("Skipping {.path {name}}", x = "Invalid file name"))
cli::cli_inform(c(x = "Skipping {.path {name}}", i = "Invalid file name"))
FALSE
}
else {
if (!is.null(href)) {
name <- cli::style_hyperlink(name, href)
if (!is.null(command)) {
scheme <- "x-r-run"
url <- paste0(scheme, ":", command)
name <- cli::style_hyperlink(name, url)
}
cli::cli_inform("Writing {.path {name}}")
writeBin(charToRaw(contents), path)
Expand Down
Binary file modified .devel/sphinx/__pycache__/alphamarek.cpython-311.pyc
Binary file not shown.
Binary file modified .devel/sphinx/_build/doctrees/environment.pickle
Binary file not shown.
Binary file modified .devel/sphinx/_build/doctrees/index.doctree
Binary file not shown.
Binary file modified .devel/sphinx/_build/doctrees/news.doctree
Binary file not shown.
Binary file modified .devel/sphinx/_build/doctrees/rapi.doctree
Binary file not shown.
Binary file modified .devel/sphinx/_build/doctrees/rapi/ISOdatetime.doctree
Binary file not shown.
Binary file modified .devel/sphinx/_build/doctrees/rapi/about_stringx.doctree
Binary file not shown.
Binary file modified .devel/sphinx/_build/doctrees/rapi/chartr.doctree
Binary file not shown.
Binary file modified .devel/sphinx/_build/doctrees/rapi/constants.doctree
Binary file not shown.
Binary file modified .devel/sphinx/_build/doctrees/rapi/gregexpr.doctree
Binary file not shown.
Binary file modified .devel/sphinx/_build/doctrees/rapi/gregextr.doctree
Binary file not shown.
Binary file modified .devel/sphinx/_build/doctrees/rapi/grepl.doctree
Binary file not shown.
Binary file modified .devel/sphinx/_build/doctrees/rapi/gsub.doctree
Binary file not shown.
Binary file modified .devel/sphinx/_build/doctrees/rapi/nchar.doctree
Binary file not shown.
Binary file modified .devel/sphinx/_build/doctrees/rapi/paste.doctree
Binary file not shown.
Binary file modified .devel/sphinx/_build/doctrees/rapi/sort.doctree
Binary file not shown.
Binary file modified .devel/sphinx/_build/doctrees/rapi/sprintf.doctree
Binary file not shown.
Binary file modified .devel/sphinx/_build/doctrees/rapi/startswith.doctree
Binary file not shown.
Binary file modified .devel/sphinx/_build/doctrees/rapi/strcoll.doctree
Binary file not shown.
Binary file modified .devel/sphinx/_build/doctrees/rapi/strptime.doctree
Binary file not shown.
Binary file modified .devel/sphinx/_build/doctrees/rapi/strrep.doctree
Binary file not shown.
Binary file modified .devel/sphinx/_build/doctrees/rapi/strsplit.doctree
Binary file not shown.
Binary file modified .devel/sphinx/_build/doctrees/rapi/strtrim.doctree
Binary file not shown.
Binary file modified .devel/sphinx/_build/doctrees/rapi/strwrap.doctree
Binary file not shown.
Binary file modified .devel/sphinx/_build/doctrees/rapi/substr.doctree
Binary file not shown.
Binary file modified .devel/sphinx/_build/doctrees/rapi/trimws.doctree
Binary file not shown.
2 changes: 1 addition & 1 deletion .devel/sphinx/_build/html/.buildinfo
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Sphinx build info version 1
# This file hashes the configuration used when building these files. When it is not found, a full rebuild will be done.
config: a016edc6993837609ca08b30be4c8592
config: d603e001b5ab45784ec34fbc9f471480
tags: 645f666f9bcd5a90fca523b33c5a78b7
2 changes: 1 addition & 1 deletion .devel/sphinx/_build/html/_static/basic.css
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
*
* Sphinx stylesheet -- basic theme.
*
* :copyright: Copyright 2007-2023 by the Sphinx team, see AUTHORS.
* :copyright: Copyright 2007-2024 by the Sphinx team, see AUTHORS.
* :license: BSD, see LICENSE for details.
*
*/
Expand Down
2 changes: 1 addition & 1 deletion .devel/sphinx/_build/html/_static/doctools.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
*
* Base JavaScript utilities for all Sphinx HTML documentation.
*
* :copyright: Copyright 2007-2023 by the Sphinx team, see AUTHORS.
* :copyright: Copyright 2007-2024 by the Sphinx team, see AUTHORS.
* :license: BSD, see LICENSE for details.
*
*/
Expand Down
4 changes: 2 additions & 2 deletions .devel/sphinx/_build/html/_static/language_data.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,15 +5,15 @@
* This script contains the language-specific data used by searchtools.js,
* namely the list of stopwords, stemmer, scorer and splitter.
*
* :copyright: Copyright 2007-2023 by the Sphinx team, see AUTHORS.
* :copyright: Copyright 2007-2024 by the Sphinx team, see AUTHORS.
* :license: BSD, see LICENSE for details.
*
*/

var stopwords = ["a", "and", "are", "as", "at", "be", "but", "by", "for", "if", "in", "into", "is", "it", "near", "no", "not", "of", "on", "or", "such", "that", "the", "their", "then", "there", "these", "they", "this", "to", "was", "will", "with"];


/* Non-minified version is copied as a separate JS file, is available */
/* Non-minified version is copied as a separate JS file, if available */

/**
* Porter Stemmer
Expand Down
12 changes: 6 additions & 6 deletions .devel/sphinx/_build/html/_static/pygments.css
Original file line number Diff line number Diff line change
Expand Up @@ -97,17 +97,17 @@ body[data-theme="dark"] .highlight .cp { color: #ff3a3a; font-weight: bold } /*
body[data-theme="dark"] .highlight .cpf { color: #ababab; font-style: italic } /* Comment.PreprocFile */
body[data-theme="dark"] .highlight .c1 { color: #ababab; font-style: italic } /* Comment.Single */
body[data-theme="dark"] .highlight .cs { color: #e50808; font-weight: bold; background-color: #520000 } /* Comment.Special */
body[data-theme="dark"] .highlight .gd { color: #d22323 } /* Generic.Deleted */
body[data-theme="dark"] .highlight .gd { color: #ff3a3a } /* Generic.Deleted */
body[data-theme="dark"] .highlight .ge { color: #d0d0d0; font-style: italic } /* Generic.Emph */
body[data-theme="dark"] .highlight .ges { color: #d0d0d0; font-weight: bold; font-style: italic } /* Generic.EmphStrong */
body[data-theme="dark"] .highlight .gr { color: #d22323 } /* Generic.Error */
body[data-theme="dark"] .highlight .gr { color: #ff3a3a } /* Generic.Error */
body[data-theme="dark"] .highlight .gh { color: #ffffff; font-weight: bold } /* Generic.Heading */
body[data-theme="dark"] .highlight .gi { color: #589819 } /* Generic.Inserted */
body[data-theme="dark"] .highlight .go { color: #cccccc } /* Generic.Output */
body[data-theme="dark"] .highlight .gp { color: #aaaaaa } /* Generic.Prompt */
body[data-theme="dark"] .highlight .gs { color: #d0d0d0; font-weight: bold } /* Generic.Strong */
body[data-theme="dark"] .highlight .gu { color: #ffffff; text-decoration: underline } /* Generic.Subheading */
body[data-theme="dark"] .highlight .gt { color: #d22323 } /* Generic.Traceback */
body[data-theme="dark"] .highlight .gt { color: #ff3a3a } /* Generic.Traceback */
body[data-theme="dark"] .highlight .kc { color: #6ebf26; font-weight: bold } /* Keyword.Constant */
body[data-theme="dark"] .highlight .kd { color: #6ebf26; font-weight: bold } /* Keyword.Declaration */
body[data-theme="dark"] .highlight .kn { color: #6ebf26; font-weight: bold } /* Keyword.Namespace */
Expand Down Expand Up @@ -183,17 +183,17 @@ body:not([data-theme="light"]) .highlight .cp { color: #ff3a3a; font-weight: bol
body:not([data-theme="light"]) .highlight .cpf { color: #ababab; font-style: italic } /* Comment.PreprocFile */
body:not([data-theme="light"]) .highlight .c1 { color: #ababab; font-style: italic } /* Comment.Single */
body:not([data-theme="light"]) .highlight .cs { color: #e50808; font-weight: bold; background-color: #520000 } /* Comment.Special */
body:not([data-theme="light"]) .highlight .gd { color: #d22323 } /* Generic.Deleted */
body:not([data-theme="light"]) .highlight .gd { color: #ff3a3a } /* Generic.Deleted */
body:not([data-theme="light"]) .highlight .ge { color: #d0d0d0; font-style: italic } /* Generic.Emph */
body:not([data-theme="light"]) .highlight .ges { color: #d0d0d0; font-weight: bold; font-style: italic } /* Generic.EmphStrong */
body:not([data-theme="light"]) .highlight .gr { color: #d22323 } /* Generic.Error */
body:not([data-theme="light"]) .highlight .gr { color: #ff3a3a } /* Generic.Error */
body:not([data-theme="light"]) .highlight .gh { color: #ffffff; font-weight: bold } /* Generic.Heading */
body:not([data-theme="light"]) .highlight .gi { color: #589819 } /* Generic.Inserted */
body:not([data-theme="light"]) .highlight .go { color: #cccccc } /* Generic.Output */
body:not([data-theme="light"]) .highlight .gp { color: #aaaaaa } /* Generic.Prompt */
body:not([data-theme="light"]) .highlight .gs { color: #d0d0d0; font-weight: bold } /* Generic.Strong */
body:not([data-theme="light"]) .highlight .gu { color: #ffffff; text-decoration: underline } /* Generic.Subheading */
body:not([data-theme="light"]) .highlight .gt { color: #d22323 } /* Generic.Traceback */
body:not([data-theme="light"]) .highlight .gt { color: #ff3a3a } /* Generic.Traceback */
body:not([data-theme="light"]) .highlight .kc { color: #6ebf26; font-weight: bold } /* Keyword.Constant */
body:not([data-theme="light"]) .highlight .kd { color: #6ebf26; font-weight: bold } /* Keyword.Declaration */
body:not([data-theme="light"]) .highlight .kn { color: #6ebf26; font-weight: bold } /* Keyword.Namespace */
Expand Down
2 changes: 1 addition & 1 deletion .devel/sphinx/_build/html/_static/scripts/furo.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion .devel/sphinx/_build/html/_static/scripts/furo.js.map

Large diffs are not rendered by default.

Loading

0 comments on commit 9eab8e5

Please sign in to comment.