Skip to content

Commit e94348f

Browse files
committed
Fix coding examples in the demo app
1 parent 5bf8afc commit e94348f

File tree

8 files changed

+22
-22
lines changed

8 files changed

+22
-22
lines changed

projects/ngx-sharebuttons-demo/src/app/pages/button-c/button-c.component.html

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -17,15 +17,15 @@ <h1>Share Button Component</h1>
1717
<p>Install the following packages</p>
1818

1919
<h4>NPM</h4>
20-
<hl-code [code]="'/public/code-examples/install-with-icons.bash' | codeFromUrl | async"/>
20+
<hl-code [code]="'code-examples/install-with-icons.bash' | codeFromUrl | async"/>
2121
</section>
2222

2323
<section>
2424
<section-title>Import the styles</section-title>
2525

2626
<p>Import share buttons theme in the global style<b>"app/src/style.scss"</b></p>
2727

28-
<hl-code [code]="'/public/code-examples/theme.scss' | codeFromUrl | async"/>
28+
<hl-code [code]="'code-examples/theme.scss' | codeFromUrl | async"/>
2929

3030
<note>The default theme is optional, you can replace it with other theme or create your own theme from scratch,
3131
see the <a routerLink="/styling-guide">Styling Guide</a></note>
@@ -37,17 +37,17 @@ <h4>NPM</h4>
3737
<section>
3838
<section-title>Basic Usage</section-title>
3939

40-
<hl-code [code]="'/public/code-examples/single-share-button/recommended-example.html' | codeFromUrl | async"
40+
<hl-code [code]="'code-examples/single-share-button/recommended-example.html' | codeFromUrl | async"
4141
[languages]="['html']"/>
4242

43-
<code-switcher [code]="'/public/code-examples/single-share-button/basic-example.ts' | codeFromUrl | async"
43+
<code-switcher [code]="'code-examples/single-share-button/basic-example.ts' | codeFromUrl | async"
4444
class="center">
4545
<share-button button="facebook" theme="classic-dark" text="Share" showText/>
4646
<share-button button="x" theme="classic-dark" text="Post on X" showText/>
4747
<share-button button="pinterest" theme="classic-dark" text="Pin" showText/>
4848
</code-switcher>
4949

50-
<code-switcher [code]="'/public/code-examples/single-share-button/override-icons-example.ts' | codeFromUrl | async"
50+
<code-switcher [code]="'code-examples/single-share-button/override-icons-example.ts' | codeFromUrl | async"
5151
class="center">
5252
<share-button button="facebook" theme="circles-dark" [icon]="fbIcon"/>
5353
<share-button button="x" theme="circles-dark" [icon]="tweetIcon"/>

projects/ngx-sharebuttons-demo/src/app/pages/button-d/button-d.component.html

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ <h1>Share Button Directive</h1>
1717
<p>Install the following packages</p>
1818

1919
<h4>NPM</h4>
20-
<hl-code [code]="'/public/code-examples/install.bash' | codeFromUrl | async"/>
20+
<hl-code [code]="'code-examples/install.bash' | codeFromUrl | async"/>
2121
</section>
2222

2323
<section>
@@ -27,13 +27,13 @@ <h4>NPM</h4>
2727
class="hljs">shareButton="x"</code>
2828
</p>
2929

30-
<hl-code [code]="'/public/code-examples/share-directive/basic-example.ts' | codeFromUrl | async"/>
30+
<hl-code [code]="'code-examples/share-directive/basic-example.ts' | codeFromUrl | async"/>
3131

3232
<b>Example with icon</b>
3333

34-
<hl-code [code]="'/public/code-examples/share-directive/standard-example.ts' | codeFromUrl | async"/>
34+
<hl-code [code]="'code-examples/share-directive/standard-example.ts' | codeFromUrl | async"/>
3535

36-
<code-switcher [code]="'/public/code-examples/share-directive/recommended-example.html' | codeFromUrl | async"
36+
<code-switcher [code]="'code-examples/share-directive/recommended-example.html' | codeFromUrl | async"
3737
[languages]="['html']"
3838
fill>
3939
<div style="display: flex; flex-direction: column; align-items: center; gap: 40px;">

projects/ngx-sharebuttons-demo/src/app/pages/buttons-c/buttons-c.component.html

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ <h1>Share Buttons Component</h1>
1818
<p>Install the following packages</p>
1919

2020
<h4>NPM</h4>
21-
<hl-code [code]="'/public/code-examples/install-with-icons.bash' | codeFromUrl | async"/>
21+
<hl-code [code]="'code-examples/install-with-icons.bash' | codeFromUrl | async"/>
2222
</section>
2323

2424
<section>
@@ -28,7 +28,7 @@ <h4>NPM</h4>
2828
<b>"app/src/style.scss"</b>
2929
</p>
3030

31-
<hl-code [code]="'/public/code-examples/theme.scss' | codeFromUrl | async"/>
31+
<hl-code [code]="'code-examples/theme.scss' | codeFromUrl | async"/>
3232

3333
<note>The default theme is optional, you can replace it with other theme or create your own theme from scratch,
3434
see the <a routerLink="/styling-guide">Styling Guide</a></note>
@@ -40,10 +40,10 @@ <h4>NPM</h4>
4040
<section>
4141
<section-title>Basic Usage</section-title>
4242

43-
<hl-code [code]="'/public/code-examples/share-buttons/basic-example.ts' | codeFromUrl | async"
43+
<hl-code [code]="'code-examples/share-buttons/basic-example.ts' | codeFromUrl | async"
4444
[languages]="['ts']"/>
4545

46-
<code-switcher [code]="'/public/code-examples/share-buttons/example-1.html' | codeFromUrl | async"
46+
<code-switcher [code]="'code-examples/share-buttons/example-1.html' | codeFromUrl | async"
4747
[languages]="['html']"
4848
class="center">
4949
<share-buttons show="11" description="Test me"/>

projects/ngx-sharebuttons-demo/src/app/pages/custom-button/custom-button.component.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ <h1>Add custom share button</h1>
1212

1313
<p></p>
1414

15-
<hl-code [code]="'/public/code-examples/custom-button/custom-button.ts' | codeFromUrl | async"/>
15+
<hl-code [code]="'code-examples/custom-button/custom-button.ts' | codeFromUrl | async"/>
1616

1717
<p>The available inputs for sharing parameters are <code class="hljs">url</code>,
1818
<code class="hljs">title</code>, <code class="hljs">description</code>, <code class="hljs">image</code>,

projects/ngx-sharebuttons-demo/src/app/pages/faq/faq.component.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ <h1>Frequently Asked Questions</h1>
2727
<p>There are many other meta tags available that can be used to specify different
2828
types of content. But, in general, the following will suffice</p>
2929

30-
<hl-code [code]="'/public/code-examples/faq/meta-tags.html' | codeFromUrl | async" [languages]="['html']"/>
30+
<hl-code [code]="'code-examples/faq/meta-tags.html' | codeFromUrl | async" [languages]="['html']"/>
3131

3232
<p>Check this cool <a href="https://megatags.co/#generate-tags">online meta tags generator</a></p>
3333

@@ -61,11 +61,11 @@ <h1>Frequently Asked Questions</h1>
6161
</section-title>
6262
<p>Use the option <code class="hljs">include</code> to set share buttons order, here is an example:</p>
6363

64-
<hl-code [code]="'/public/code-examples/faq/buttons-order-global.ts' | codeFromUrl | async"/>
64+
<hl-code [code]="'code-examples/faq/buttons-order-global.ts' | codeFromUrl | async"/>
6565

6666
Or directly using the <b>include</b> input in ShareButtons components
6767

68-
<hl-code [code]="'/public/code-examples/faq/buttons-order.html' | codeFromUrl | async" [languages]="['html']"/>
68+
<hl-code [code]="'code-examples/faq/buttons-order.html' | codeFromUrl | async" [languages]="['html']"/>
6969

7070
</section>
7171

projects/ngx-sharebuttons-demo/src/app/pages/global-options/global-options.component.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ <h1>Global Options</h1>
1111

1212
<p><b>Example</b></p>
1313

14-
<hl-code [code]="'/public/code-examples/global-options/global-options.ts' | codeFromUrl | async"/>
14+
<hl-code [code]="'code-examples/global-options/global-options.ts' | codeFromUrl | async"/>
1515

1616
</section>
1717

projects/ngx-sharebuttons-demo/src/app/pages/icons/icons.component.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ <h1>Icons Guide</h1>
1717
<section-title>Usage</section-title>
1818
<p>You can use the function <code class="hljs">shareIcons</code> inside <code class="hljs">provideShareButtonsOptions</code> to import all share buttons icons.</p>
1919

20-
<hl-code [code]="'/public/code-examples/icons-guide/icons-guide.ts' | codeFromUrl | async"/>
20+
<hl-code [code]="'code-examples/icons-guide/icons-guide.ts' | codeFromUrl | async"/>
2121
</section>
2222

2323
<section>
@@ -27,7 +27,7 @@ <h1>Icons Guide</h1>
2727
manually.</p>
2828
<p>Let's say you want to use facebook square icon instead of the default one</p>
2929

30-
<hl-code [code]="'/public/code-examples/icons-guide/custom-icons.ts' | codeFromUrl | async"/>
30+
<hl-code [code]="'code-examples/icons-guide/custom-icons.ts' | codeFromUrl | async"/>
3131
</section>
3232
</doc-container>
3333

projects/ngx-sharebuttons-demo/src/app/pages/styling/styling.component.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ <h1>Styling Guide</h1>
99

1010
<p>Here are a list of the CSS variables you can use to change main styles:</p>
1111

12-
<hl-code [code]="'/public/code-examples/styling/variables.scss' | codeFromUrl | async" [languages]="['scss']"/>
12+
<hl-code [code]="'code-examples/styling/variables.scss' | codeFromUrl | async" [languages]="['scss']"/>
1313

1414
<p>If you still need to change other CSS rules, see the classes in the next section.</p>
1515
</section>
@@ -18,7 +18,7 @@ <h1>Styling Guide</h1>
1818
<section-title>Create custom theme</section-title>
1919
<p>There are several classes to help you adjust your custom styles</p>
2020

21-
<hl-code [code]="'/public/code-examples/styling/styling.scss' | codeFromUrl | async" [languages]="['scss']"/>
21+
<hl-code [code]="'code-examples/styling/styling.scss' | codeFromUrl | async" [languages]="['scss']"/>
2222

2323
<p>If you use <b>.sb-<span style="text-decoration: underline">moon</span>-theme</b> then the theme name will
2424
become <b>moon</b>:</p>

0 commit comments

Comments
 (0)