Commit Graph

15870 Commits

Author SHA1 Message Date
Marcus Blättermann
e043d61c3e
Fix slugs 2022-12-20 09:23:55 +01:00
Marcus Blättermann
de3e2080b9
Fix code highlighting 2022-12-20 08:51:10 +01:00
Marcus Blättermann
f1a54563f1
Revert "Remove duplicate class"
This reverts commit 04c8ea3092.
2022-12-20 08:26:06 +01:00
Marcus Blättermann
c072d3bedb
Fix button layout
MDX automatically adds `p` tags around text on a new line and Prettier wants to put the text on a new line. Hacking with JSX string.
2022-12-19 18:39:28 +01:00
Marcus Blättermann
a799d23495
Add Next plugin to Netlify 2022-12-19 18:39:28 +01:00
Marcus Blättermann
dd4fe6539a
Remove unused files 2022-12-19 18:39:27 +01:00
Marcus Blättermann
6cc1e4a2b3
Dont build pages starting with _ 2022-12-19 18:39:27 +01:00
Marcus Blättermann
a402fa7970
Turn of image optimization
> Image Optimization using Next.js' default loader is not compatible with `next export`.

We currently deploy to Netlify via `next export`
2022-12-19 18:39:27 +01:00
Marcus Blättermann
b3a4bc40a7
Fix images 2022-12-19 18:39:27 +01:00
Marcus Blättermann
9f85c2d0fd
Use recent DocSearch component and adjust styling 2022-12-19 18:39:27 +01:00
Marcus Blättermann
df679aada7
Add Plausible 2022-12-19 18:39:26 +01:00
Marcus Blättermann
b4714e2a2c
Automatically generate "Read Next" link 2022-12-19 18:39:26 +01:00
Marcus Blättermann
678ca95670
Fix Juniper component 2022-12-19 18:39:26 +01:00
Marcus Blättermann
364bb196cf
Improve error logging in Juniper 2022-12-15 17:28:43 +01:00
Marcus Blättermann
74f538a229
Unify code rendering 2022-12-15 17:28:43 +01:00
Marcus Blättermann
00ae3eff46
Fix syntax highlighting for Training Quickstart 2022-12-15 17:28:43 +01:00
Marcus Blättermann
d46f942c56
Refactor Quickstart component
The previous implementation was hidding the irrelevant lines via data-props and dynamically generated CSS. This created problems with Next and was also hard to follow. CSS was used to do what React is supposed to handle.

The new implementation simplfy filters the list of children (React elements) via their props.
2022-12-15 17:28:43 +01:00
Marcus Blättermann
81877e8925
Fix missing comment syntax highlighting 2022-12-15 17:28:43 +01:00
Marcus Blättermann
b5c4a0b96d
Rename custom event
I was googeling for ages to find out what kind of event `inview` is, only to figure out it was a custom event with a name that sounds pretty much like a native one. 🫠
2022-12-15 17:28:43 +01:00
Marcus Blättermann
de15cc53f3
Fix bug with anchor links after reloading
There was no need for the previous implementation, since the browser handles this nativly. Additional the manual scrolling into view was actually broken, because the heading would disappear behind the menu bar.
2022-12-15 17:28:43 +01:00
Marcus Blättermann
cba71bb300
Add manifest.webmanifest 2022-12-15 17:28:42 +01:00
Marcus Blättermann
5823d88374
Add PWA support 2022-12-15 17:28:42 +01:00
Marcus Blättermann
e8b9b0ae22
Add Smartypants 2022-12-15 17:28:42 +01:00
Marcus Blättermann
eebeb338cf
Add sitemap 2022-12-15 17:28:42 +01:00
Marcus Blättermann
f931bb15b1
Store Netlify settings in file
This way we don't need to update via Netlify UI, which can be tricky if changing build settings.
2022-12-15 17:28:42 +01:00
Marcus Blättermann
8d12c455a2
Add lang="en" 2022-12-15 17:28:42 +01:00
Marcus Blättermann
ab07d13419
Add _document to be able to customize <html> and <body> 2022-12-15 17:28:41 +01:00
Marcus Blättermann
c1364d9788
Fix problem with span inside inline code
React doesn't allow a `span` inside an inline `code` element and throws an error in dev mode.
2022-12-15 17:28:41 +01:00
Marcus Blättermann
7b3725df20
Fix TypeAnnotation 2022-12-15 17:28:41 +01:00
Marcus Blättermann
1cc2d0ce42
Fix custom table row styling 2022-12-15 17:28:41 +01:00
Marcus Blättermann
efdd305d06
Add plugin to replace strings 2022-12-15 17:28:41 +01:00
Marcus Blättermann
c035885cfc
Convert file to .mjs to be used by Node process 2022-12-15 17:28:40 +01:00
Marcus Blättermann
a1494282db
Fix broken bold markdown 2022-12-15 17:28:40 +01:00
Marcus Blättermann
d78e0e8680
Fix className problem for JSX component 2022-12-15 17:28:40 +01:00
Marcus Blättermann
04c8ea3092
Remove duplicate class
The `language-` class is now automatically injected.
2022-12-15 17:28:40 +01:00
Marcus Blättermann
b5e5d4a334
Replace react-helmet with next/head 2022-12-15 17:28:40 +01:00
Marcus Blättermann
8011b168b2
Fix internal link recognition
There is a problem with regex between Node and browser, and since Next runs the component on both, this create an error.

`Prop `rel` did not match. Server: "null" Client: "noopener nofollow noreferrer"`

This simplifies the implementation and fixes the above error.
2022-12-15 17:28:40 +01:00
Marcus Blättermann
31dae2367e
Remove unused prop 2022-12-15 17:28:39 +01:00
Marcus Blättermann
c4990245d1
Update syntax for code block meta data 2022-12-15 17:28:39 +01:00
Marcus Blättermann
a17a8a5b1d
Add code block handling 2022-12-15 17:28:39 +01:00
Marcus Blättermann
38f7f6bcbe
Extract function to own file 2022-12-15 16:03:35 +01:00
Marcus Blättermann
7ce767878b
Remove unused code 2022-12-15 16:03:35 +01:00
Marcus Blättermann
511b8eead2
Add ability to load code from GitHub 2022-12-15 16:03:35 +01:00
Marcus Blättermann
55f3d1d245
Readd InlineCode component
MDX2 removed the `inlineCode` component

> The special component name `inlineCode` was removed, we recommend to use `pre` for the block version of code, and code for both the block and inline versions

Source: https://mdxjs.com/migrating/v2/#update-mdx-content
2022-12-15 16:03:35 +01:00
Marcus Blättermann
715b419ce4
Enable code blocks plugin 2022-12-15 16:03:35 +01:00
Marcus Blättermann
70ca224ca6
Remove invalid code language
`markdown_` with an underscore was used to basically turn of syntax highlighting, but using unknown languages know throws an error.
2022-12-15 16:03:35 +01:00
Marcus Blättermann
8672adfe82
Remove unnessary language none 2022-12-15 16:03:34 +01:00
Marcus Blättermann
45395db994
Change code language from cli to bash 2022-12-15 16:03:34 +01:00
Marcus Blättermann
786e9c75a3
Fix dropdowns 2022-12-15 16:03:34 +01:00
Marcus Blättermann
8d89deee2e
Fix ESLint react-hooks/exhaustive-deps 2022-12-15 16:03:34 +01:00