Skip to content

Commit

Permalink
Merge pull request #710 from redpencilio/feature/exclude-provenance
Browse files Browse the repository at this point in the history
CLI option to exclude provenance link
  • Loading branch information
dgarijo authored Jun 17, 2024
2 parents 103d1be + 4f45811 commit f318551
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -165,6 +165,8 @@ docker run -ti --rm \

`-noPlaceHolderText`: Do not add any placeholder text (this will remove intro, abstract (if empty) and description sections).

`-excludeProvenance`: Do not add the link "Provenance of this page" in the metadata header section

`-ontFile PATH` [required (unless -ontURI is used)]: Load a local ontology file (from PATH) to document. This option is incompatible with -ontURI

`-outFolder folderName`: Specifies the name of the folder where to save the documentation. By default is 'myDocumentation'
Expand Down
10 changes: 8 additions & 2 deletions src/main/java/widoco/gui/GuiController.java
Original file line number Diff line number Diff line change
Expand Up @@ -107,8 +107,8 @@ public GuiController(String[] args) {
boolean isFromFile = false, oops = false, rewriteAll = false, getOntoMetadata = true, useW3Cstyle = true,
includeImportedOntologies = false, htAccess = false, webVowl = false, errors = false, licensius = false,
generateOnlyCrossRef = false, includeNamedIndividuals = true, includeAnnotationProperties = false,
displaySerializations = true, displayDirectImportsOnly = false, excludeIntroduction = false, uniteSections = false,
placeHolderText = true, localImports=false;
displaySerializations = true, displayDirectImportsOnly = false, excludeIntroduction = false, excludeProvenance = false,
uniteSections = false, placeHolderText = true, localImports=false;
String confPath = "";
String code = null;// for tracking analytics.
String[] languages = null;
Expand Down Expand Up @@ -203,6 +203,9 @@ public GuiController(String[] args) {
case "-noPlaceHolderText":
placeHolderText = false;
break;
case "-excludeProvenance":
excludeProvenance = true;
break;
case "--help":
System.out.println(Constants.HELP_TEXT);
return;
Expand Down Expand Up @@ -270,6 +273,9 @@ public GuiController(String[] args) {
this.config.setIncludeAbstract(false);
}
}
if (excludeProvenance) {
this.config.setPublishProvenance(false);
}
if (code != null) {
this.config.setGoogleAnalyticsCode(code);
}
Expand Down

0 comments on commit f318551

Please sign in to comment.