Skip to content

Commit cf098a4

Browse files
committed
minor fixes
1 parent b1eab5a commit cf098a4

5 files changed

Lines changed: 11 additions & 6 deletions

File tree

docs/docs/languages/minizinc.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -126,8 +126,8 @@ Using a [MiniZinc plugin](https://github.com/live-codes/prettier-plugin-minizinc
126126

127127
## Limitations
128128

129-
Currently, [visualizations](https://docs.minizinc.dev/en/stable/visualisation.html) are not supported out-of-the-box.
130-
However, using the [helper methods](#usage-from-javascript), and based on [official implementations for visualisations](https://github.com/MiniZinc/libminizinc/tree/master/share/minizinc/std/ide), it should be possible to support them.
129+
Currently, [visualisations](https://docs.minizinc.dev/en/stable/visualisation.html) are not supported out-of-the-box.
130+
However, using the [helper methods](#usage-from-javascript), and based on [official implementations](https://github.com/MiniZinc/libminizinc/tree/master/share/minizinc/std/ide), it should be possible to create custom visualisations.
131131

132132
Example:
133133

src/livecodes/html/language-info.html

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -943,6 +943,11 @@ <h3 data-i18n="language-info:minizinc.name">MiniZinc</h3>
943943
>MiniZinc tutorial</a
944944
>
945945
</li>
946+
<li>
947+
<a href="{{DOCS_BASE_URL}}languages/minizinc" target="_blank" rel="noopener"
948+
>LiveCodes Documentations</a
949+
>
950+
</li>
946951
<li>
947952
<a href="?template=minizinc" class="button" target="_parent" data-template="minizinc"
948953
>Load starter template</a

src/livecodes/i18n/locales/en/language-info.lokalise.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -497,8 +497,8 @@
497497
"translation": "MiniZinc is a high-level constraint modelling language that allows you to easily express and solve discrete optimisation problems."
498498
},
499499
"minizinc.link": {
500-
"notes": "### <tag-1> ###\n<li />\n\n### <tag-2> ###\n<a href=\"https://www.minizinc.org/\" target=\"_blank\" rel=\"noopener\" />\n\n### <tag-3> ###\n<li />\n\n### <tag-4> ###\n<a href=\"https://www.minizinc.org/resources/\" target=\"_blank\" rel=\"noopener\" />\n\n### <tag-5> ###\n<li />\n\n### <tag-6> ###\n<a href=\"https://docs.minizinc.dev/en/stable/part_2_tutorial.html\" target=\"_blank\" rel=\"noopener\" />\n\n### <tag-7> ###\n<li />\n\n### <tag-8> ###\n<a href=\"?template=minizinc\" class=\"button\" target=\"_parent\" data-template=\"minizinc\" />\n\n",
501-
"translation": "<tag-1> <tag-2>MiniZinc official website</tag-2> </tag-1> <tag-3> <tag-4>MiniZinc documentation</tag-4> </tag-3> <tag-5> <tag-6>MiniZinc tutorial</tag-6> </tag-5> <tag-7> <tag-8>Load starter template</tag-8> </tag-7>"
500+
"notes": "### <tag-1> ###\n<li />\n\n### <tag-2> ###\n<a href=\"https://www.minizinc.org/\" target=\"_blank\" rel=\"noopener\" />\n\n### <tag-3> ###\n<li />\n\n### <tag-4> ###\n<a href=\"https://www.minizinc.org/resources/\" target=\"_blank\" rel=\"noopener\" />\n\n### <tag-5> ###\n<li />\n\n### <tag-6> ###\n<a href=\"https://docs.minizinc.dev/en/stable/part_2_tutorial.html\" target=\"_blank\" rel=\"noopener\" />\n\n### <tag-7> ###\n<li />\n\n### <tag-8> ###\n<a href=\"{{DOCS_BASE_URL}}languages/minizinc\" target=\"_blank\" rel=\"noopener\" />\n\n### <tag-9> ###\n<li />\n\n### <tag-10> ###\n<a href=\"?template=minizinc\" class=\"button\" target=\"_parent\" data-template=\"minizinc\" />\n\n",
501+
"translation": "<tag-1> <tag-2>MiniZinc official website</tag-2> </tag-1> <tag-3> <tag-4>MiniZinc documentation</tag-4> </tag-3> <tag-5> <tag-6>MiniZinc tutorial</tag-6> </tag-5> <tag-7> <tag-8>LiveCodes Documentations</tag-8> </tag-7> <tag-9> <tag-10>Load starter template</tag-10> </tag-9>"
502502
},
503503
"minizinc.name": {
504504
"notes": "",

src/livecodes/i18n/locales/en/language-info.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -218,7 +218,7 @@ const languageInfo = {
218218
},
219219
minizinc: {
220220
desc: 'MiniZinc is a high-level constraint modelling language that allows you to easily express and solve discrete optimisation problems.',
221-
link: '<1> <2>MiniZinc official website</2> </1> <3> <4>MiniZinc documentation</4> </3> <5> <6>MiniZinc tutorial</6> </5> <7> <8>Load starter template</8> </7>',
221+
link: '<1> <2>MiniZinc official website</2> </1> <3> <4>MiniZinc documentation</4> </3> <5> <6>MiniZinc tutorial</6> </5> <7> <8>LiveCodes Documentations</8> </7> <9> <10>Load starter template</10> </9>',
222222
name: 'MiniZinc',
223223
},
224224
mjml: {

src/livecodes/languages/minizinc/lang-minizinc-script.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ livecodes.minizinc = {
125125
const output = lastOutput === resultOutput ? '' : resultOutput;
126126
const msg = typeof output === 'string' ? output + status : output;
127127
// eslint-disable-next-line no-console
128-
console.log(msg);
128+
if (msg) console.log(msg);
129129
resolve(result);
130130
});
131131
});

0 commit comments

Comments
 (0)