-
-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
25 changed files
with
255 additions
and
175 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,15 @@ | ||
import { defineConfig } from 'astro/config'; | ||
import {config} from './config.js' | ||
import {collect_content} from './integrations/integration-content-structure.js' | ||
|
||
import yaml from '@rollup/plugin-yaml'; | ||
|
||
export default defineConfig({ | ||
integrations: [collect_content(config.collect_content)], | ||
output: "static", | ||
outDir: config.outDir, | ||
base: config.base, | ||
trailingSlash: 'ignore' | ||
trailingSlash: 'ignore', | ||
vite: { | ||
plugins: [yaml()] | ||
} | ||
}); |
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 was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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 +1,16 @@ | ||
code | ||
--- | ||
title: Code Blocks | ||
order: 1 | ||
--- | ||
|
||
# long code | ||
|
||
```js | ||
console.log("very long sentence with thousand words. very long sentence with thousand words. very long sentence with thousand words. very long sentence with thousand words.") | ||
``` | ||
|
||
# generic language code | ||
|
||
``` | ||
text code = alpha | ||
``` |
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,72 @@ | ||
--- | ||
title: Code Diagrams | ||
order: 2 | ||
--- | ||
# Block Diagram | ||
|
||
```blockdiag | ||
blockdiag { | ||
Kroki -> is -> Awesome; | ||
} | ||
``` | ||
# Plantuml | ||
## Sequence Diagram | ||
```plantuml | ||
@startuml | ||
left to right direction | ||
skinparam packageStyle rectangle | ||
skinparam monochrome true | ||
actor customer | ||
actor clerk | ||
rectangle checkout { | ||
customer -- (checkout) | ||
(checkout) .> (payment) : include | ||
(help) .> (checkout) : extends | ||
(checkout) -- clerk | ||
} | ||
@enduml | ||
``` | ||
|
||
## Mind Map | ||
|
||
```plantuml my-mind-map | ||
@startmindmap | ||
skinparam monochrome true | ||
+ OS | ||
++ Ubuntu | ||
+++ Linux Mint | ||
+++ Kubuntu | ||
+++ Lubuntu | ||
+++ KDE Neon | ||
++ LMDE | ||
++ SolydXK | ||
++ SteamOS | ||
++ Raspbian | ||
-- Windows 95 | ||
-- Windows 98 | ||
-- Windows NT | ||
--- Windows 8 | ||
--- Windows 10 | ||
@endmindmap | ||
``` | ||
|
||
## Work Breakout | ||
Diagrams can also be linked from a separate file like this | ||
|
||
```md | ||
[Work Breakout](./work-breakout.puml) | ||
``` | ||
Which will generate the same view as if it was embedded in a code block | ||
|
||
[Work Breakout](./work-breakout.puml) | ||
|
||
# Mermaid | ||
|
||
```mermaid | ||
graph TD | ||
A[ Anyone ] -->|Can help | B( Go to github.com/yuzutech/kroki ) | ||
B --> C{ How to contribute? } | ||
C --> D[ Reporting bugs ] | ||
C --> E[ Sharing ideas ] | ||
C --> F[ Advocating ] | ||
``` |
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,14 @@ | ||
@startwbs | ||
skinparam monochrome true | ||
* Business Process Modelling WBS | ||
** Launch the project | ||
*** Complete Stakeholder Research | ||
*** Initial Implementation Plan | ||
** Design phase | ||
*** Model of AsIs Processes Completed | ||
**** Model of AsIs Processes Completed1 | ||
**** Model of AsIs Processes Completed2 | ||
*** Measure AsIs performance metrics | ||
*** Identify Quick Wins | ||
** Complete innovate phase | ||
@endwbs |
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 @@ | ||
--- | ||
title: Gallery | ||
order: 2 | ||
order: 3 | ||
--- | ||
# Gallery | ||
|
||
|
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
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
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,34 @@ | ||
--- | ||
import Highlighter from './Highlighter.astro' | ||
import Kroki from './Kroki.astro' | ||
import ModelViewerCode from '../model/ModelViewerCode.astro'; | ||
import Cards from '../cards/Cards.astro' | ||
import Gallery from '../../gallery/gallery.astro'; | ||
import Swiper from '../../swiper/swiper.astro' | ||
import kroki from './kroki.yaml' | ||
import {join,dirname} from 'path' | ||
import {config} from '@/config.js' | ||
import {constants, access, mkdir, readFile, writeFile} from 'fs/promises' | ||
export interface Props { | ||
ext: string; | ||
url: string; | ||
dirpath: string; | ||
} | ||
const { ext, url, dirpath } = Astro.props as Props; | ||
let language = "" | ||
let code = "" | ||
const params = [] | ||
const is_kroki = Object.keys(kroki.formats).includes(ext) | ||
if(is_kroki){ | ||
language = kroki.formats[ext] | ||
const abs_file = join(config.content_path,dirpath,url) | ||
code = await readFile(abs_file,'utf-8') | ||
} | ||
--- | ||
{(is_kroki)&& | ||
<Kroki language={language} code={code} params={params} /> | ||
} |
Oops, something went wrong.