Skip to content

Commit

Permalink
Moved build folder to docs to deploy more easily with github action
Browse files Browse the repository at this point in the history
  • Loading branch information
renanlecaro committed Mar 15, 2024
1 parent b159ab2 commit 855fb38
Show file tree
Hide file tree
Showing 7 changed files with 17 additions and 15 deletions.
9 changes: 5 additions & 4 deletions Readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,24 +6,24 @@ This is a markdown to markdown converter. That sounds a bit silly, I know.
All it does is look for lines that have an arrow in them, and consider them
as an instruction, like below :

A->B
A->B

What we just did is declare a link from A to B. This will be replaced by a small
chart, rendered in text in a Markdown code block (indented with 4 blocks).

You can then add a second link to your document, and it will be added to the
same chart as before.

B->C
B->C

You can declare more than one link per line too, by chaining arrows.

C->D->E->A
C->D->E->A

If you want, you can cluster nodes by using the colon symbol between a parent
and child, like this:

Parent:First child -> Parent:Other child
Parent:First child -> Parent:Other child

## How does it work ?

Expand Down Expand Up @@ -51,6 +51,7 @@ threads available to generate large graphs faster.
- mutation : see if there are interesting ideas in https://www.graphviz.org/docs/layouts/
- scoring : make links to self or parent look nicer
- scoring : add symmetry rules (tricky to do well)
- syntax: only consider lines indented with 4 blocks at least
- syntax: fix a node to a specific location
- syntax: split a document into chunks and start a new chart for each group
- cli use : improve one world per thread, then merge and do selection/birth every N seconds
Expand Down
14 changes: 7 additions & 7 deletions build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,18 +2,18 @@

cargo build --release

wasm-pack build --target web --out-dir public --release
wasm-pack build --target web --out-dir docs --release

rm public/.gitignore
rm public/*.d.ts
rm public/package.json
rm docs/.gitignore
rm docs/*.d.ts
rm docs/package.json

cp src/index.html public
cp src/index.html docs


# Define file paths
readmeFile="Readme.md"
htmlFile="public/index.html"
htmlFile="docs/index.html"
# Check if the sed command is GNU sed or BSD sed (macOS)
if sed --version 2>/dev/null | grep -q GNU; then
# GNU sed
Expand All @@ -35,4 +35,4 @@ rm "${htmlFile}.bak"



cp target/release/obm public/obm
cp target/release/obm docs/obm
9 changes: 5 additions & 4 deletions public/index.html → docs/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -19,24 +19,24 @@
All it does is look for lines that have an arrow in them, and consider them
as an instruction, like below :

A->B
A->B

What we just did is declare a link from A to B. This will be replaced by a small
chart, rendered in text in a Markdown code block (indented with 4 blocks).

You can then add a second link to your document, and it will be added to the
same chart as before.

B->C
B->C

You can declare more than one link per line too, by chaining arrows.

C->D->E->A
C->D->E->A

If you want, you can cluster nodes by using the colon symbol between a parent
and child, like this:

Parent:First child -> Parent:Other child
Parent:First child -> Parent:Other child

## How does it work ?

Expand Down Expand Up @@ -64,6 +64,7 @@
- mutation : see if there are interesting ideas in https://www.graphviz.org/docs/layouts/
- scoring : make links to self or parent look nicer
- scoring : add symmetry rules (tricky to do well)
- syntax: only consider lines indented with 4 blocks at least
- syntax: fix a node to a specific location
- syntax: split a document into chunks and start a new chart for each group
- cli use : improve one world per thread, then merge and do selection/birth every N seconds
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 comments on commit 855fb38

Please sign in to comment.