- Introduction
- Standards and Structure
- Writing and Styling
- Submitting Your Article
- Previewing Your Article
- Review and Approval Process
- Merging and Deployment
Welcome to the article publishing repository for our company's website. This guide will walk you through the steps of writing, submitting, and optimizing your articles using GitHub. If you encounter any issues with permissions or require assistance with specific Markdown features, please contact Marvin or the WCP development team.
Each article must begin with metadata in YAML format. This metadata provides essential information that helps in organizing and displaying the article correctly on the company's website.
Metadata Template
---
title: "The title of the article"
author: ["YourName / Full stack engineer", "SecondAuthorName / PositionOfTheAuthor"]
createTime: 2024-04-01
tags: ["Web3", "AnyOtherTag"]
thumb: "https://example.com/theThumbOfTheArticle.png"
thumb_h: "https://example.com/theHorizontalThumbOfTheArticle.png"
intro: "Some introduction to the article"
---
Note
The thumb
and thumb_h
images are placeholders and should be redesigned later. Contact the designer for the final images.
- Articles should be in Markdown format, using GFM (GitHub Flavored Markdown).
- Each article should be placed in its own independent folder within the
articles
directory. - Folder names should be slugified and will serve as the article's URL.
- Each article must be named
README.md
.
Our repository supports all basic Markdown formats. For a detailed guide, refer to GitHub's Markdown Guide.
To enhance the presentation of your articles, we support several Markdown plugins:
-
plugin-abbr referrence
Usage Example
*[HTML]: Hyper Text Markup Language *[W3C]: World Wide Web Consortium The HTML specification is maintained by the W3C.
-
plugin-alert referrence
Usage Example
> [!warning] > This is warning text
Supported alert types:
note
,tip
,important
,caution
,warning
. -
align referrence
Usage Example
::: left Contents to align left ::: ::: center Contents to align center ::: ::: right Contents to align right ::: ::: justify Contents to align justify :::
-
img-size referrence
Usage Example
![Alt](/example.png =200x300) ![Alt](/example.jpg "Image title" =200x) ![Alt](/example.bmp =x300)
-
footnote referrence
Usage Example
Footnote 1 link[^first]. [^first]: Footnote can reference [^second]. [^second]: Other footnote.
If you require additional markdown syntax support, please contact the WCP project team.
-
Clone the repository locally.
-
Create a new branch.
Note: The branch name should start with
feat/
,author/
, orarticle/
.git checkout -b feat/YourBranchName
-
Write your article adhering to the standards and guidelines.
-
Add necessary assets directly to the code.
-
Commit your changes and push to your branch.
-
Create a pull request (PR) to the
dev
branch for review.
-
Create a branch on GitHub.
Note: The branch name should start with
feat/
,author/
, orarticle/
. -
Create your markdown file using GitHub's online editor.
-
Save and submit the file to your branch.
-
Create a pull request (PR) to the
dev
branch once editing is complete.
Tip
Online editing allows real-time preview and asset drag-and-drop functionality, providing a more seamless editing experience.
-
Obtain the raw URL of your article from GitHub, considering there is a 5-minute cache delay.
Accepted formats:
https://github.com/57blocks/website-article/tree/dev/articles/YourArticle
https://github.com/57blocks/website-article/blob/dev/articles/YourArticle/README.md
https://github.com/57blocks/website-article/raw/dev/articles/YourArticle/README.md
https://raw.githubusercontent.com/57blocks/website-article/dev/articles/YourArticle/README.md
-
Use the Preview Tool and paste your raw URL to preview how it will appear on the company's website.
For continuous style debugging, use the Realtime Editor. Paste your markdown content into the input field and preview it in real time.
Note: The baseurl
field ensures that images with relative paths display correctly. If using absolute paths, this can be ignored.
Create a pull request (PR) from your feature branch to the dev
branch. Include a clear description of your changes.
Each time you make a modification to the PR, a bot will automatically generate a preview URL, allowing reviewers and designers to provide feedback conveniently.
A designated reviewer will evaluate the content of your article. Ensure all feedback and required revisions are addressed.
Upon generating the PR, you will receive a preview URL. Use this link to get design feedback and optimize images in your article. Large PNG images from sources like Figma may need compression using tools like TinyPNG.
When the author feels they have completed all the preparation work for the article and are ready to publish it, the author should contact the WCP team or the testing team. The testing team will perform the final testing and verification of the article.
If the tester or designer has any feedback, please add the corresponding feedback or comments in the PR. The author will only be able to merge the code once they have addressed all the feedback and made the necessary adjustments to the article.
Once the testing team has validated the article on the dev environment and all feedback has been addressed, the author can then merge the code into the dev
branch.
If you need any technical support during the process, please contact the wcp project team.
Once the testing is complete and the article is validated, the website publisher will merge the dev
branch to the main
branch, finalizing the deployment to the production environment.
By following these guidelines, you ensure a consistent, smooth, and high-quality publishing process for your articles. Happy writing!