Skip to content

Commit 73119c8

Browse files
authored
Merge pull request #57 from terrastruct/update
Sept 3 update
2 parents e7e7c7a + 7c96f2a commit 73119c8

File tree

99 files changed

+2432
-1882
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

99 files changed

+2432
-1882
lines changed

README.md

+12-1
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,13 @@ catalog we've found is
4646

4747
### Run locally
4848

49-
`yarn && yarn dev`
49+
```sh
50+
# Only needed first run
51+
git submodule update --init --recursive
52+
yarn
53+
54+
yarn dev
55+
```
5056

5157
### Adding examples
5258

@@ -61,6 +67,11 @@ Please follow the examples in `src/examples`.
6167
1. Create the text for as many languages as you can. It's okay if not totally complete. We
6268
or others can fill.
6369
1. Run `./render.sh` (with the respective tools installed)
70+
- Pre-requisite tools:
71+
- `mmdc`
72+
- `plantuml`
73+
- `graphviz`
74+
- `d2`
6475

6576
<img alt="CLI render" src="/docs/assets/render.png" />
6677

src/components/CodeBlock.tsx

-1
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,6 @@ async function newTextMateRegistry() {
150150
return parseRawGrammar(markdownGrammar);
151151
}
152152

153-
console.warn(`unknown scope name: ${scope}`);
154153
return undefined;
155154
},
156155
});

src/components/Features.tsx

+3-3
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@ const features: Feature[] = [
144144
[D2_LANG]: 'Any URL',
145145
[MERMAID_LANG]: 'FontAwesome. Hacky <img> tags',
146146
[GRAPHVIZ_LANG]: false,
147-
[PLANTUML_LANG]: false,
147+
[PLANTUML_LANG]: 'Any URL',
148148
},
149149
},
150150
{
@@ -194,7 +194,7 @@ const features: Feature[] = [
194194
[D2_LANG]: true,
195195
[MERMAID_LANG]: false,
196196
[GRAPHVIZ_LANG]: false,
197-
[PLANTUML_LANG]: false,
197+
[PLANTUML_LANG]: true,
198198
},
199199
},
200200
{
@@ -246,7 +246,7 @@ const features: Feature[] = [
246246
[D2_LANG]: true,
247247
[MERMAID_LANG]: false,
248248
[GRAPHVIZ_LANG]: true,
249-
[PLANTUML_LANG]: false,
249+
[PLANTUML_LANG]: 'With additional installs',
250250
},
251251
},
252252
];

src/components/faq.tsx

+2-2
Original file line numberDiff line numberDiff line change
@@ -37,15 +37,15 @@ const items = [
3737
},
3838
{
3939
question: 'How up-to-date is this?',
40-
answer: `Very up to date. Every so often, we upgrade to latest version of all tools and regenerate all. Latest: July 31, 2023.`,
40+
answer: `Very up to date. Every so often, we upgrade to latest version of all tools and regenerate all. Latest: September 03, 2024.`,
4141
},
4242
{
4343
question: 'Who made this?',
4444
answer: `This is created and maintained by Terrastruct. We created D2, and it's in our interest to provide anyone evaluating us with an objective comparison against others in the space. The only favor granted to D2 is that it shows up as the first comparison. We welcome contributions, and if any examples potentially make D2 look bad, we will include them without bias (and then furiously improve D2 so the example looks better, a right other tools have as well).`,
4545
},
4646
{
4747
question: "Why isn't [my favorite underground language] here?",
48-
answer: `The cross-table of examples and languages is big, and nobody's gotten around to it yet. We're seeding and adding languages in order of perceived popularity. If you'd like to help support your favorite one, feel free to submit a PR -- we'll merge.`,
48+
answer: `The cross-table of examples and languages is big, and nobody's gotten around to it yet. We're seeding and adding languages in order of perceived popularity. If you'd like to help support your favorite one, feel free to submit a PR -- we'll merge. Note that if the language is niche, like only does network diagrams, it's useless comparing to other languages so will be out of scope for this site.`,
4949
},
5050
{
5151
question: 'Future plans?',

src/examples/0_basic/render/d2_dagre.svg

+1-1
Loading

src/examples/0_basic/render/d2_elk.svg

+1-1
Loading

src/examples/0_basic/render/d2_tala.svg

+1-1
Loading
+12-12
Loading
+11-11
Loading

0 commit comments

Comments
 (0)