1
0
Fork 0
mirror of https://github.com/anyproto/docs.git synced 2025-06-08 05:47:05 +09:00
docs/CONTRIBUTING.md
2021-11-24 17:16:46 +05:30

5.8 KiB
Raw Blame History

Docs-Logo

Table of Contents

Contributing

We ask that all users read our Code of Conduct and Gitbook Conventions before contributing to the documentation. Anytype welcomes all contributions and corrections. Please follow the steps below in order to contribute. If you're new to _git* and/or GitHub, we suggest you go through the GitHub Guides.

  1. Fork this repository
  2. (Optional) Clone the fork
    • Using SSH
      git clone --filter=tree:0 git@github.com:anytypeio/community.git
      
    • Using HTTPS
      git clone --filter=tree:0 https://github.com/anytypeio/community.git
      
    • Using GitHub CLI
      gh repo clone anytypeio/community -- --filter=tree:0
      
  3. Create a new branch from the latest main
  4. Make your changes on the new branch
  5. Commit and push to the new branch
  6. Make a pull request
  7. Assign Vladimir, Divyanshu or Enda as the PR reviewer

File Structure

  • Any Page that has been added or removed from the documentation needs to be added to the Table Of Contents in the file SUMMARY.md
    • Indentation is used to signify nesting of pages
    • Pages are linked using markdown URL's eg:
      [Navigation](https://github.com/anytypeio/docs/blob/main/features/navigation.md)
      
  • All files are saved as Markdown .md
  • For nesting pages they need to be placed in the category folder if it does not exist then you can create the folder
  • To use images they must all be placed inside the .gitbook/assets folder and then referenced from that folder
  • Note : For adding media only use MP4 for Videos.

Conventions

These are the rules that Gitbook follows while creating documentation from markdown. Please follow them while making any changes

Text Formats

  • Heading 1

    # Heading 1
    
  • Heading 2

    ## Heading 2
    
  • Heading 3

    ### Heading 3
    
  • Bold

    **Bold Text**
    
  • Italics

    _Italics Text_
    
  • Strikethrough

    ~Strikethrough Text~
    
  • Horizontal Rule

    ---
    
  • URL

    [URL Name](https://example.com)
    
  • Image

    ![Image](http://url/a.png)
    
  • Inline Code

    `Inline Code`
    

Lists

  • Un-Ordered List

    * Item 1
    * Item 2
    * Item 3
        or
    - Item 1
    - Item 2
    - Item 3
    
  • Ordered List

    1. Item 1
    2. Item 2
    3. Item 3
    
  • Task List

    * [ ] Un-checked Task
    * [x] Checked Task
    

Blocks

  • Code Blocks
``` creates a new code block.
```py creates a new code block with Python syntax highlighting.
  • Quotes

    Use > to start a quote block
    
  • Information Hint Block

    {% hint style="info" %} Information Hint Block {% endhint %}
    

    info-hints

  • Warning Hint Block

    {% hint style="warning" %} Warning Hint Block {% endhint %}
    

    warning-hints

  • Success Hint Block

    {% hint style="success" %} Success Hint Block {% endhint %}
    

    success-hints

  • Danger Hint Block

    {% hint style="danger" %} Success Hint Block {% endhint %}
    

    danger-hints

Media

  • Block : To create a Media Block you need to use the below convention

    ![Media Caption](<.gitbook/assets/file-name>)
    
    E.g:
    
    ![Home page](<.gitbook/assets/Screenshot 2021-11-05 at 18.45.31.png>)
    
  • File Storage : Any media that is being used has to be uploaded to the .gitbook/assets/ folder only then can it be used inside the documentation.

  • File Formats : These are the only file formats that are accepted for uploading media in the documentation.

    • Videos :

      ✔️ Use only Mp4 No gifs or other formats

    • Images :

      ✔️ Use only PNG and SVG images No other formats

  • Size Limits : To not have performance issues or slow page loading times there is size limit of 5 MegaBytes for each media file being used.

  • Naming : To reduce confusion, when uploading please rename your files in the proper format

    <image-caption>-<page>.<file-format>
    
    E.g:
    ✔️ loadingscreen-intro.png
    ❌ Screenshot 2021-11-05 at 18.45.31.png