The TLDR Pages project simplifies documentation for various command-line utilities. Contributing to this project is a great way to help others. Follow the steps below to contribute effectively and submit a proper pull request (PR).
Before contributing, you'll need to sign the TLDR CLA. Here are the steps:
- Go to the CLA page: Visit the CLA page.
- Agree to the CLA: Click on the "I Agree" button.
- Authorize with your GitHub account: Follow the authorization steps to sign the agreement.
Once this is done, you're ready to contribute!
- 
Fork the TLDR repository: Go to the TLDR Pages GitHub repository and click on Fork at the top-right corner of the page. 
- 
Clone your forked repository: After forking, clone the repository to your local machine: git clone https://github.com/your-username/tldr.git cd tldr
Before making any changes, create a new branch to keep your work organized and separate from the main branch.
git checkout -b add-audit2allow-pageReplace add-audit2allow-page with a descriptive name for your branch.
- 
Find the correct directory: Navigate to the appropriate directory depending on the platform the command applies to ( linux,osx,windows, etc.). For example:cd pages/linux
- 
Create a new Markdown file: The file should be named after the command you're documenting. For example: touch audit2allow.md 
- 
Write the command page: The format for the command page should follow the TLDR guidelines, typically consisting of: - A brief description of the command.
- A link to official documentation.
- At most 8 examples of how to use the command.
 
# audit2allow
> Create an SELinux local policy module to allow rules based on denied operations found in logs.
> More information: <https://man7.org/linux/man-pages/man1/audit2allow.1.html>.
- Generate and install a local policy to allow access for all denied services:
`sudo audit2allow --all -M {{local_policy_name}} && sudo semodule -i {{local_policy_name}}.pp`
- Generate and install a local policy module to grant access to a specific service from the audit logs:
`sudo grep {{apache2}} /var/log/audit/audit.log | sudo audit2allow -M {{local_policy_name}} && sudo semodule -i {{local_policy_name}}.pp`
- View the Type Enforcement (.te) file for a local policy:
`cat {{local_policy_name}}.te`Before committing, run the TLDR linter to ensure the page meets the required formatting and syntax.
- 
Install tldr-lint:npm install --global tldr-lint 
- 
Run the linter on your page: tldr-lint pages/linux/audit2allow.md 
If there are no errors, you can proceed. If errors appear, fix them and re-run the linter.
Once your changes are complete and verified with the linter, commit the changes:
- 
Add your file: git add pages/linux/audit2allow.md 
- 
Commit with a meaningful message: git commit -m "audit2allow: add page"
- 
Push your branch: git push origin add-audit2allow-page 
After pushing your branch, go to your repository on GitHub. You should see a notification to create a pull request (PR) for your new branch.
- Click "Compare & pull request".
- Fill out the PR template:
- Title your PR in the format command: add page.
- In the description, could you mention which platform the command applies to and provide other relevant details?
 
- Title your PR in the format 
Before submitting the PR, you must fill in the checklist to ensure you’ve followed all contribution guidelines.
Example PR Checklist:
<!--
Thank you for contributing!
Please fill in the following checklist, removing items that do not apply.
See also https://github.com/tldr-pages/tldr/blob/main/CONTRIBUTING.md
-->
- [x] The page(s) are in the correct platform directories: `linux`.
- [x] The page(s) have at most 8 examples.
- [x] The page description(s) have links to documentation or a homepage.
- [x] The page(s) follow the [content guidelines](https://github.com/tldr-pages/tldr/blob/main/CONTRIBUTING.md#guidelines).
- [x] The PR title conforms to the recommended [templates](https://github.com/tldr-pages/tldr/blob/main/CONTRIBUTING.md#commit-message-and-pr-title).
- **Version of the command being documented (if known): audit2allow .1**After submitting the PR, the TLDR maintainers will review your changes. They may ask for adjustments. Be sure to respond to any feedback and make the necessary changes.
- 
To update your PR: If changes are requested, make those changes locally, commit them, and push them to the same branch: git add . git commit -m "Update audit2allow page" git push origin add-audit2allow-page 
- 
The PR will automatically update with your changes. 
- TLDR Contributing Guidelines: Follow the official contributing guide.
- Using TLDR Lint: TLDR Lint helps ensure that pages meet formatting requirements.
One of my PRs was merged after 2 days of reviewing and changes
 

