Go implementation of the Ethereum protocol
Go to file
Joseph Cook ad45cd99ec
update personal namespace notes (#26664)
small updates to notes now that personal namespace is deprecated.
2023-02-15 05:10:15 -05:00
docs update personal namespace notes (#26664) 2023-02-15 05:10:15 -05:00
public [website]: Adds page on understanding grafana dashboards (#26617) 2023-02-14 11:55:51 +08:00
src Merge pull request #26680 from ethereum/open-images-new-tab 2023-02-14 12:36:49 +00:00
.env.local.example [website] geth-website migration (#26412) 2023-01-04 11:16:45 -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 Merge branch 'master' of github.com:ethereum/geth-website into fix-last-edit-timestamp 2022-12-16 15:49:26 -03:00
.prettierignore setup: init 2022-09-08 16:18:30 -03:00
.prettierrc setup: init 2022-09-08 16:18:30 -03:00
netlify.toml [website] geth-website migration (#26412) 2023-01-04 11:16:45 -03:00
next-sitemap.config.js Add sitemap and robots.txt (#163) 2022-12-15 01:01:13 -03:00
next.config.js chore: remove MDX dependencies and Provider 2022-12-12 16:10:15 -03:00
package.json [website] geth-website migration (#26412) 2023-01-04 11:16:45 -03:00
README.md [website] fix typos (#26615) 2023-02-07 08:06:00 -05:00
redirects.js Add missing redirect (#197) 2022-12-20 12:37:49 -03:00
tsconfig.json setup: init 2022-09-08 16:18:30 -03:00
yarn.lock [website] geth-website migration (#26412) 2023-01-04 11:16:45 -03:00

Welcome to the go-ethereum website!

This is the repository for the go-ethereum website. All the website code is held here in the website branch. If you are looking for go-ethereum source code you need to switch to the master branch.

The purpose of the go-ethereum website is to provide the necessary documentation and supporting information to help users to get up to speed with using go-ethereum (aka "Geth"). The website is maintained by a team of developers but community contributions are also very welcome.

Contributing

Contributions from the community are very welcome. Please contribute by cloning the go-ethereum repository, checking out the website branch and raising pull requests to be reviewed and merged by the repository maintainers. Issues can be raised in the main go-ethereum repository using the prefix [website]: in the title.

The geth.ethereum.org stack

geth.ethereum.org is a Next.js project bootstrapped with create-next-app. The following tools were used to build the site:

Learn more

To learn more about the stack, take a look at the following resources:

Repository structure

The website code is organized with a top-level docs folder that contains all the documentation pages as markdown files. Inside docs are subdirectories used to divide the docs by theme (e.g. getting-started, fundamentals, developers etc). Website code is in src, and assets including images are in public.

Adding a new documentation page

Documentation pages are located in the /docs folder in the root directory of the project. The docs pages are all markdown files. 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 a page, you will also need to list it in /src/data/documentation-links.yaml. This file defines the documentation structure which you will see on the left sidebar in the documentation pages. Take into account that if you update the /docs structure or remove a doc, you should also update this file to avoid navigation issues.

Adding notes to a doc

Notes in documentation pages are highlighted boxes (color depend on the current set dark/light theme). To add a note, wrap the note text in <Note> tage as follows:

<Note>text to include in note</Note>
Screen Shot 2023-01-04 at 18 22 06

Example Note from Account Management with Clef doc.

Images

Images should be saved to public/images/docs and included in the markdown as follows:

![alt-text](/images/docs/image-title.png)

Frontmatter metadata

title and description are required metadata props for a post: title will generate the main heading on the doc page and description is used for SEO purposes, to serve as a concise and appropriate description of the content.

---
title: Go API
description: Introduction to the Go packages that allow Geth to be used in Go native applications.
---

Example of the metadata for a sample post.

Building locally

To check a new page it is helpful to build the site locally and see how it behaves in the browser. 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.

Review and merge

PRs will be reviewed by the website maintainers and merged if they improve the website. For substantial changes it is best to reach out to the team by raising a GH issue for discussion first.