Added support for slide-number option in PITCHME.yaml.

This commit is contained in:
David Russell 2017-03-03 19:13:01 +07:00
parent 030fc8e765
commit 499af4c008
3 changed files with 13 additions and 0 deletions

View File

@ -338,6 +338,13 @@ public class SlideshowModel {
return (_yOpts != null) ? _yOpts.fetchHistory(params()) : false;
}
/*
* Return "slide-number" defined in PITCHME.yaml.
*/
public boolean fetchSlideNumber() {
return (_yOpts != null) ? _yOpts.fetchSlideNumber(params()) : false;
}
/*
* Return "mathjax" defined in PITCHME.yaml.
*/

View File

@ -220,6 +220,10 @@ public final class YAMLOptions {
return fetchBooleanOption(pp, HISTORY_OPTION, true);
}
public Boolean fetchSlideNumber(PitchParams pp) {
return fetchBooleanOption(pp, SLIDE_NUMBER_OPTION);
}
public String mathConfig(PitchParams pp) {
return mathEnabled(pp) ?
_yProps.get(MATHJAX_OPTION) : MATHJAX_DEFAULT;
@ -357,6 +361,7 @@ public final class YAMLOptions {
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 SLIDE_NUMBER_OPTION = "slide-number";
private static final String REVEALJS_VERSION = "revealjs-version";
private static final String HSLIDE_DELIM = "horz-delim";

View File

@ -12,6 +12,7 @@
rtl: @ssm.fetchRTL(),
shuffle: @ssm.fetchShuffle(),
mouseWheel: @ssm.fetchMouseWheel(),
slideNumber: @ssm.fetchSlideNumber(),
history: @ssm.fetchHistory(),
@if(ssm.mathEnabled()) {
math: {