Skip to content

Commit

Permalink
Drop Markdown to HTML over missing dependency
Browse files Browse the repository at this point in the history
Fixes #124
  • Loading branch information
timtebeek committed Jul 16, 2024
1 parent 31ebdad commit b4ce405
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 19 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/pages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,18 +43,18 @@ jobs:
- name: build
uses: gradle/actions/setup-gradle@v3
with:
arguments: ${{ env.GRADLE_SWITCHES }} check markdownToHtml
arguments: ${{ env.GRADLE_SWITCHES }} run

- name: Create index.html
run: cp build/html/SUMMARY_snippet.html build/html/index.html
run: cp build/docs/SUMMARY_snippet.md build/docs/index.md

- name: Setup Pages
uses: actions/configure-pages@v5
- name: Upload artifact
uses: actions/upload-pages-artifact@v3
with:
# Upload entire repository
path: 'build/html'
path: 'build/docs'
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4
16 changes: 0 additions & 16 deletions build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,10 +1,7 @@
import org.kordamp.gradle.plugin.markdown.tasks.MarkdownToHtmlTask

plugins {
application
id("org.jetbrains.kotlin.jvm").version("1.7.20")
id("org.owasp.dependencycheck") version "7.0.4.1"
id("org.kordamp.gradle.markdown") version "2.2.0"
}

dependencyCheck {
Expand Down Expand Up @@ -174,16 +171,3 @@ tasks.named<JavaExec>("run").configure {
}

defaultTasks = mutableListOf("run")

tasks.withType<MarkdownToHtmlTask> {
dependsOn("run")
sourceDir = file("build/docs")
outputDir = file("build/html")
fencedCodeBlocks = true
tables = true
doLast {
this as MarkdownToHtmlTask
@Suppress("UNNECESSARY_NOT_NULL_ASSERTION") // IntelliJ says this is unnecessary, kotlin compiler disagrees
logger.lifecycle("Wrote generated html to: file://${outputDir}")
}
}

0 comments on commit b4ce405

Please sign in to comment.