Skip to content

Commit cb84513

Browse files
Fix merge conflict
1 parent 0bc66f7 commit cb84513

File tree

22 files changed

+304
-51
lines changed

22 files changed

+304
-51
lines changed

docs/devGuide/projectManagement.md

Lines changed: 16 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -99,17 +99,21 @@ For general best practices, refer to the guide [_Working with PRs_ @SE-EDU](http
9999

100100
## Doing a Release
101101

102-
<box type="important" seamless>
103-
104-
**Attention new maintainers!** Ensure that:
105-
106-
* You have the rights to push to master branch on [MarkBind's repository](https://github.com/MarkBind/markbind), and also to make new releases.
107-
* You can check by running `git push --dry-run` to check if you have the correct permissions
108-
* You have the rights on [npm](https://www.npmjs.com/) to make a new release.
109-
* You have logged in to npm on your terminal with `npm login` (necessary to publish packages to npm).
110-
</box>
111-
112-
<br>
102+
1. **Make sure you have the correct permissions** for [MarkBind's GitHub repository](https://github.com/MarkBind/markbind) and [npm organization](https://www.npmjs.com/org/markbind).
103+
* For GitHub, you need rights to **push to master branch** and **make new releases**.
104+
* To check if you can make a new release and push to master branch, go to the [release page](https://github.com/MarkBind/markbind/releases) and check for the "Draft a new release" button.
105+
If missing, you may not have permissions for a release.
106+
107+
* For npm, you need to be in the [MarkBind organization](https://www.npmjs.com/org/markbind).
108+
109+
* To check if you are in the MarkBind organization, go to your npm profile and check if MarkBind is listed under organizations.
110+
<pic src="/images/npm-profile.jpg" width="100%" alt="npm profile">
111+
Example of profile that has been added to Markbind organisation
112+
</pic>
113+
* There should be 4 packages listed under the organization, `markbind-cli`, `@markbind/core`, `@markbind/core-web` and `@markbind/vue_components`.
114+
* Notably, the first three are packages that we publish every release while the last one has since become a private package consumed internally.
115+
116+
1. **Login to your npm account in your terminal** by running `npm login`.
113117

114118
1. **Make sure to start with a "clean slate"** by running `npx lerna clean` and then `npm run setup` in the root MarkBind directory.
115119

@@ -378,4 +382,4 @@ Note that:
378382
* Result: 'tlylt' will be updated to have both icons(code and doc)
379383

380384
{% from "njk/common.njk" import previous_next %}
381-
{{ previous_next('githubActions/markbindReusableWorkflows', 'styleGuides') }}
385+
{{ previous_next('githubActions/markbindReusableWorkflows', 'styleGuides') }}

docs/images/npm-profile.jpg

92.1 KB
Loading

docs/userGuide/syntax/annotations.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ The x and y coordinates of each Annotate Point are relative to the image and are
1414
<variable name="highlightStyle">html</variable>
1515
<variable name="code">
1616

17-
<annotate src="../../images/annotateSampleImage.png" width="500" alt="Sample Image">
17+
<annotate src="../../images/annotateSampleImage.png" width="500" alt="Sample Image" lazy>
1818
<!-- Minimal Point -->
1919
<a-point x="25%" y="25%" content="This point is 25% from the left and 25% from the top" />
2020
<!-- Customize Point Size (default size is 40px) -->
@@ -191,11 +191,12 @@ Here we showcase some use cases of the Annotate feature.
191191
This is effectively the same as the options used for the [picture](#pictures) component.
192192

193193
| Name | Type | Default | Description |
194-
| ------ | --------- | ------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
194+
|--------| --------- | ------- |-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
195195
| alt | `string` | | **This must be specified.**<br>The alternative text of the image. |
196196
| src | `string` | | **This must be specified.**<br>The URL of the image.<br>The URL can be specified as absolute or relative references. More info in: _[Intra-Site Links]({{baseUrl}}/userGuide/formattingContents.html#intraSiteLinks)_ |
197197
| height | `string` |`''`| The height of the image in pixels. |
198198
| width | `string` |`''`| The width of the image in pixels.<br>If both width and height are specified, width takes priority over height. It is to maintain the image's aspect ratio. |
199+
| lazy | `boolean` | false | The `<annotate>` component lazy loads if this attribute is specified.<br>**Either the height or width should be specified to avoid layout shifts while lazy loading images.** |
199200

200201
</div>
201202

docs/userGuide/syntax/code.md

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -281,7 +281,17 @@ A _wrap text_ button can be added to code blocks using the `codeBlockWrapButtons
281281
##### Printing optimization
282282

283283
<div id="code-print-optimization">
284-
Markbind enhances the readability of your code blocks for printing by applying soft wrapping, ensuring code doesn't get cut off. Additionally, line numbers are added to maintain context when wrapping occurs.
284+
Markbind enhances the readability of your code blocks for printing by
285+
286+
- Applying soft wrapping, ensuring code doesn't get cut off
287+
- Adding line numbers to maintain context when wrapping occurs
288+
- Automatically changing dark code theme to light
289+
- Removing [codeBlockCopyButtons]({{baseUrl}}/userGuide/formattingContents.html#copy-button) and [codeBlockWrapButtons]({{baseUrl}}/userGuide/formattingContents.html#wrap-text-button)
290+
291+
<box type="warning" seamless>
292+
There are some issues with printing in Firefox. Please use other browsers such as Chrome if these issues persist.
293+
</box>
294+
285295
</div>
286296
<br>
287297

docs/userGuide/syntax/footnotes.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,5 +46,6 @@ belong to the previous footnote.
4646
```
4747
</div>
4848
<div id="examples" class="d-none">
49+
4950
1 + 1 = 2 ^[Math]
5051
</div>

docs/userGuide/syntax/pictures.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
<include src="codeAndOutput.md" boilerplate >
66
<variable name="highlightStyle">html</variable>
77
<variable name="code">
8-
<pic src="https://markbind.org/images/logo-lightbackground.png" width="300" alt="Logo">
8+
<pic src="https://markbind.org/images/logo-lightbackground.png" width="300" alt="Logo" lazy>
99
MarkBind Logo
1010
</pic>
1111
</variable>
@@ -18,11 +18,12 @@ alt | `string` | | **This must be specified.**<br>The alternative text of the im
1818
height | `string` | | The height of the image in pixels.
1919
src | `string` | | **This must be specified.**<br>The URL of the image.<br>The URL can be specified as absolute or relative references. More info in: _[Intra-Site Links]({{baseUrl}}/userGuide/formattingContents.html#intraSiteLinks)_
2020
width | `string` | | The width of the image in pixels.<br>If both width and height are specified, width takes priority over height. It is to maintain the image's aspect ratio.
21+
lazy | `boolean` | false | The `<pic>` component lazy loads if this attribute is specified.<br>**Either the height or width should be specified to avoid layout shifts while lazy loading images.**
2122

2223
<div id="short" class="d-none">
2324

2425
```html
25-
<pic src="https://markbind.org/images/logo-lightbackground.png" width="300" alt="Logo">
26+
<pic src="https://markbind.org/images/logo-lightbackground.png" width="300" alt="Logo" lazy>
2627
MarkBind Logo
2728
</pic>
2829
```

packages/cli/test/functional/test_site/expected/index.html

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -237,6 +237,11 @@ <h3 id="testing-site-nav">Testing Site-Nav<a class="fa fa-anchor" href="#testing
237237
Here is an inline note.<trigger for="pop:footnotefn-1-3"><sup class="footnote-ref"><a aria-describedby="footnote-label" href="#fn-1-3">[3]</a></sup></trigger>
238238
</p>
239239
</div>
240+
<p><strong>Test include footnotes from hash</strong></p>
241+
<div>
242+
<p>text<trigger for="pop:footnotefn-2-1"><sup class="footnote-ref"><a aria-describedby="footnote-label" href="#fn-2-1">[1]</a></sup></trigger>, text2<trigger for="pop:footnotefn-2-2"><sup class="footnote-ref"><a aria-describedby="footnote-label" href="#fn-2-2">[2]</a></sup></trigger>
243+
</p>
244+
</div>
240245
<p><strong>Nunjucks SetExt</strong></p>
241246
<div> front back </div>
242247
<p>arrayVarItem1</p>
@@ -789,6 +794,29 @@ <h6 class="always-index" id="level-6-header-outside-headingsearchindex-with-alwa
789794
note.</p>
790795
</li>
791796

797+
798+
<popover id="pop:footnotefn-2-1">
799+
<template #content>
800+
<div>
801+
<p>footnote1</p>
802+
803+
</div>
804+
</template>
805+
</popover>
806+
<popover id="pop:footnotefn-2-2">
807+
<template #content>
808+
<div>
809+
<p>footnote2</p>
810+
811+
</div>
812+
</template>
813+
</popover>
814+
<li id="fn-2-1" class="footnote-item">
815+
<p>footnote1</p>
816+
</li>
817+
<li id="fn-2-2" class="footnote-item">
818+
<p>footnote2</p>
819+
</li>
792820
</ol>
793821
</section>
794822

packages/cli/test/functional/test_site/expected/index.page-vue-render.js

Lines changed: 10 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

packages/cli/test/functional/test_site/index.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,10 @@ Hence, the contained markdown should be parsed and output as is, without any par
3737

3838
<include src="testFootnotes.md" />
3939

40+
**Test include footnotes from hash**
41+
42+
<include src="testHashFootnotes.md#import" />
43+
4044
**Nunjucks SetExt**
4145

4246
{% ext externalVar = "_markbind/variable.json" %}
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
<div id="import">
2+
3+
text^[footnote1], text2^[footnote2]
4+
</div>

0 commit comments

Comments
 (0)