-
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2 from hexagonkt/develop
Develop
- Loading branch information
Showing
5 changed files
with
105 additions
and
2 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 |
---|---|---|
@@ -0,0 +1,15 @@ | ||
package co.codecv | ||
|
||
import com.hexagonkt.http.server.HttpServerSettings | ||
import com.hexagonkt.http.server.callbacks.FileCallback | ||
import com.hexagonkt.http.server.jetty.serve | ||
import java.awt.Desktop | ||
import java.io.File | ||
import java.net.URI | ||
|
||
fun main() { | ||
val server = serve(HttpServerSettings(bindPort = 9999)) { | ||
get("/*", FileCallback(File("src/test/resources"))) | ||
} | ||
Desktop.getDesktop().browse(URI("http://localhost:${server.runtimePort}/revealjs.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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,59 @@ | ||
<!doctype html> | ||
|
||
<html lang="en"> | ||
|
||
<meta charset="utf-8"> | ||
|
||
<title>reveal.js - Markdown Example</title> | ||
|
||
<link | ||
rel="stylesheet" | ||
href="https://cdnjs.cloudflare.com/ajax/libs/reveal.js/4.4.0/reveal.min.css"/> | ||
<link | ||
rel="stylesheet" | ||
href="https://cdnjs.cloudflare.com/ajax/libs/reveal.js/4.4.0/plugin/highlight/monokai.min.css"/> | ||
<link | ||
rel="stylesheet" | ||
href="https://cdnjs.cloudflare.com/ajax/libs/reveal.js/4.4.0/theme/black.min.css"/> | ||
|
||
<style> | ||
:root { | ||
--r-background-color: #2E303E; | ||
--r-heading-text-transform: none; | ||
--r-heading-color: #279FE7; | ||
} | ||
</style> | ||
|
||
<div class="reveal"> | ||
<div class="slides"> | ||
<section | ||
data-markdown="slides.md" | ||
data-separator="^\n---\n$" | ||
data-separator-vertical="^\n--\n$"> | ||
</section> | ||
</div> | ||
</div> | ||
|
||
<script src="https://cdnjs.cloudflare.com/ajax/libs/reveal.js/4.4.0/reveal.min.js"></script> | ||
<script | ||
src="https://cdnjs.cloudflare.com/ajax/libs/reveal.js/4.4.0/plugin/markdown/markdown.min.js"> | ||
</script> | ||
<script | ||
src="https://cdnjs.cloudflare.com/ajax/libs/reveal.js/4.4.0/plugin/highlight/highlight.min.js"> | ||
</script> | ||
<script | ||
src="https://cdnjs.cloudflare.com/ajax/libs/reveal.js/4.4.0/plugin/math/math.min.js"></script> | ||
<script | ||
src="https://cdnjs.cloudflare.com/ajax/libs/reveal.js/4.4.0/plugin/notes/notes.min.js"></script> | ||
|
||
<script> | ||
Reveal.initialize({ | ||
controls: false, | ||
progress: false, | ||
history: false, | ||
center: true, | ||
plugins: [ RevealMarkdown, RevealHighlight, RevealNotes, RevealMath.KaTeX ] | ||
}); | ||
</script> | ||
|
||
</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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
|
||
# CodeCV | ||
CVs for programmers | ||
* JSON Schema (validation) <!-- .element: class="fragment" data-fragment-index="1" --> | ||
* Reference Tool (rendering) <!-- .element: class="fragment" data-fragment-index="2" --> | ||
|
||
--- | ||
|
||
# Schema | ||
* Works out of the box in VS Code <!-- .element: class="fragment" data-fragment-index="1" --> | ||
* Can be used in JSON, TOML and YAML <!-- .element: class="fragment" data-fragment-index="2" --> | ||
* Display documentation on editing <!-- .element: class="fragment" data-fragment-index="3" --> | ||
* Autocomplete fields <!-- .element: class="fragment" data-fragment-index="4" --> | ||
* List errors in documents <!-- .element: class="fragment" data-fragment-index="5" --> | ||
|
||
--- | ||
|
||
# Reference Tool | ||
* Serve CV file <!-- .element: class="fragment" data-fragment-index="1" --> | ||
* Check schema documentation <!-- .element: class="fragment" data-fragment-index="2" --> | ||
* Show rendered CV document <!-- .element: class="fragment" data-fragment-index="3" --> | ||
|
||
--- | ||
|
||
# Keep in Touch | ||
* Follow the [@hexagon_kt] Twitter account to be notified on this and other programmers' tools | ||
* If you like the project, please share... And give it a ⭐ | ||
|
||
[@hexagon_kt]: https://twitter.com/hexagon_kt |