diff --git a/README.md b/README.md index e7b0516..db46886 100644 --- a/README.md +++ b/README.md @@ -5,136 +5,12 @@ -------------- +
This is the official handbook for Vanilla OS. It contains tutorials, guides and +other information to help you get the most out of your Vanilla OS installation.
-- This is the official handbook for Vanilla OS. It contains tutorials, guides and -other information to help you get the most out of your Vanilla OS installation. -- Thank you for your interest in our project. This guide will help you with writing articles. -- The [**Handbook**](https://github.com/Vanilla-OS/handbook) uses Jekyll and GitHub pages for generating the website. -- Handbook progress with a to-do list is present at our [**GitHub project**](https://github.com/orgs/Vanilla-OS/projects/2). - -## Prerequisites for Writing a guide - -- A basic knowledge of [**Markdown**](https://www.markdownguide.org/basic-syntax/) is required for writing posts. - -## Writing a guide - -If you want to write a guide for the handbook, follow these instructions:- - -- Add the new article to the [**`_posts` directory**](https://github.com/Vanilla-OS/handbook/tree/main/_posts). -- The filename must be in the format `YYYY-MM-DD-title.md`. -- See [**markdownlint**](https://github.com/DavidAnson/markdownlint) for best markdown practices. -- The guide must use the following structure at the beginning: - -```md ---- -title: -description: -date: YYYY-MM-DD -layout: article -authors: - - 1st author GitHub username - - 2nd author GitHub username - - ... -published: true ---- -``` - -- You must fill in your article's metadata here. - -For example:- - -```md ---- -title: Installing a package -description: Learn how to install a package in Vanilla OS -date: 2023-01-13 -layout: article -authors: - - MonsterObserver -published: true ---- -``` - -- Add your GitHub username with the co-author's username(s) in the author's field to have working links when the post is published. -- Ensure images are in **WebP format** and placed in a dedicated directory under the `assets/uploads` directory with a descriptive name for future reference. - -**_Tip_**: We suggest using [**cwebp**](https://developers.google.com/speed/webp/docs/cwebp) for converting the images to WebP. - -## Style Guide - -Headings should follow a proper hierarchy. - -Links must be in bold, commands in bold and backticks. - -For example:- - -```md -[**example**](https://example.com/) -[**`apx`**](https://github.com/Vanilla-OS/apx) -``` - -Which will have the following outputs:- [**example**](https://example.com/), [**`apx`**](https://github.com/Vanilla-OS/apx) - -Buttons in applications can be highlighted using double quotes (""). For example, the Install button gets highlighted as the "Install" button. - -Menus, command names and directories must be enclosed with backticks (`). - -For displaying commands, we suggest code blocks with the correct shell or programming language. - -For example:- - -```md -- To update your Vanilla OS system now, run the following command:- - -"```bash -sudo vso trigger-update --now -```" -(Note: " isn't required, and is used for quoting the syntax here) -``` - -- The code block will have the following output:- - -```bash -sudo vso trigger-update --now -``` - -- Some terms like "Note:" and "Tip:" should be highlighted with bold and italics. For example:- `**_Note_**:-`. - -## Testing the guide locally using Jekyll, Bundler - -You can install **Jekyll** from [**this page**](https://jekyllrb.com/docs/installation/) and **Bundler** can be installed from [**this page**](https://bundler.io). Or you can follow these steps in [**Vanilla OS**](https://handbook.vanillaos.org/2023/01/23/install-jekyll-and-bundler.html). - -Clone your forked repository using `git` or `gh`. - -Add the guide to the correct destination in the cloned directory. - -Run `jekyll build` to build the page to `./_site` once. Then you can either test the pages manually or use the `jekyll serve` command. - -Run `jekyll serve` to build your site any time a source file changes and serve it locally. - -Navigate to `http://127.0.0.1:4000/` or `http://localhost:4000/` in your browser to preview and test the page. - -Now, commit the changes using `git` and create a PR in GitHub. - -**_Tip_**:- - -- You can test your pages on your phone using `jekyll serve --host=