Go to file
Paul Wackerow 56b9963afd
Markdown header margin fix [Fixes #83] (#120)
* expand parseHeadingId

Will produce a kebab-case heading ID from string if none explicitly declared in the markdown. Always returns an object with the children, title and headingId.

* remove redundant code from MDComponents.tsx

parseHeadingIds now always returns an object with an ID, removing need for conditionals here

* Use Box instead of flex Stack for MDX content

Allows stacked vertical margins to properly collapse into each other

* fix: h2 top margin to 3rem on mobile

* remove unneeded line

* extract and rename getKebabCaseFromName util fn

* Update src/pages/[...slug].tsx

* Update src/utils/parseHeadingId.ts

Co-authored-by: Corwin Smith <cssmittys@gmail.com>

* move constant inside function

make variable name all caps as a string constant

* clean up utils/index.ts to abc order

Co-authored-by: Corwin Smith <cssmittys@gmail.com>
2022-12-06 17:04:09 -03:00
docs Merge branch 'master' of https://github.com/ethereum/geth-website 2022-12-06 11:14:19 +00:00
public Fix Ethereum and GitHub typos 2022-12-01 11:20:38 +00:00
src Markdown header margin fix [Fixes #83] (#120) 2022-12-06 17:04:09 -03:00
.eslintignore setup: init 2022-09-08 16:18:30 -03:00
.eslintrc.json setup: init 2022-09-08 16:18:30 -03:00
.gitignore setup: init 2022-09-08 16:18:30 -03:00
.prettierignore setup: init 2022-09-08 16:18:30 -03:00
.prettierrc setup: init 2022-09-08 16:18:30 -03:00
README.md Create docs navigation sidebar (#40) 2022-11-30 21:06:59 -03:00
netlify.toml feat: All releases downloads (#46) 2022-11-29 15:29:52 -03:00
next.config.js chore: update next.config.js 2022-09-09 09:13:20 -03:00
package.json Create docs navigation sidebar (#40) 2022-11-30 21:06:59 -03:00
tsconfig.json setup: init 2022-09-08 16:18:30 -03:00
url-list.csv update redirects and fix line break on cli page 2022-12-06 11:14:17 +00:00
yarn.lock Create docs navigation sidebar (#40) 2022-11-30 21:06:59 -03:00

README.md

Geth website

This repo will act as a shared workspace for the geth website team in developing new content, designs etc

Resources:

Notes:

Dev note: Remember that the fiules in vulnerabilities must be served at the same URLs as they are currently to avoid breaking some Geth functions related to security auditing.


This is a Next.js project bootstrapped with create-next-app.

Getting Started

First, run the development server:

npm run dev
# or
yarn dev

Open http://localhost:3000 with your browser to see the result.

You can start editing the page by modifying pages/index.tsx. The page auto-updates as you edit the file.

API routes can be accessed on http://localhost:3000/api/hello. This endpoint can be edited in pages/api/hello.ts.

The pages/api directory is mapped to /api/*. Files in this directory are treated as API routes instead of React pages.

Learn More

To learn more about Next.js, take a look at the following resources:

You can check out the Next.js GitHub repository - your feedback and contributions are welcome!

Deploy on Vercel

The easiest way to deploy your Next.js app is to use the Vercel Platform from the creators of Next.js.

Check out our Next.js deployment documentation for more details.

Adding a new documentation page

Documentation pages are located in the /docs folder in the root directory of the project.

When you want to add a new page, add the new file in the appropriate folder in the /docs page. index.md files will be the default page for a directory, and {pagename}.md will define subpages for a directory.

After adding this page, you will need to add it /src/data/documentation-links.yaml which adds documentation structure which you will see on the left sidebar in the documentation pages.