Ansible Community
      • Sharing URL Link copied
      • /edit
      • View mode
        • Edit mode
        • View mode
        • Book mode
        • Slide mode
        Edit mode View mode Book mode Slide mode
      • Customize slides
      • Note Permission
      • Read
        • Owners
        • Signed-in users
        • Everyone
        Owners Signed-in users Everyone
      • Write
        • Owners
        • Signed-in users
        • Everyone
        Owners Signed-in users Everyone
      • Engagement control Commenting, Suggest edit, Emoji Reply
    • Invite by email
      Invitee

      This note has no invitees

    • Publish Note

      Share your work with the world Congratulations! 🎉 Your note is out in the world Publish Note

      Your note will be visible on your profile and discoverable by anyone.
      Your note is now live.
      This note is visible on your profile and discoverable online.
      Everyone on the web can find and read all notes of this public team.
      See published notes
      Unpublish note
      Please check the box to agree to the Community Guidelines.
      View profile
    • Commenting
      Permission
      Disabled Forbidden Owners Signed-in users Everyone
    • Enable
    • Permission
      • Forbidden
      • Owners
      • Signed-in users
      • Everyone
    • Suggest edit
      Permission
      Disabled Forbidden Owners Signed-in users Everyone
    • Enable
    • Permission
      • Forbidden
      • Owners
      • Signed-in users
    • Emoji Reply
    • Enable
    • Versions and GitHub Sync
    • Note settings
    • Note Insights New
    • Engagement control
    • Make a copy
    • Transfer ownership
    • Delete this note
    • Insert from template
    • Import from
      • Dropbox
      • Google Drive
      • Gist
      • Clipboard
    • Export to
      • Dropbox
      • Google Drive
      • Gist
    • Download
      • Markdown
      • HTML
      • Raw HTML
Menu Note settings Note Insights Versions and GitHub Sync Sharing URL Help
Menu
Options
Engagement control Make a copy Transfer ownership Delete this note
Import from
Dropbox Google Drive Gist Clipboard
Export to
Dropbox Google Drive Gist
Download
Markdown HTML Raw HTML
Back
Sharing URL Link copied
/edit
View mode
  • Edit mode
  • View mode
  • Book mode
  • Slide mode
Edit mode View mode Book mode Slide mode
Customize slides
Note Permission
Read
Owners
  • Owners
  • Signed-in users
  • Everyone
Owners Signed-in users Everyone
Write
Owners
  • Owners
  • Signed-in users
  • Everyone
Owners Signed-in users Everyone
Engagement control Commenting, Suggest edit, Emoji Reply
  • Invite by email
    Invitee

    This note has no invitees

  • Publish Note

    Share your work with the world Congratulations! 🎉 Your note is out in the world Publish Note

    Your note will be visible on your profile and discoverable by anyone.
    Your note is now live.
    This note is visible on your profile and discoverable online.
    Everyone on the web can find and read all notes of this public team.
    See published notes
    Unpublish note
    Please check the box to agree to the Community Guidelines.
    View profile
    Engagement control
    Commenting
    Permission
    Disabled Forbidden Owners Signed-in users Everyone
    Enable
    Permission
    • Forbidden
    • Owners
    • Signed-in users
    • Everyone
    Suggest edit
    Permission
    Disabled Forbidden Owners Signed-in users Everyone
    Enable
    Permission
    • Forbidden
    • Owners
    • Signed-in users
    Emoji Reply
    Enable
    Import from Dropbox Google Drive Gist Clipboard
       Owned this note    Owned this note      
    Published Linked with GitHub
    • Any changes
      Be notified of any changes
    • Mention me
      Be notified of mention me
    • Unsubscribe
    # Hacktoberfest 2022 (Oct) ###### tags: `Documentation` ## Hacking the Ansible docs Ready to start editing Ansible documentation? Great! You can edit docs directly in GitHub. You can also can clone or fork the Ansible repository and open a PR against the ``devel`` branch. ```bash $ git clone git@github.com:ansible/ansible.git ``` Visit [Contributing to the Ansible Documentation](https://docs.ansible.com/ansible/latest/community/documentation_contributions.html) for more information on getting setup. *NOTE* The following sections uses `grep` to find occurences. You can append ` | wc -l` to get a count of the numer of impacted files. ### Opening Issues When opening issues, include a comment to say the following: * For the month of October, we will address hacktoberfest PRs on a first come-first mergeable basis as there is no way for us to assign issues to an individual contributor. Thanks for your interest in helping the Ansible documentation effort! Each issue should include the following: * hacktoberfest and easyfix label * limited scope to keep the PR under 50 files * Not so limited scope that we get 100 PRs with single fixes each :-) Yes it's a balancing act. We may still geet people asking to assign an issue to them. We don't have that ability, thus the comment above that PRs merged on first come first merged (for correct PRs). Each followon PR should: * thank the contributor, even if they did it incorrectly or are more spam than fix (like randomly changing a sentence that doesn't improve readability of the docs). * Add hacktoberfest label to the PR * Ensure the PR says "Fixes #xxxx" for the issue it is fixing so that issue is automatically closed when the PR merges. * ### Remove urls that are raw (no context) or say 'here' - accessibility * https://github.com/ansible/ansible/issues/78899 * https://github.com/ansible/ansible/issues/78914 ### Update boolean use in guides (not modules) to use`true/false` in most places. Based on https://github.com/ansible-community/community-topics/issues/116 we should use `true/false` in playbook and task examples (basically anything that `ansible-test` would use to validate the task). **NOTE**: For now, avoid EXAMPLE blocks in any modules/plugins as some yes/no are valid (aka not boolean etc so require technical reviewers, and some folks still disagree on these changes). (samccann evaluating and will open issues) From `docs/docsite/rst`: ``` $> grep -R '\: \(yes\|no\)$' --exclude-dir=locales --exclude-dir=network --exclude-dir=collections` ``` See the following issues to fix these: * https://github.com/ansible/ansible/issues/78921 * https://github.com/ansible/ansible/issues/78922 * https://github.com/ansible/ansible/issues/78923 * https://github.com/ansible/ansible/issues/78924 * https://github.com/ansible/ansible/issues/78925 ### Ensure IP addresses conform to RFC 5737 IP addresses used as examples in documentation should be within the ranges of 192.0.2.0/24 (TEST-NET-1), 198.51.100.0/24 (TEST-NET-2), and 203.0.113.0/24 (TEST-NET-3) as per [RFC 5737](https://www.rfc-editor.org/rfc/rfc5737). Procedures should use the loopback address `127.0.0.1` (localhost) to demonstrate running a process or service in a developer environment. ### Replace the instances using :: instead of code-block: ``` $> grep -rn "^[[:blank:]]*[^[:blank:]\.\.].*::$" ``` ### Use sentence case in headings Sentence case is a capitalization style that mainly uses lowercase letters. Follow these directions to change headings to sentence case: * Capitalize the first word of the title or heading as well as all subheadings. * Capitalize proper nouns as well as occurrences of Ansible or related software like Ansible Builder. * Use lowercase for everything else. For consistency, you should change all headings in the same guide. ### Replace Latin terms (via, e.g, i.e, etc) From `docs/docsite/rst`: ``` $> grep -R -e 'etc\.' -e 'i\.e ' -e 'e\.g\. ' -e 'via ' -e 'vs\(\.\)\? ' -e versus --exclude-dir=locales ``` **Note**: List has been pulled from https://github.com/ansible/ansible/blob/devel/docs/docsite/rst/dev_guide/style_guide/index.rst#avoid-using-latin-phrases * https://github.com/ansible/ansible/issues/78997 * https://github.com/ansible/ansible/issues/78998 * https://github.com/ansible/ansible/issues/78999 * https://github.com/ansible/ansible/issues/79000 * https://github.com/ansible/ansible/issues/79001 * https://github.com/ansible/ansible/issues/79002 * https://github.com/ansible/ansible/issues/79003 * https://github.com/ansible/ansible/issues/79006 #### Fix rstcheck v6 problems spredzy: That sounds like a huge effort for hacktoberfest. Feel like we should decide which rule we want to gate on fix it, implement a new rules, etc... - A good suggestion might be more define **one** rule we want to be tackled during hacktoberfest samccann: there is a small set of problems with rstcheck6 that we could potentially fix. I'll add examples when I have to time to regenerate the list. They may be in collections vs ansible/ansible... #### Change usage of the word "please" for tone Using the word "please" conveys friendliness and humanizes text. However, in technical documentation, using "please" can reduce authoritative voice and lose meaning in translation. Consider the following sentence: "Please open your browser." This construction can be taken as a request rather than an imperative. Using "please" does not clearly signal to users that they need to perform an action, which can cause users to fail. 1. Open a terminal in the RST source directory and search for the word "please". ``` $ cd ansible/docs/docsite/rst $ grep -R 'please' --exclude-dir=locales ``` 2. Consider revising constructions that use "please" to use a more authoritative voice. #### Replace any problematic language and spelling errors Search for problematic terms such as "master" as follows: ``` $ cd ansible/docs/docsite/rst $ grep -R 'master' --exclude-dir=locales ``` **Note**: Haven't found any thing in that one. Most are either external repo having a branch `master`, or a variable named `master`. Install codespell and search for problematic language and spelling errors: ``` $ cd ansible/docs/docsite/rst $ codespell --skip "*.po" --ignore-words-list "ACI","aci" ``` #### search leadin sentences (examples, lists, etc) Search leadding sentences to ensure they are complete: * Don't do this - **Use the setup utility to**: * Do this - **Use the setup utility to complete the following tasks:** #### (?) Make tables more accessible to screen readers TODO #### Externalize code blocks to native file type Embedding YAML, Python, INI code in RST files can be #### Use "command" and "table" in the leadin sentences for commands / tables TODO # Opening Detailed Issues See https://github.com/ansible/ansible/issues/75923 for a good example. The general guidelines are: * limit the scope of the issue to one file if possible (this allows a contributor to use edit on github to fix the issue). * Provide details of what is wrong, and exactly how to change it * If this is a repeated issue, link to PRs that solve the problem in prior issues. * Label issue with `hacktoberfest`.

    Import from clipboard

    Paste your markdown or webpage here...

    Advanced permission required

    Your current role can only read. Ask the system administrator to acquire write and comment permission.

    This team is disabled

    Sorry, this team is disabled. You can't edit this note.

    This note is locked

    Sorry, only owner can edit this note.

    Reach the limit

    Sorry, you've reached the max length this note can be.
    Please reduce the content or divide it to more notes, thank you!

    Import from Gist

    Import from Snippet

    or

    Export to Snippet

    Are you sure?

    Do you really want to delete this note?
    All users will lose their connection.

    Create a note from template

    Create a note from template

    Oops...
    This template has been removed or transferred.
    Upgrade
    All
    • All
    • Team
    No template.

    Create a template

    Upgrade

    Delete template

    Do you really want to delete this template?
    Turn this template into a regular note and keep its content, versions, and comments.

    This page need refresh

    You have an incompatible client version.
    Refresh to update.
    New version available!
    See releases notes here
    Refresh to enjoy new features.
    Your user state has changed.
    Refresh to load new user state.

    Sign in

    Forgot password

    or

    By clicking below, you agree to our terms of service.

    Sign in via Facebook Sign in via Twitter Sign in via GitHub Sign in via Dropbox Sign in with Wallet
    Wallet ( )
    Connect another wallet

    New to HackMD? Sign up

    Help

    • English
    • 中文
    • Français
    • Deutsch
    • 日本語
    • Español
    • Català
    • Ελληνικά
    • Português
    • italiano
    • Türkçe
    • Русский
    • Nederlands
    • hrvatski jezik
    • język polski
    • Українська
    • हिन्दी
    • svenska
    • Esperanto
    • dansk

    Documents

    Help & Tutorial

    How to use Book mode

    Slide Example

    API Docs

    Edit in VSCode

    Install browser extension

    Contacts

    Feedback

    Discord

    Send us email

    Resources

    Releases

    Pricing

    Blog

    Policy

    Terms

    Privacy

    Cheatsheet

    Syntax Example Reference
    # Header Header 基本排版
    - Unordered List
    • Unordered List
    1. Ordered List
    1. Ordered List
    - [ ] Todo List
    • Todo List
    > Blockquote
    Blockquote
    **Bold font** Bold font
    *Italics font* Italics font
    ~~Strikethrough~~ Strikethrough
    19^th^ 19th
    H~2~O H2O
    ++Inserted text++ Inserted text
    ==Marked text== Marked text
    [link text](https:// "title") Link
    ![image alt](https:// "title") Image
    `Code` Code 在筆記中貼入程式碼
    ```javascript
    var i = 0;
    ```
    var i = 0;
    :smile: :smile: Emoji list
    {%youtube youtube_id %} Externals
    $L^aT_eX$ LaTeX
    :::info
    This is a alert area.
    :::

    This is a alert area.

    Versions and GitHub Sync
    Get Full History Access

    • Edit version name
    • Delete

    revision author avatar     named on  

    More Less

    Note content is identical to the latest version.
    Compare
      Choose a version
      No search result
      Version not found
    Sign in to link this note to GitHub
    Learn more
    This note is not linked with GitHub
     

    Feedback

    Submission failed, please try again

    Thanks for your support.

    On a scale of 0-10, how likely is it that you would recommend HackMD to your friends, family or business associates?

    Please give us some advice and help us improve HackMD.

     

    Thanks for your feedback

    Remove version name

    Do you want to remove this version name and description?

    Transfer ownership

    Transfer to
      Warning: is a public team. If you transfer note to this team, everyone on the web can find and read this note.

        Link with GitHub

        Please authorize HackMD on GitHub
        • Please sign in to GitHub and install the HackMD app on your GitHub repo.
        • HackMD links with GitHub through a GitHub App. You can choose which repo to install our App.
        Learn more  Sign in to GitHub

        Push the note to GitHub Push to GitHub Pull a file from GitHub

          Authorize again
         

        Choose which file to push to

        Select repo
        Refresh Authorize more repos
        Select branch
        Select file
        Select branch
        Choose version(s) to push
        • Save a new version and push
        • Choose from existing versions
        Include title and tags
        Available push count

        Pull from GitHub

         
        File from GitHub
        File from HackMD

        GitHub Link Settings

        File linked

        Linked by
        File path
        Last synced branch
        Available push count

        Danger Zone

        Unlink
        You will no longer receive notification when GitHub file changes after unlink.

        Syncing

        Push failed

        Push successfully