Skip to content

Commit

Permalink
Merge pull request #2 from hexagonkt/develop
Browse files Browse the repository at this point in the history
Develop
  • Loading branch information
jaguililla authored Jan 10, 2023
2 parents a77bb47 + d7820cb commit db58946
Show file tree
Hide file tree
Showing 5 changed files with 105 additions and 2 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ improvement, file a bug or resolve a usage doubt, you are absolutely encouraged
Also, if you want to contribute a new feature on the tool or a change on the schema. You can also
do so by creating an issue and filing a PR. Please read the [contributing guide] before doing so.

[contributing guide]: contributing.md
[contributing guide]: https://github.com/hexagonkt/codecv/contribute

## ❤️ Support the Project
If you want to see more progress on this project, and see more developer targeted tools,
Expand Down
2 changes: 1 addition & 1 deletion build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ apply(from = "$gradleScripts/kotlin.gradle")
apply(from = "$gradleScripts/application.gradle")

group = "com.hexagonkt.tools"
version = "0.9.1"
version = "0.9.2"
description = "CVs for programmers"

ext {
Expand Down
15 changes: 15 additions & 0 deletions src/test/kotlin/Slides.kt
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"))
}
59 changes: 59 additions & 0 deletions src/test/resources/revealjs.html
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>
29 changes: 29 additions & 0 deletions src/test/resources/slides.md
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

0 comments on commit db58946

Please sign in to comment.