Skip to content

Commit 9a43dca

Browse files
committed
docs: fix default language
1 parent ede6828 commit 9a43dca

File tree

10 files changed

+22
-54
lines changed

10 files changed

+22
-54
lines changed

README.md

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -59,20 +59,20 @@ your dot file progressively.
5959

6060
### Using [cargo](https://doc.rust-lang.org/cargo/)
6161

62-
```shell script
62+
```bash
6363
cargo install toml-bombadil
6464
```
6565

6666
### Archlinux
67-
```shell script
67+
```bash
6868
yay -S bombadil-bin
6969
```
7070

7171
## Getting started
7272

7373
**1. Setup :**
7474

75-
```shell script
75+
```bash
7676
git clone https://github.com/my_org/dotfiles
7777
cd my_dotfiles && touch bombadil.toml
7878
```
@@ -109,13 +109,13 @@ alacritty = { source = "alacritty", target = ".config/alacritty/alacritty.yml" }
109109
For Bombadil to be able to run from any directory and use different config files we need to symlink bombadil config to
110110
`$XDG_CONFIG_DIR/bombadil.toml` :
111111

112-
```shell script
112+
```bash
113113
bombadil install my_dotfiles/
114114
```
115115

116116
**4. Install template and symlink :**
117117

118-
```shell script
118+
```bash
119119
bombadil link
120120
```
121121

@@ -370,7 +370,7 @@ and some of them uses a corporate repository :
370370

371371
let's assume your dotfiles have the following structure :
372372

373-
```shell script
373+
```bash
374374
~/bombadil-example
375375
├── bombadil.toml
376376
└── maven
@@ -406,13 +406,13 @@ OPTIONS:
406406
```
407407

408408
`bombadil link` would produce the following link :
409-
```shell script
409+
```bash
410410
❯ bombadil link
411411
"/home/okno/dotfiles/.dots/maven/settings.xml" => "/home/okno/.m2/settings.xml"
412412
```
413413

414414
Linking with the `corporate` profile would use the alternate source for `.m2/settings.xml` :
415-
```shell script
415+
```bash
416416
❯ bombadil link -p corporate
417417
"/home/okno/dotfiles/.dots/maven/settings.corporate.xml" => "/home/okno/.m2/settings.xml"
418418
```
@@ -421,7 +421,7 @@ Linking with the `corporate` profile would use the alternate source for `.m2/set
421421

422422
Here is an example bombadil config :
423423

424-
```shell script
424+
```bash
425425
~/bombadil-example
426426
├── bashrc
427427
├── bombadil.toml
@@ -444,26 +444,26 @@ bashrc = { source = "bashrc", target = ".bashrc"}
444444
vars = [ "java10-vars.toml" ]
445445
```
446446

447-
```shell script
447+
```bash
448448
# ~/bombadil-example/bashrc
449449
export JAVA_HOME=__[java_home]__
450450
# ...
451451
```
452452

453-
```shell script
453+
```bash
454454
# ~/bombadil-example/vars.toml
455455
java_home = "/etc/java-openjdk"
456456
# ...
457457
```
458458

459-
```shell script
459+
```bash
460460
# ~/bombadil-example/java10-vars.toml
461461
java_home = "/etc/java10-openjdk"
462462
# ...
463463
```
464464

465465
Running `bombadil link -p corporate` would produce the following `.bashrc` :
466-
```shell script
466+
```bash
467467
export JAVA_HOME=/etc/java10-openjdk
468468
```
469469

@@ -578,7 +578,7 @@ starship = { source = "zsh/starship.toml", target = ".config/starhip.toml" }
578578

579579
If you'd like to remove all dotfile symlinks defined in your bombadil.toml configuration, simply run:
580580

581-
```shell script
581+
```bash
582582
❯ bombadil unlink
583583
```
584584

website/config.toml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,9 @@ compile_sass = true
77
highlight_code = true
88
build_search_index = true
99

10+
[markdown]
11+
highlight_code = true
12+
1013
[extra]
1114
theme_color = "#000"
1215
author = "Paul Delafosse"

website/content/docs/profiles-and-themes/profile-variables.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ java_home = "/etc/java10-openjdk"
7171
```
7272

7373
Running `bombadil link -p corporate` would now produce the following `.bashrc` :
74-
```shell script
74+
```bash
7575
export JAVA_HOME=/etc/java10-openjdk
7676
```
7777

website/content/docs/profiles-and-themes/profiles-overrides.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ is that we want to use a different config depending on the project we are workin
2626

2727
To solve this we will define the following dotfiles :
2828

29-
```shell script
29+
```bash
3030
~/bombadil-example
3131
├── bombadil.toml
3232
└── maven
@@ -54,14 +54,14 @@ Notice on the `corporate` profile we are redefining the `maven` dot entry and on
5454
## Linking
5555

5656
Linking the default profile with `bombadil link`, will produce the following link :
57-
```shell script
57+
```bash
5858
bombadil link
5959
"/home/okno/dotfiles/.dots/maven/settings.xml" => "/home/okno/.m2/settings.xml"
6060
```
6161

6262
Linking with the `corporate` profile will use the alternate source for `.m2/settings.xml` :
6363

64-
```shell script
64+
```bash
6565
bombadil link -p corporate
6666
"/home/okno/dotfiles/.dots/maven/settings.corporate.xml" => "/home/okno/.m2/settings.xml"
6767
```
-13.7 KB
Binary file not shown.
12.8 KB
Loading

website/themes/adidoks/config.toml

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,6 @@ base_url = "https://adidoks.netlify.com"
33
title = "AdiDoks"
44
description = "AdiDoks is a Zola theme helping you build modern documentation websites, which is a port of the Hugo theme Doks for Zola."
55

6-
# The default language; used in feeds and search index
7-
# Note: the search index doesn't support Chinese/Japanese/Korean Languages
8-
default_language = "en"
9-
106
# Whether to automatically compile all Sass files in the sass directory
117
compile_sass = true
128

website/themes/adidoks/config.toml.example

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,6 @@ base_url = "https://adidoks.netlify.com"
33
title = "AdiDoks"
44
description = "AdiDoks is a Zola theme helping you build modern documentation websites, which is a port of the Hugo theme Doks for Zola."
55

6-
# The default language; used in feeds and search index
7-
# Note: the search index doesn't support Chinese/Japanese/Korean Languages
8-
default_language = "en"
9-
106
# The site theme to use.
117
theme = "adidoks"
128

website/themes/adidoks/content/privacy-policy/_index.md

Lines changed: 0 additions & 27 deletions
This file was deleted.

website/themes/adidoks/templates/macros/javascript.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
<script src="{{ get_url(path="js/main.js") | safe }}" defer></script>
33
{% if config.build_search_index %}
44
<script src="{{ get_url(path="plugins/elasticlunr.min.js") | safe }}" defer></script>
5-
<script src="{{ get_url(path="search_index." ~ config.default_language ~ ".js") | safe }}" defer></script>
5+
<script src="{{ get_url(path="search_index.en" ~ ".js") | safe }}" defer></script>
66
<script src="{{ get_url(path="js/search.js") | safe }}" defer></script>
77
{% endif %}
88
{% endmacro %}

0 commit comments

Comments
 (0)