Skip to main content

Contribute a Blog Post

Blogs are one of the easiest ways to get involved in Apache Answer. It is also a great way to share your knowledge and experience with others.

If you've used Answer to build your own Q&A community, or if Answer has helped you solve a problem, we'd love to hear your story. We also encourage you to share tips and tricks for using Answer, or to write about how to contribute to the project.

To get started, just read our blog guidelines and get writing!

Repository address

  • GitHub: Write and store blog posts.
  • Crowdin: Translate blog posts into multiple languages to make them more accessible to a wider audience.

Blog directory

Blogs are currently available in two languages: English (default) and Chinese. If you're submitting a Chinese blog, you need to manually copy it to the /blog directory to prevent compilation errors. If you're only submitting English blogs, you don't need to do anything else.

  • English blogs: /blog
  • Chinese blogs: /i18n/docusaurus-plugin-content-blog

We've integrated with Crowdin, which automatically syncs files that need to be translated. This makes it easier for community contributors to get involved in the translation.

Blog categories

Our current blog categories are:

  • Community
  • Best Practices
  • Tutorials
  • Insights
  • Releases
  • Tech

Besides submitting a new blog, you can also help maintain existing blog content by identifying and correcting any incorrect or unclear language, or updating the content to reflect the latest information.

Submit a blog

Environment setup

The project preview and run depend on node and pnpm. Please install them in advance.

Add author information

All author information is stored in the following files:

  • /blog/authors.yml
  • /i18n/docusaurus-plugin-content-blog/authors.yml

You can add information to display about yourself in these files. Here’s an example:

name: Anne Zhu
title: Product Marketing Manager

# Use in the blog's frontMeta
authors: [Anne] # separate with commas [Anne, others]


  1. Make sure to put the new blog documents in the correct path.

    • For English blog: Create a new Markdown file in the /blog directory.
    • For Chinese blog: Create a new Markdown file in the /i18n/zh-CN/docusaurus-plugin-content-blog/ directory.
  2. To ensure that the final article URL follows a format like /blog/2023/06/01/hello-world, we've established the following naming convention for each article file:

    • Plain Text
      • Directly create a file named in the /blog directory.
    • Rich Text
      • Create a directory named /2023-06-01-foo-bar in the /blog directory.
      • Create an file inside the /2023-06-01-foo-bar directory.
      • Images and other multimedia content should also be placed within this directory.

    To maintain semantic and unique article URLs, we recommend using the blog's title after the date when naming files or folders. Convert the title to lowercase and connect the words with hyphens. This eliminates the need to worry about the slug field on the page. Avoid specifying the slug field unless it's absolutely necessary.

    For instance, if the blog's title is Hello World, the file can be named 2023-06-01-hello-world This will generate the URL /blog/2023-06-01/hello-world.

    ├── 2023-06-01-foo-bar # Use directory for images.
    │ ├──
    │ ├── sample.png
    │ └── ...
    ├── # Use file for plain text.
    └── ...

    To ensure file compatibility across platforms, please avoid using special characters / ? * : | \ < > & # in file names.

  3. Learn Markdown syntax in Docusaurus Markdown. If images are included, make sure the images and the blog are in the same directory .

    Apart from the standard metadata fields, we've also introduced some custom fields and their usage, such as "cover image" (image) and "featured post" (Featured).

    The cover image needs to adhere to our visual style guidelines, so you can focus on writing your blog post. Once submitted, we'll automatically generate a cover image based on your content.

    The "featured" field determines whether your blog post appears on the Blog homepage. To have your blog post featured, set the "featured" field to "true".

    Check the example below.

    title: The What, Why Using Tags for Online Community
    authors: [Anne]
    category: Insights // value reference in blog type
    featured: true
    image: 2023-07-11-cover@4x.png // Note: place it in the /static/img/blog directory.
    description: "Discover more about tags, benefits, and how vital they are for organizing content in online community."
  4. Before submitting your code, please ensure that it runs error-free. You can check it by running the following commands.

    # Preview locally
    pnpm start # to preview the Chinese docs, run pnpm start:zh)

    # Locally compile to ensure no errors before submitting
    pnpm build # no errors when display [SUCCESS] Generated static files in "build/zh-CN"


For code submitting, you may also need to learn Git and Pull Request.