mirror of
https://github.com/gitpitch/gitpitch.git
synced 2024-04-18 07:30:55 +08:00
Added support for slide-number option in PITCHME.yaml.
This commit is contained in:
parent
030fc8e765
commit
499af4c008
|
@ -338,6 +338,13 @@ public class SlideshowModel {
|
||||||
return (_yOpts != null) ? _yOpts.fetchHistory(params()) : false;
|
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.
|
* Return "mathjax" defined in PITCHME.yaml.
|
||||||
*/
|
*/
|
||||||
|
|
|
@ -220,6 +220,10 @@ public final class YAMLOptions {
|
||||||
return fetchBooleanOption(pp, HISTORY_OPTION, true);
|
return fetchBooleanOption(pp, HISTORY_OPTION, true);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public Boolean fetchSlideNumber(PitchParams pp) {
|
||||||
|
return fetchBooleanOption(pp, SLIDE_NUMBER_OPTION);
|
||||||
|
}
|
||||||
|
|
||||||
public String mathConfig(PitchParams pp) {
|
public String mathConfig(PitchParams pp) {
|
||||||
return mathEnabled(pp) ?
|
return mathEnabled(pp) ?
|
||||||
_yProps.get(MATHJAX_OPTION) : MATHJAX_DEFAULT;
|
_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 GATOKEN_OPTION = "gatoken";
|
||||||
private static final String CHARTS_OPTION = "charts";
|
private static final String CHARTS_OPTION = "charts";
|
||||||
private static final String HISTORY_OPTION = "history";
|
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 REVEALJS_VERSION = "revealjs-version";
|
||||||
|
|
||||||
private static final String HSLIDE_DELIM = "horz-delim";
|
private static final String HSLIDE_DELIM = "horz-delim";
|
||||||
|
|
|
@ -12,6 +12,7 @@
|
||||||
rtl: @ssm.fetchRTL(),
|
rtl: @ssm.fetchRTL(),
|
||||||
shuffle: @ssm.fetchShuffle(),
|
shuffle: @ssm.fetchShuffle(),
|
||||||
mouseWheel: @ssm.fetchMouseWheel(),
|
mouseWheel: @ssm.fetchMouseWheel(),
|
||||||
|
slideNumber: @ssm.fetchSlideNumber(),
|
||||||
history: @ssm.fetchHistory(),
|
history: @ssm.fetchHistory(),
|
||||||
@if(ssm.mathEnabled()) {
|
@if(ssm.mathEnabled()) {
|
||||||
math: {
|
math: {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user