-
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.
Convert to Asciidoctor sources. (#7)
- Loading branch information
1 parent
d5b375c
commit 1399099
Showing
54 changed files
with
3,667 additions
and
666 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -237,3 +237,6 @@ report/*.html | |
|
||
# Build dirs | ||
/.build | ||
|
||
/ecosystem-is-*.* | ||
/pub/index.html |
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,65 +1,62 @@ | ||
#| | ||
Copyright René Ferdinand Rivera Morell | ||
Distributed under the Boost Software License, Version 1.0. | ||
(See accompanying file LICENSE_1_0.txt or copy at | ||
http://www.boost.org/LICENSE_1_0.txt) | ||
|# | ||
|
||
require-b2 5.3 ; | ||
|
||
import toolset ; | ||
import feature ; | ||
|
||
feature.feature doc-stage : draft final : propagated symmetric ; | ||
feature.feature doc-stage : draft final web : propagated symmetric ; | ||
feature.feature verbose : off on : propagated incidental ; | ||
feature.feature license : off on : propagated symmetric ; | ||
|
||
project /ecosystem | ||
project /cplusplus/ecosystem-is | ||
: build-dir .build/b2 | ||
: default-build <doc-stage>draft <license>off <verbose>on | ||
; | ||
|
||
local tex-src = [ glob src/eco_*.tex src/in_*.tex src/*.ist ] ; | ||
local latexmkrc = [ glob src/*latexmkrc* ] ; | ||
local _ = " " ; | ||
|
||
rule latex-defs ( properties * ) | ||
rule install-name-pdf ( properties * ) | ||
{ | ||
local pretex ; | ||
if <doc-stage>final in $(properties) | ||
{ | ||
pretex += "\\\\def\\\\isofinal{yes}" ; | ||
} | ||
if <license>on in $(properties) | ||
{ | ||
pretex += "\\\\def\\\\license{yes}" ; | ||
} | ||
return <flags>"-usepretex=\"$(pretex:J= )\"" ; | ||
local name = ecosystem-is ; | ||
if <doc-stage>draft in $(properties) { name += draft ; } | ||
if <doc-stage>final in $(properties) { name += final ; } | ||
if <license>on in $(properties) { name += ccby4 ; } | ||
return <name>$(name:J=-).pdf ; | ||
} | ||
|
||
make ecosystem.pdf : src/ecosystem.tex | ||
: @latexmk | ||
: <dependency>$(tex-src) | ||
<verbose>on:<flags>-verbose | ||
<verbose>on:<flags>-diagnostics | ||
<flags>-r$(_)"$(latexmkrc[1])" | ||
<conditional>@latex-defs | ||
install ecosystem-is-latex-pdf | ||
: src//ecosystem.pdf | ||
: <location>. | ||
<conditional>@install-name-pdf | ||
<relevant>doc-stage | ||
<relevant>license | ||
; | ||
explicit ecosystem.pdf ; | ||
|
||
rule install-name ( properties * ) | ||
rule install-name-html ( properties * ) | ||
{ | ||
local name = ecosystem-is ; | ||
if <doc-stage>draft in $(properties) { name += draft ; } | ||
if <doc-stage>final in $(properties) { name += final ; } | ||
if <license>on in $(properties) { name += ccby4 ; } | ||
return <name>$(name:J=-).pdf ; | ||
return <name>$(name:J=-).html ; | ||
} | ||
|
||
install ecosystem-is | ||
: ecosystem.pdf | ||
install ecosystem-is-adoc-html | ||
: src//ecosystem.html | ||
: <location>. | ||
<conditional>@install-name | ||
<conditional>@install-name-html | ||
<relevant>doc-stage | ||
<relevant>license | ||
; | ||
|
||
# Generic latexmk action. | ||
|
||
toolset.flags $(__name__).latexmk FLAGS <flags> ; | ||
|
||
actions latexmk | ||
{ | ||
export TEXINPUTS="$(>:D):${TEXINPUTS}" | ||
latexmk -f -pdf -interaction=nonstopmode -logfilewarnings- -shell-escape -gg -outdir="$(<:D)" -auxdir="$(<:D)" -makeindexfudge $(FLAGS) "$(>:D=)" | ||
} | ||
install ecosystem-pub | ||
: src//ecosystem.html/<doc-stage>web/<license>on | ||
: <location>pub | ||
<name>index.html | ||
<relevant>doc-stage | ||
<relevant>license | ||
; |
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,83 @@ | ||
{ | ||
"$schema": "https://json-schema.org/draft/2020-12/schema", | ||
"$id": "std_param-1.0.0.json", | ||
"title": "Structured Parameters Version 1.0.0 JSON Schema", | ||
"type": "object", | ||
"properties": { | ||
"$schema": { | ||
"description": "JSON Schema URI for the version of the structured parameters format.", | ||
"type": "string", | ||
"format": "uri" | ||
}, | ||
"version": { | ||
"description": "The Structured Parameters format version.", | ||
"type": "string", | ||
"$ref": "#/$defs/Version" | ||
}, | ||
"arguments": { | ||
"description": "Application direct arguments.", | ||
"type": "array", | ||
"items": { | ||
"type": "string" | ||
} | ||
}, | ||
"options": { | ||
"description": "Application structured options.", | ||
"type": "object", | ||
"allOf": [ | ||
{ | ||
"$ref": "#/$opt/Std.Param" | ||
} | ||
], | ||
"propertyName": { | ||
"$ref": "#/$defs/Name" | ||
} | ||
} | ||
}, | ||
"oneOf": [ | ||
{ | ||
"required": ["arguments"] | ||
}, | ||
{ | ||
"required": ["options"] | ||
} | ||
], | ||
"$defs": { | ||
"Version": { | ||
"type": "string", | ||
"pattern": "^[0-9]+([.][0-9]+){0,2}$" | ||
}, | ||
"Name": { | ||
"type": "string", | ||
"pattern": "^([a-z0-9_-]+[.])*([a-z0-9_-]+)$" | ||
}, | ||
"StringOrArray": { | ||
"type": ["string", "array"], | ||
"items": { | ||
"type": "string" | ||
} | ||
} | ||
}, | ||
"$opt": { | ||
"Std.Param": { | ||
"properties": { | ||
"std.param": { | ||
"description": "Recursive reference to one or more structured parameters files.", | ||
"type": "object", | ||
"properties": { | ||
"pre": { | ||
"$ref": "#/$defs/StringOrArray" | ||
}, | ||
"post": { | ||
"$ref": "#/$defs/StringOrArray" | ||
} | ||
}, | ||
"additionalProperties": false | ||
} | ||
}, | ||
"param": { | ||
"$ref": "#/$opt/Std.Param/properties/std.param" | ||
} | ||
} | ||
} | ||
} |
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 @@ | ||
#| | ||
Copyright René Ferdinand Rivera Morell | ||
Distributed under the Boost Software License, Version 1.0. | ||
(See copy at http://www.boost.org/LICENSE_1_0.txt) | ||
|# | ||
|
||
require-b2 5.2 ; | ||
|
||
project /grafikrobot/asciidoctor-latexcore ; | ||
|
||
path-constant here : . ; | ||
|
||
alias latexcore | ||
: usage-requirements | ||
<asciidoctor-latexcore.flags>"-r $(here)/latexcore.rb" | ||
<asciidoctor-latexcore.flags>"-b latexcore" | ||
<dependency>latexcore.rb | ||
; | ||
explicit latexcore ; |
Oops, something went wrong.