mirror of
https://github.com/gitpitch/gitpitch.git
synced 2024-04-18 07:30:55 +08:00
Added support for history option in PITCHME.yaml.
This commit is contained in:
parent
805571ae38
commit
787d2cc27b
|
@ -331,6 +331,13 @@ public class SlideshowModel {
|
|||
return (_yOpts != null) ? _yOpts.mathEnabled(params()) : false;
|
||||
}
|
||||
|
||||
/*
|
||||
* Return "history" defined in PITCHME.yaml.
|
||||
*/
|
||||
public boolean fetchHistory() {
|
||||
return (_yOpts != null) ? _yOpts.fetchHistory(params()) : false;
|
||||
}
|
||||
|
||||
/*
|
||||
* Return "mathjax" defined in PITCHME.yaml.
|
||||
*/
|
||||
|
|
|
@ -216,6 +216,10 @@ public final class YAMLOptions {
|
|||
return (mathjax != null);
|
||||
}
|
||||
|
||||
public Boolean fetchHistory(PitchParams pp) {
|
||||
return fetchBooleanOption(pp, HISTORY_OPTION, true);
|
||||
}
|
||||
|
||||
public String mathConfig(PitchParams pp) {
|
||||
return mathEnabled(pp) ?
|
||||
_yProps.get(MATHJAX_OPTION) : MATHJAX_DEFAULT;
|
||||
|
@ -352,6 +356,7 @@ public final class YAMLOptions {
|
|||
private static final String FOOTNOTE_OPTION = "footnote";
|
||||
private static final String GATOKEN_OPTION = "gatoken";
|
||||
private static final String CHARTS_OPTION = "charts";
|
||||
private static final String HISTORY_OPTION = "history";
|
||||
private static final String REVEALJS_VERSION = "revealjs-version";
|
||||
|
||||
private static final String HSLIDE_DELIM = "horz-delim";
|
||||
|
|
|
@ -12,6 +12,7 @@
|
|||
rtl: @ssm.fetchRTL(),
|
||||
shuffle: @ssm.fetchShuffle(),
|
||||
mouseWheel: @ssm.fetchMouseWheel(),
|
||||
history: @ssm.fetchHistory(),
|
||||
@if(ssm.mathEnabled()) {
|
||||
math: {
|
||||
@if(offline) {
|
||||
|
|
Loading…
Reference in New Issue
Block a user