Commit Graph

12 Commits

Author SHA1 Message Date
David Russell
1f834dbf73 Added support for code-block delimiter and code fragment highlights.
This commit add support for a new code-block delimiter that provides a simple way to inject any source code file found within the repo as a Markdown code-block on a presentation slide. The delimiter syntax looks as follows:

—?code=path/to/source/code.file

This commit also introduces support for code fragment highlighting. The CF-marker syntax, one or more of which must follow a code-block in your markdown, looks as follows:

@[fragment-range](optional-note)

Where fragment-range identifies a single line number, @[1], or a range of numbers, @[5-10]. The optional note is plain text that is displayed on the slide below the code-block when the fragment is in focus.
2017-05-27 16:09:18 +07:00
David Russell
e448738d1e Updated default config props for Gitea and Gogs. 2017-05-16 17:07:19 +07:00
David Russell
1302e8f369 Added support for Gitea and Gogs services. 2017-05-15 17:32:26 +07:00
Matthias Kurz
e17eefd60d
Add 127.0.0.1 to allowed hosts (easier for development) 2017-04-27 14:07:01 +02:00
David Russell
135411dc22 Added comment on storage.home property. 2017-03-08 09:37:43 +07:00
David Russell
3b1103ecc6 Added support for printing to PDF directly within browser.
Web based printing to PDF is supported in Chrome only. This functionality is added to overcome differences between fonts available in the browser and the fonts available to decktape on the GitPitch server.
2017-02-23 11:07:23 +07:00
David Russell
9c870227ac Added support for reveal.js v3.4.1.
GitPitch default reveal.js dependency is now 3.4.1.

Also added support for new PITCHME.yaml property, called revealjs-version. This property allows a presentation owner to specify a specific version of reveal.js to use with their presentation.

Currently supported versions are 3.4.1 or 3.3.1.
2017-02-10 14:32:34 +07:00
David Russell
c41167dacc RFE #24 support for multiple presentations within single repo.
A new parameter (p) on slideshow URLs accepts a relative path to a custom directory within a repo where PITCHME.* can be found for a given presentation. If (p) is not specified, the default behavior using the root directory within the repo is preserved.

This feature supports the creation and management of multiple presentations within a single repo (branch), potentially sharing common assets such as images, styles, etc.

The following changes were required to support this feature:

- Optional parameter (p) on slideshow urls
- Each (p) generates isolated print PDF
- Each (p) generates isolated offline ZIP
- Caching of YAML and Markdown is now (p) aware
2016-11-28 19:07:58 +07:00
David Russell
3170ff886d Updated custom css overrides handling for offline slideshows. 2016-09-29 20:34:39 +07:00
David Russell
85b3840ebb Handle custom css overrides as external stylesheets on slideshow. 2016-09-28 19:59:46 +07:00
David Russell
f4adfbed3e Added support for GitLab and Bitbucket slideshow presentations.
The GitPitch server has been updated with support for GitPitch slideshow presentations powered by PITCHME.md within GitHub, GitLab and Bitbucket public repos.

The git.repo.services property in application.conf can be used to register and configure custom GRS (Git Repo Services) for any GitPitch server deployment.
2016-09-07 14:11:29 +08:00
David Russell
7c4efa5ab0 Released GitPitch under open source MIT license. 2016-08-27 09:49:46 +07:00