-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #22 from fbenke-pik/master
Add support for extrapage attribute
- Loading branch information
Showing
23 changed files
with
623 additions
and
264 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
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 |
---|---|---|
|
@@ -2,8 +2,8 @@ cff-version: 1.2.0 | |
message: If you use this software, please cite it using the metadata from this file. | ||
type: software | ||
title: 'goxygen: In-Code Documentation for ''GAMS''' | ||
version: 1.3.3 | ||
date-released: '2023-08-09' | ||
version: 1.4.0 | ||
date-released: '2023-11-23' | ||
abstract: A collection of tools which extract a model documentation from 'GAMS' code | ||
and comments. In order to use the package you need to install 'pandoc' and 'pandoc-citeproc' | ||
first (<https://pandoc.org/>). | ||
|
@@ -20,6 +20,9 @@ authors: | |
- family-names: Baumstark | ||
given-names: Lavinia | ||
email: [email protected] | ||
- family-names: Benke | ||
given-names: Falk | ||
email: [email protected] | ||
license: BSD-2-Clause | ||
repository-code: https://github.com/pik-piam/goxygen | ||
doi: 10.5281/zenodo.1411404 | ||
|
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,19 +1,20 @@ | ||
Package: goxygen | ||
Type: Package | ||
Title: In-Code Documentation for 'GAMS' | ||
Version: 1.3.3 | ||
Date: 2023-08-09 | ||
Version: 1.4.0 | ||
Date: 2023-11-23 | ||
Authors@R: c(person("Jan Philipp", "Dietrich", email = "[email protected]", role = c("aut","cre")), | ||
person("Kristine", "Karstens", email = "[email protected]", role = "aut"), | ||
person("David", "Klein", email = "[email protected]", role = "aut"), | ||
person("Lavinia", "Baumstark", email = "[email protected]", role = "aut")) | ||
person("Lavinia", "Baumstark", email = "[email protected]", role = "aut"), | ||
person("Falk", "Benke", email = "[email protected]", role = "aut")) | ||
Description: A collection of tools which extract a model documentation from 'GAMS' code and comments. | ||
In order to use the package you need to install 'pandoc' and 'pandoc-citeproc' | ||
first (<https://pandoc.org/>). | ||
Imports: | ||
pander, | ||
stringi, | ||
gms, | ||
gms (>= 0.26.3), | ||
citation, | ||
withr, | ||
yaml | ||
|
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,23 @@ | ||
#' appendExtraPageBlocks | ||
#' | ||
#' A helper to merge two nested lists describing extra page blocks. | ||
#' The lists have the page name on the first level and flattened documentation | ||
#' blocks on the second level. It is ensured that elements for the | ||
#' same page are grouped in the same list. | ||
#' | ||
#' @param blocks a nested list for extra page blocks per page | ||
#' @param add a seccond nested list for extra page blocks per page to be | ||
#' appended to the first one | ||
#' | ||
#' @author Falk Benke | ||
appendExtraPageBlocks <- function(blocks, add) { | ||
for (k in seq_along(add)) { | ||
page <- names(add[k]) | ||
if (page %in% names(blocks)) { | ||
blocks[[page]] <- append(blocks[[page]], add[[k]]) | ||
} else { | ||
blocks[[page]] <- add[[k]] | ||
} | ||
} | ||
return(blocks) | ||
} |
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
Oops, something went wrong.