Skip to content

Commit d026ede

Browse files
committed
fix: makefile tabs warning
1 parent e0a1926 commit d026ede

File tree

2 files changed

+9
-6
lines changed

2 files changed

+9
-6
lines changed

docs/07-shell-snippets/00-index.md

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,13 @@ This is a snippet I include in every Makefile that I use. It simply adds a defau
9393

9494
All you need to add to your Makefile is the recipe `help` shown below. To add a description to any other recipe just add a comment that follows its name!
9595

96-
```make
96+
:::warning
97+
98+
Makefiles must be indented with tabs, not spaces, copy the source-code from [`makefile-help`](https://github.com/dwmkerr/makefile-help) if the code below doesn't work, it seems that docusaurus might transform tabs to spaces.
99+
100+
:::
101+
102+
```makefile title="https://github.com/dwmkerr/makefile-help"
97103
default: help
98104

99105
.PHONY: help

docusaurus.config.js

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -55,11 +55,6 @@ const config = {
5555
require.resolve('react-mailchimp-email-signup-form/dist/esm/index.css'),
5656
require.resolve('asciinema-player/dist/bundle/asciinema-player.css'),
5757
],
58-
59-
// Add theming support for languages we use.
60-
// prism: {
61-
// additionalLanguages: [],
62-
// },
6358
},
6459
gtag: {
6560
trackingID: 'G-8HZFMZV9Z4',
@@ -182,6 +177,8 @@ const config = {
182177
prism: {
183178
theme: lightCodeTheme,
184179
darkTheme: darkCodeTheme,
180+
// Add theming support for languages we use.
181+
additionalLanguages: ['makefile'],
185182
},
186183
liveCodeBlock: {
187184
/**

0 commit comments

Comments
 (0)