Skip to content

Commit

Permalink
Merge pull request #21 from webdevnerdstuff/dev
Browse files Browse the repository at this point in the history
Updating documentation
  • Loading branch information
webdevnerdstuff authored Jun 12, 2023
2 parents 574589b + 538a87d commit 4f59812
Showing 1 changed file with 48 additions and 6 deletions.
54 changes: 48 additions & 6 deletions src/components/Examples/AdditionalLangExamples.vue
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,25 @@
</div>
</div>

<div id="additional-languages-json-usage-example" class="row mb-4">
<div
v-if="selectedLibrary.id === 'highlightjs'"
id="additional-languages-json-usage-example"
class="row mb-4"
>
<div class="col-12">
<p>
{{ selectedLibrary.label }} does not load all languages by default, but this component does. It was the best
solution I could come up with as importing additional languages the Highlight.js way, was not working as I had
hoped/intended.
</p>
</div>
</div>

<div
v-else
id="additional-languages-json-usage-example"
class="row mb-4"
>
<div class="col-12">
<p>
{{ selectedLibrary.label }} does not load all languages by default. In
Expand All @@ -17,7 +35,11 @@
</div>

<!-- ======================= Typescript Example -->
<div id="additional-languages-ts-usage-example" class="row mb-4">
<div
v-if="selectedLibrary.id === 'prism'"
id="additional-languages-ts-usage-example"
class="row mb-4"
>
<div class="col-12">
<CodeBlock
:code="usageExamples[selectedLibrary.id].typescript"
Expand All @@ -31,7 +53,10 @@
</div>
</div>

<div id="additional-languages-ts-example" class="row mb-4">
<div
id="additional-languages-ts-example"
class="row mb-4"
>
<div class="col-12">
<CodeBlock
:code="typescriptExample"
Expand All @@ -45,7 +70,12 @@
</div>
</div>

<div id="additional-languages-json-example" class="row mb-4">
<!-- ======================= JSON Example -->
<div
v-if="selectedLibrary.id === 'prism'"
id="additional-languages-json-usage-example"
class="row mb-4"
>
<div class="col-12">
<CodeBlock
:code="usageExamples[selectedLibrary.id].json"
Expand All @@ -57,6 +87,12 @@
:theme="selectedTheme"
/>
</div>
</div>

<div
id="additional-languages-json-example"
class="row mb-4"
>
<div class="col-12">
<CodeBlock
:code="jsonExample"
Expand All @@ -72,7 +108,10 @@
</div>

<!-- ======================= PHP Example -->
<div id="additional-languages-php-usage-example" class="row mb-4">
<div
id="additional-languages-php-usage-example"
class="row mb-4"
>
<div class="col-12">
<CodeBlock
:code="usageExamples[selectedLibrary.id].php"
Expand All @@ -86,7 +125,10 @@
</div>
</div>

<div id="additional-languages-php-example" class="row mb-4">
<div
id="additional-languages-php-example"
class="row mb-4"
>
<div class="col-12">
<CodeBlock
:code="phpExample"
Expand Down

0 comments on commit 4f59812

Please sign in to comment.