Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

LPS-179609-staticContent-sample #109

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions workspaces/liferay-sample-workspace/.gitignore
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
.DS_Store
/bundles
/poshi/poshi-ext.properties
bin
build
dist
node_modules
node_modules_cache
node_modules_cache
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
import com.vladsch.flexmark.html.HtmlRenderer
import com.vladsch.flexmark.parser.Parser

buildscript {
dependencies {
classpath group: "com.vladsch.flexmark", name: "flexmark-all", version: "0.64.0"
}

repositories {
mavenCentral()
}
}

task flexmark

flexmark {
File inputFile = project.file("src/sample.markdown")
inputs.file(inputFile)

File outputFile = project.file("${project.buildDir}/sample.html")
outputs.file(outputFile)

doLast {
outputFile.parentFile.mkdirs()
outputFile.text = HtmlRenderer.builder().build().render(Parser.builder().build().parse(inputFile.text))
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
assemble:
- fromTask: flexmark
into: static
liferay-sample-static-content:
name: Liferay Sample Static Content
type: staticContent
url: sample.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
# Sample Heading

This is a [link](https://www.liferay.com) to a html document.

## Sample Second Heading

- This is a list item
- This is another list item

### Sample Third Heading

1. This is a numbered list item

1. This is another numbered list item
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,6 @@
#jdbc.default.username=root
#jdbc.default.password=

feature.flag.LPS-166479=true
feature.flag.LPS-166479=true

feature.flag.LPS-177027=true