-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Change the way how we render pages, so we parse .md files and then apply html layouts. Do no render files other then .md or .html ones
- Loading branch information
1 parent
9c84ccb
commit 3b753fe
Showing
26 changed files
with
856 additions
and
238 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,3 +4,4 @@ | |
build/ | ||
gradle/ | ||
lib/ | ||
out |
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,7 @@ | ||
<header> | ||
Powered by <a href="https://www.virtuslab.com/">VirtusLab</a> | ||
</header> | ||
|
||
<div> | ||
{{ content }} | ||
</div> |
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,12 @@ | ||
--- | ||
layout: vl_header | ||
title: Links | ||
--- | ||
|
||
## Links | ||
|
||
Our side supports stadnard markdown links: | ||
- TODO Using standard [urls](https://pl.wikipedia.org/wiki/Uniform_Resource_Locator) | ||
- TODO To [other pages](/docs/static-page/random.html) (or [md base file](/docs/static-page/tables.md)) in our documentation that using paths relative to root od documentation e.g. `/docs/static-page/random.html` for this project | ||
- TODO To [other pages](/docs/static-page/samples/random.html) (or [md base file](samples/tables.md)) in our documentation that using paths relative to this file e.g. using `random.html` (or `tables.md`) | ||
- TODO To API using `[fully.quallifty.Name]` |
2 changes: 1 addition & 1 deletion
2
documentation/docs/static-page/random.html → documentation/docs/static-page/random.md
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 |
---|---|---|
@@ -1,6 +1,6 @@ | ||
--- | ||
layout: vl_header | ||
title: Sample html page | ||
title: Sample md page | ||
--- | ||
|
||
Hello world! |
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,6 @@ | ||
--- | ||
layout: vl_html_layout | ||
title: Use Html template | ||
--- | ||
|
||
## Test 123 |
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,6 @@ | ||
--- | ||
layout: vl_header | ||
title: Samples | ||
--- | ||
|
||
Samples for our **plugin** |
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 @@ | ||
I am text file! |
4 changes: 4 additions & 0 deletions
4
documentation/docs/static-page/samples/plainFramelessHtmlIndex/index.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,4 @@ | ||
--- | ||
hasFrame: false | ||
--- | ||
<h1>No frame!</h1> |
1 change: 1 addition & 0 deletions
1
documentation/docs/static-page/samples/plainHtmlIndexFile/index.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 @@ | ||
<h1>Plain html file</h1> |
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 @@ | ||
## Plain file |
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 @@ | ||
<h1>Plain Html file</h1> |
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 @@ | ||
# Plain Md file |
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,21 @@ | ||
--- | ||
layout: vl_html_layout | ||
title: Tables | ||
--- | ||
|
||
## Tables | ||
|
||
|
||
Some random table (to show how we render it). | ||
|
||
## SBT Commands Cheat Sheet ## | ||
The basics of working with Dotty codebase are documented [here](https://dotty.epfl.ch/docs/contributing/getting-started.html) and [here](https://dotty.epfl.ch/docs/contributing/workflow.html). Below is a cheat sheet of some frequently used commands (to be used from SBT console – `sbt`). | ||
|
||
|
||
| Command | Description | | ||
| ---------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------- | | ||
| `dotc ../issues/Playground.scala` | Compile the given file – path relative to the Dotty directory. Output the compiled class files to the Dotty directory itself. | | ||
| `dotr Playground` | Run the compiled class `Playground`. Dotty directory is on classpath by default. | | ||
| `repl` | Start REPL | | ||
| `testOnly dotty.tools.dotc.CompilationTests -- *pos` | Run test (method) `pos` from `CompilationTests` suite. | | ||
| `testCompilation sample` | In all test suites, run test files containing the word `sample` in their title. | |
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 |
---|---|---|
@@ -1,6 +1,6 @@ | ||
kotlin.code.style=official | ||
|
||
kotlin_version=1.4-M3 | ||
dokka_version=1.4.0-rc | ||
kotlin_version=1.4.0 | ||
dokka_version=1.4.0 | ||
|
||
language_version=1.4 |
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 |
---|---|---|
|
@@ -17,5 +17,6 @@ pluginManagement { | |
mavenCentral() | ||
jcenter() | ||
gradlePluginPortal() | ||
mavenLocal() | ||
} | ||
} |
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,26 @@ | ||
package com.virtuslab.dokka.site | ||
|
||
import org.jetbrains.dokka.model.DisplaySourceSet | ||
import org.jetbrains.dokka.model.properties.PropertyContainer | ||
import org.jetbrains.dokka.pages.* | ||
|
||
data class PartiallyRenderedContent( | ||
val page: PreResolvedPage, | ||
override val children: List<ContentNode>, | ||
override val dci: DCI, | ||
override val sourceSets: Set<DisplaySourceSet>, | ||
override val style: Set<Style> = emptySet(), | ||
override val extra: PropertyContainer<ContentNode> = PropertyContainer.empty() | ||
) : ContentNode { | ||
override fun hasAnyContent(): Boolean = children.find { hasAnyContent() } != null | ||
|
||
override fun withNewExtras(newExtras: PropertyContainer<ContentNode>): ContentNode = | ||
copy(extra = extra) | ||
|
||
override fun withSourceSets(sourceSets: Set<DisplaySourceSet>): ContentNode = | ||
copy(sourceSets = sourceSets) | ||
|
||
val allResources: List<String> by lazy { | ||
page.render("").resources | ||
} | ||
} |
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
Oops, something went wrong.