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
Marcus Blättermann
6aaeb26242
Replace svg-loader
with react-inlinesvg
...
`svg-loader` is no longer maintained
2022-12-15 16:03:34 +01:00
Marcus Blättermann
0885a1fcc4
Add prebuild script
...
This command is automatically run by Next
2022-12-15 16:03:34 +01:00
Marcus Blättermann
2e0f056fe5
Allow to export static HTML pages
2022-12-15 16:03:34 +01:00
Marcus Blättermann
68ad99798a
Fix headings with logo
2022-12-15 16:03:33 +01:00
Marcus Blättermann
a82270613f
Fix unescaped characters in MDX
2022-12-15 16:03:33 +01:00
Marcus Blättermann
30152e4e3b
Escape character for MDX
2022-12-15 16:03:33 +01:00
Marcus Blättermann
987eb52d4d
Fix problem with image inside link in MDX
2022-12-15 16:03:33 +01:00
Marcus Blättermann
4a01a2fc63
Remove MDX imports
2022-12-15 16:03:33 +01:00
Marcus Blättermann
f4b30f7d5d
Remove ability to inline HTML content in iFrames
2022-12-15 16:03:33 +01:00
Marcus Blättermann
f46aa72dcf
Remove inlined iframe content
2022-12-15 16:03:33 +01:00
Marcus Blättermann
81845d1807
Replace landing page MDX with page component
2022-12-15 16:03:33 +01:00
Marcus Blättermann
79fd1ab4ff
Fix improper component nesting
...
Next doesn't allow block elements inside a `<p>`
2022-12-15 16:03:32 +01:00
Marcus Blättermann
dc04d95401
Fix Next problem with copy
...
Next complains when the server renders something different then the client, therfor we move the differing logic to `useEffect`
2022-12-15 16:03:32 +01:00
Marcus Blättermann
da9fb36990
Add Universe projects
2022-12-15 16:03:32 +01:00
Marcus Blättermann
5ce96d52ac
Add Universe categories
2022-12-15 16:03:32 +01:00
Marcus Blättermann
f077b5c1f6
Add Universe index page
2022-12-15 16:03:32 +01:00
Marcus Blättermann
dfa204711a
Fix default value for theme
2022-12-15 16:03:32 +01:00
Marcus Blättermann
3f4234ba10
Simplify anchors
2022-12-15 16:03:31 +01:00
Marcus Blättermann
7b083bcdac
Add model pages
2022-12-15 16:03:31 +01:00
Marcus Blättermann
c51a15169e
Fix markdown rendering inside components
2022-12-15 16:03:31 +01:00
Marcus Blättermann
7919f6db4a
Merge imports
2022-12-15 16:03:31 +01:00
Marcus Blättermann
ab5e4f7e13
Update comment syntax in MDX
2022-12-15 16:03:31 +01:00
Marcus Blättermann
5c3dbc3a51
Rename heading attribute
...
`new` was causing some weird issue, so renaming it to `version`
2022-12-15 16:03:31 +01:00
Marcus Blättermann
3297f70b48
Fix heading attributes
2022-12-15 16:03:31 +01:00
Marcus Blättermann
d2f8626cdd
Fix pattern image
2022-12-15 16:03:30 +01:00
Marcus Blättermann
bc16d6c810
Fix broken images
2022-12-15 16:03:30 +01:00
Marcus Blättermann
d455a5136b
Fix links
2022-12-15 16:03:30 +01:00
Marcus Blättermann
8464c1aa10
Implement layout
2022-12-15 16:03:30 +01:00
Marcus Blättermann
5402360d4d
Fix broken CSS classes
2022-12-15 16:03:30 +01:00
Marcus Blättermann
5c59be29bb
Fix broken list
2022-12-15 16:03:30 +01:00
Marcus Blättermann
3f357174f1
Add correct styling
2022-12-15 16:03:29 +01:00
Marcus Blättermann
eecc5a0169
Add missing components to MDX
2022-12-15 16:03:29 +01:00
Marcus Blättermann
358a02290d
Remove unallowed heading
...
Before `h1` components where not overwritten and would never have worked and they aren't used anywhere either.
2022-12-15 16:03:29 +01:00
Marcus Blättermann
f028ef31e5
Use existing Remark components
2022-12-15 16:03:29 +01:00
Marcus Blättermann
fb657158b8
Remove reliance on InlineList
2022-12-15 16:03:29 +01:00
Marcus Blättermann
55196bc2eb
Remove outdated MDX handling
2022-12-15 16:03:29 +01:00