Thank you for investing your time in contributing to our project! Any contribution you make will be reflected on blog.ens.domains ✨.
Read our Code of Conduct to keep our community approachable and respectable.
In this guide you will get an overview of the contribution workflow from opening an issue, creating a PR, reviewing, and merging the PR.
Use the table of contents icon on the top left corner of this document to get to a specific section of this guide quickly.
This guide will walk you through setting up your writing environment for blog.ens.domains. It's super easy, even if you're not a developer!
- Go to the repository on GitHub.
- Click on Code and then navigate to Codespaces.
- Click on Create codespace from the main branch.
If a prompt asks you about resource versions, just go with the smallest one. It's plenty for what you'll be doing.
Your codespace will start getting set up. This could take a few minutes as the system prepares the blog environment for you.
- You'll want to create a new branch to work on your article.
- Press
Ctrl + Shift + P
to open the command palette. - Type and select Git: Create Branch....
- Name your branch something like
article/your_topic_here
.
- Open the content directory.
- Create a new folder for your article. Note: Don't use spaces in folder names. Use underscores instead.
If you add resources and see a terminal error, don't worry!
- Press
Ctrl + Shift + B
to rebuild the optimized resources bundle.
- Open your browser and go to http://localhost:3000/.
- You can see a live preview of your article there.
- Open the Source Control tab on the left or press
Ctrl + Shift + G
. - Commit your changes with a meaningful message.
- Sync/Push your changes.
- Finally, create a pull request on GitHub to get your article published.
This guide assumes you've got Visual Studio Code, NodeJS, and pnpm installed. If not, go ahead and install those first. We recommend to run this on Linux or WSL.
- Open VS Code.
- Go to View > Command Palette or press
Ctrl + Shift + P
. - Type and select Git: Clone.
- Paste in the URL of the blog.ens.domains GitHub repository and choose where you'd like to clone it.
- Once the repository is cloned, click Open on the pop-up dialogue to navigate into your new repository.
- Open the terminal in VS Code (View > Terminal).
- Navigate to the blog directory and run:
pnpm install
andpnpm build:assets
- In the bottom-left corner, you'll see the current branch name (probably main).
- Click on it, and then click on + New branch.
- Name it article/your_topic_here and hit Enter.
- Using the file explorer in VS Code, go to the content directory.
- Create a new folder for your article. Note: Avoid spaces in folder names; use underscores instead.
- Drag and drop your images or other resources into the folder you just created and run the
pnpm build:assets
task or pressCtrl + Shift + B
.
- Open the terminal again and, depending on the project's setup, run the local server. The command to do so is
pnpm run dev
. - Open your browser and go to http://localhost:3000/.
- Go to the Source Control panel (icon looks like a forked branch).
- You'll see all the changes you've made.
- Add a commit message describing your changes and click the checkmark icon at the top to commit.
- After committing, go to the three-dot menu (...) in the Source Control panel.
- Click Push to push your changes to GitHub.
- Open your browser and navigate to the GitHub repository.
- You should see a pop-up about your recently pushed branch. Click Compare & pull request to initiate the pull request.
And there you go! You've just written, committed, and submitted an article for blog.ens.domains without leaving the comfort of VS Code.