Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Customizing list icons: give a way to apply to current item only #2454

Merged
merged 88 commits into from
Apr 7, 2024
Merged
Show file tree
Hide file tree
Changes from 87 commits
Commits
Show all changes
88 commits
Select commit Hold shift + click to select a range
22853a6
Update templates and add ab3 template
KevinEyo1 Jan 27, 2024
e76fb5f
Remove ab3 template folder
KevinEyo1 Jan 27, 2024
e3c1138
Update files
KevinEyo1 Jan 27, 2024
ef96316
Remove unneeded changes
KevinEyo1 Jan 28, 2024
5444909
a
KevinEyo1 Jan 29, 2024
a4a4d72
Revert test changes
KevinEyo1 Jan 29, 2024
ea3aca7
Merge branch 'MarkBind:master' into master
KevinEyo1 Feb 4, 2024
a7f1a81
Replace ab3 with project
KevinEyo1 Feb 4, 2024
d926774
Remove ab3 package
KevinEyo1 Feb 4, 2024
c21eefb
Add project template folder
KevinEyo1 Feb 4, 2024
c0f79a2
Merge branch 'MarkBind:master' into master
KevinEyo1 Feb 9, 2024
c0207fd
Update project template
KevinEyo1 Feb 11, 2024
b6ed49a
Merge branch 'MarkBind:master' into 2384-markbind-template-project
KevinEyo1 Feb 11, 2024
e40a454
Update template file
KevinEyo1 Feb 11, 2024
8fd7b50
Remove unused gemfile.lock
KevinEyo1 Feb 11, 2024
c55e5b9
Merge branch '2384-markbind-template-project' of https://github.com/K…
KevinEyo1 Feb 11, 2024
5ada339
Update contributor list
KevinEyo1 Feb 11, 2024
610e546
Fix indentations
KevinEyo1 Feb 11, 2024
ab51281
Add expected template files for testing
KevinEyo1 Feb 12, 2024
9721e3e
Remove contributor part
KevinEyo1 Feb 16, 2024
47ea93d
Remove traces of ab3
KevinEyo1 Feb 18, 2024
45b8846
Merge branch 'MarkBind:master' into master
KevinEyo1 Feb 18, 2024
a3e5ae2
Merge branch 'MarkBind:master' into 2384-markbind-template-project
KevinEyo1 Feb 18, 2024
fa5c24d
Update tests
KevinEyo1 Feb 18, 2024
21628f7
Merge branch 'MarkBind:master' into master
KevinEyo1 Feb 28, 2024
3c704a8
Merge branch 'MarkBind:master' into 2384-markbind-template-project
KevinEyo1 Feb 28, 2024
b0b9deb
Improve template based on reviews
KevinEyo1 Feb 28, 2024
6c9c3ad
Merge branch '2384-markbind-template-project' of https://github.com/K…
KevinEyo1 Feb 28, 2024
e39a176
Update expected tests
KevinEyo1 Feb 28, 2024
b606951
Merge branch 'master' into 2384-markbind-template-project
KevinEyo1 Mar 7, 2024
0f10968
Update project template
KevinEyo1 Mar 7, 2024
db30870
Change CustomListIconProcessor
KevinEyo1 Mar 10, 2024
9df6545
Add one-off feature
KevinEyo1 Mar 11, 2024
145abbd
Merge branch 'master' of https://github.com/KevinEyo1/markbind into 2…
KevinEyo1 Mar 11, 2024
75073c6
Update files
KevinEyo1 Mar 11, 2024
4c0c56c
Remove extra files
KevinEyo1 Mar 12, 2024
102ed81
Remove extra folder
KevinEyo1 Mar 12, 2024
969865f
Add how to check if permissions are given
yucheng11122017 Mar 12, 2024
46397e7
Merge branch 'master' of https://github.com/MarkBind/markbind
yucheng11122017 Mar 14, 2024
21fa90c
Merge branch 'master' of https://github.com/KevinEyo1/markbind
KevinEyo1 Mar 15, 2024
0bc66f7
Merge branch 'master' of https://github.com/MarkBind/markbind
yucheng11122017 Mar 17, 2024
0ebb7cd
Merge branch 'MarkBind:master' into master
KevinEyo1 Mar 18, 2024
74f8303
Add changes
KevinEyo1 Mar 20, 2024
f798b1d
Merge branch 'master' of https://github.com/MarkBind/markbind
KevinEyo1 Mar 20, 2024
ab7558a
Add tests
KevinEyo1 Mar 20, 2024
a22b67e
Improve code quality
KevinEyo1 Mar 20, 2024
48399bd
Merge branch 'master' of https://github.com/MarkBind/markbind
KevinEyo1 Mar 20, 2024
991e0cf
Merge branch 'master' into 2405-customize-list-icon
KevinEyo1 Mar 20, 2024
a5c316c
Fix comma
KevinEyo1 Mar 20, 2024
cb84513
Fix merge conflict
yucheng11122017 Mar 23, 2024
b13906f
Fix code
KevinEyo1 Mar 25, 2024
701183b
Merge branch 'master' of https://github.com/MarkBind/markbind
KevinEyo1 Mar 25, 2024
819326f
Merge conflicts
KevinEyo1 Mar 25, 2024
4a83981
Merge branch 'master' of https://github.com/MarkBind/markbind
KevinEyo1 Mar 29, 2024
7e7cfb7
Merge branch 'master' of https://github.com/MarkBind/markbind
KevinEyo1 Mar 29, 2024
5b40f9e
Merge branch 'master' into 2405-customize-list-icon
KevinEyo1 Mar 29, 2024
a86e121
Fix nits
KevinEyo1 Mar 30, 2024
9106fee
Merge branch 'master' into 2405-customize-list-icon
KevinEyo1 Mar 30, 2024
85cddf2
Merge branch '2405-customize-list-icon' of https://github.com/KevinEy…
KevinEyo1 Mar 30, 2024
5655e7a
Fix nit
KevinEyo1 Mar 30, 2024
32bbfd9
Update docs
KevinEyo1 Mar 31, 2024
bf8aac5
Merge branch 'master' into 2405-customize-list-icon
KevinEyo1 Mar 31, 2024
57a9f9a
Merge branch 'master' of https://github.com/MarkBind/markbind
KevinEyo1 Mar 31, 2024
4730eba
add stuff
Apr 1, 2024
5c8bcfe
kevin
Apr 1, 2024
9198725
Merge branch 'master' into 2405-customize-list-icon
KevinEyo1 Apr 2, 2024
64819db
Merge pull request #32 from leongdl135/master
KevinEyo1 Apr 2, 2024
e2f6301
Allocate space for scrollbar in nav components
jingting1412 Apr 5, 2024
eb69423
Fix merge conflict
yucheng11122017 Apr 5, 2024
936dadc
Fix merge conflict
yucheng11122017 Apr 5, 2024
5b9e7d7
Revert "Fix merge conflict"
yucheng11122017 Apr 5, 2024
77a6a80
Merge branch 'master' of https://github.com/MarkBind/markbind
KevinEyo1 Apr 5, 2024
61d729f
Merge branch 'master' into 2405-customize-list-icon
KevinEyo1 Apr 5, 2024
e5e4502
Update docs/userGuide/syntax/lists.md
KevinEyo1 Apr 5, 2024
db2d1a6
Update packages/cli/test/functional/test_site/testList.md
KevinEyo1 Apr 5, 2024
3ece3a7
Merge branch 'master' into 2405-customize-list-icon
KevinEyo1 Apr 5, 2024
89c9f79
Merge branch 'master' into 2405-customize-list-icon
KevinEyo1 Apr 5, 2024
786faec
Fix nits
KevinEyo1 Apr 6, 2024
2873a6e
Merge branch 'master' of https://github.com/MarkBind/markbind
KevinEyo1 Apr 6, 2024
5f2d3a9
Merge branch 'master' into 2405-customize-list-icon
KevinEyo1 Apr 6, 2024
a7a1f83
Update files
KevinEyo1 Apr 6, 2024
012ac3a
Merge branch 'MarkBind:master' into master
KevinEyo1 Apr 6, 2024
b146085
Merge branch 'MarkBind:master' into 2405-customize-list-icon
KevinEyo1 Apr 6, 2024
b06f509
Pull changes
KevinEyo1 Apr 6, 2024
1a93c87
Merge branch '2405-customize-list-icon' of https://github.com/KevinEy…
KevinEyo1 Apr 6, 2024
0d615fa
Fix files
KevinEyo1 Apr 6, 2024
1accdb9
Merge branch 'master' into 2405-customize-list-icon
KevinEyo1 Apr 6, 2024
38b4887
fix small nits
yucheng11122017 Apr 7, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion docs/devGuide/projectManagement.md
Original file line number Diff line number Diff line change
Expand Up @@ -381,4 +381,4 @@ Note that:
* Result: 'tlylt' will be updated to have both icons(code and doc)

{% from "njk/common.njk" import previous_next %}
{{ previous_next('githubActions/markbindReusableWorkflows', 'styleGuides') }}
{{ previous_next('githubActions/markbindReusableWorkflows', 'styleGuides') }}
27 changes: 27 additions & 0 deletions docs/userGuide/syntax/lists.md
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,33 @@ Markdown can also be used in texts.
You may need to add escape characters when using special characters for Markdown in text.
</box>

**You can add an icon or text that only applies to a specific item by using the `once` attribute.**

<include src="codeAndOutput.md" boilerplate >
<variable name="highlightStyle">markdown</variable>
<variable name="code">
* Item 1 { icon="glyphicon-education" }
* Item 2 { icon="fas-code-branch" once=true }
* Item 2.1
* Item 2.2
* Item 3
</variable>
</include>

Subsequent items at the same level will not inherit icons or texts with the `once` attribute and will instead inherit the icons or texts before it.

The `once` attribute also applies to all other attributes such as `i-size` and `t-size` as seen below.

<include src="codeAndOutput.md" boilerplate >
<variable name="highlightStyle">markdown</variable>
<variable name="code">
* Item 1 { icon="glyphicon-education" i-size="40px" i-class="text-primary" }
* Item 2 { i-size="25px" once=true }
* Sub-item 2.1
* Item 3
</variable>
</include>

**You can adjust the icon and text's size by using the `i-size` and `t-size` attribute respectively.**

<include src="codeAndOutput.md" boilerplate >
Expand Down
Loading
Loading