📖
📖
📖
📖
EthStaker KB
English
Ask or search…
K
Comment on page

How to contribute

This is a living documentation site, meaning we need the community's help to maintain and update the content. Any contribution, from writing whole sections and translations to correcting spelling and grammar mistakes will be greatly appreciated.
Use this GitBook invite link to suggest edits and new content directly on GitBook:
You can earn GitPOAPs by contributing directly to the EthStaker Knowledge Base (a contributor↗) and by asking a question that leads to content being created (a supporter↗).
EthStaker Knowledge Base Contributor GitPOAP 2023
EthStaker Knowledge Base Supporter GitPOAP 2023
To suggest changes or add new content please visit our EthStaker Github↗ or if you have any questions please join our Discord↗.
Please create a pull request for any changes you want to make and we'll review it as soon as possible.

Documentation standardization notes

Please use these notes when writing for this knowledge base to maintain a standardized format.
  • Use relative links ↗ to navigate between different files within this knowledge base.
  • Use anchor links to headings within the same file.
  • Combine relative links to other files with anchor links.
    • [Other file anchor link](other_file.md#heading-anchor)Other file link
  • Show when a link is referencing an external site by adding the ↗ icon at the end of the link.
  • Create an image that's also a link.
    • [![image-text](https://some.site/your-image.jpg)](https://some.site/your-link.html)

Creating/Updating tables of contents

The tables of contents are created using a VSCode extension Markdown All in One ↗ using the command Create Table of Contents (in the VS Code Command Palette ↗) to insert a new table of contents. It should then automatically be updated when a file is saved.
Add the tag <!-- omit in toc --> to any headings you do not want to be included in the Table of Contents.
# HEADING <!-- omit in toc -->

Glossary and FAQ heading ordering

When adding items to the Glossary and FAQ it's important that they remain in alphabetical order so it's easier to navigate. As there is no native way to achieve this in Markdown, you can use this bash script to reorder the headings.
The file name alphabetical-ordering.sh has been added to the .gitignore file.
touch alphabetical-ordering.sh
chmod 700 alphabetical-ordering.sh
Edit the new file with your preferred text editor.
#!/bin/bash
# Reorder glossary and store just the reordered content in a temp file
perl -0777 -ne '
(undef,@paragraphs) = split /^##(?=[^##])/m;
print map {"##$_"} sort @paragraphs;
' staking-glossary.md > staking-glossary-temp-1.md
# Delete everything after the first --- in and store in a temp file
sed '/---/q' staking-glossary.md > staking-glossary-temp-2.md
# Combine the two files
cat staking-glossary-temp-2.md > staking-glossary.md
cat staking-glossary-temp-1.md >> staking-glossary.md
# Delete the temp files
rm staking-glossary-temp-1.md
rm staking-glossary-temp-2.md
# Reorder FAQ and store just the reordered content in a temp file
perl -0777 -ne '
(undef,@paragraphs) = split /^##(?=[^##])/m;
print map {"##$_"} sort @paragraphs;
' faq.md > faq-temp-1.md
# Delete everything after the first --- and store in a temp file
sed '/---/q' faq.md > faq-temp-2.md
# Combine the two files
cat faq-temp-2.md > faq.md
cat faq-temp-1.md >> faq.md
# Delete the temp files
rm faq-temp-1.md
rm faq-temp-2.md
Run the script.
./alphabetical-ordering.sh
This was a quick script, so if you have any improvements please update it here!
https://docs.ethstaker.cc/ethstaker-knowledge-base/get-involved/how-to-contribute
docs.ethstaker.cc
CC-MAIN-2023-50
400683
application/http; msgtype=response
sha1:2HDIK74I5RFN3J7TB2BVZRIO22BX4U6C
<urn:uuid:5a83aa88-32c2-461c-99b4-83190516155e>
2023-12-01T17:12:47Z
104.18.40.47
text/html
sha1:S6DMLXTOP34UF75LEYPZIC73D4S7ZQI4
<urn:uuid:c30658a0-5053-44d0-96e4-d70584f9451d>
https://docs.ethstaker.cc/ethstaker-knowledge-base/get-involved/how-to-contribute
response
<urn:uuid:46905ce4-6d29-446d-8781-301c5f44bdda>
isPartOf: CC-MAIN-2023-50
publisher: Common Crawl
description: Wide crawl of the web for November/December 2023
operator: Common Crawl Admin (info@commoncrawl.org)
hostname: ip-10-67-67-40
software: Apache Nutch 1.19 (modified, https://github.com/commoncrawl/nutch/)
robots: checked via crawler-commons 1.5-SNAPSHOT (https://github.com/crawler-commons/crawler-commons)
format: WARC File Format 1.1
conformsTo: https://iipc.github.io/warc-specifications/specifications/warc-format/warc-1.1/