Skip to content

Commit 12ab4ef

Browse files
committed
feat: add tabs functionality and enhance styling for better user experience
1 parent 9817877 commit 12ab4ef

File tree

7 files changed

+647
-3
lines changed

7 files changed

+647
-3
lines changed

.github/workflows/deploy-pages.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ jobs:
2626
run: |
2727
mkdir bin
2828
curl -sSL https://github.com/RustLangES/mdBook/releases/download/v0.4.36-localization-v0.6/mdbook-v0.4.36-localization-v0.6-x86_64-unknown-linux-gnu.tar.gz | tar -xz --directory=bin
29+
curl -sSL https://github.com/RustForWeb/mdbook-plugins/releases/download/v0.2.3/mdbook-tabs-v0.2.3-x86_64-unknown-linux-gnu.tar.gz | tar -xz --directory=bin
2930
echo "$(pwd)/bin" >> ${GITHUB_PATH}
3031
- name: Build with mdBook
3132
run: mdbook build

book.toml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,11 +21,13 @@ go = "#"
2121
[output.html.playground]
2222
editable = true
2323

24+
[preprocessor.tabs]
25+
2426

2527
[output.html]
2628
site-url = "https://go-book.rustlang-es.org"
2729
git-repository-url = "https://github.com/RustLangES/rust-para-go-devs"
2830
git-repository-icon = "fa-github"
2931
edit-url-template = "https://github.com/RustLangES/rust-para-go-devs/edit/main/{path}"
30-
additional-css = ["theme/extra.css", "theme/pagetoc.css"]
31-
additional-js = ["theme/pagetoc.js"]
32+
additional-css = ["theme/extra.css", "theme/pagetoc.css", "theme/tabs.css"]
33+
additional-js = ["theme/pagetoc.js", "theme/tabs.js"]

src/es/SUMMARY.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,4 +17,5 @@
1717
- [Nulabilidad y Opcionalidad](./quick-comparisons/nullability-and-optionality.md)
1818
- [Manejo de errores](./quick-comparisons/error-handling.md)
1919
- [Fundamental](./fundamental.md)
20-
- [Ownership y Borrowing](./fundamental/ownership-and-borrowing.md)
20+
- [Ownership y Borrowing](./fundamental/ownership-and-borrowing.md)
21+
- [Organización de código](./fundamental/code-organization.md)

0 commit comments

Comments
 (0)