Skip to content

Commit 12c1b2a

Browse files
authored
docs: fix formatting (#83)
1 parent b628b34 commit 12c1b2a

File tree

1 file changed

+12
-10
lines changed

1 file changed

+12
-10
lines changed

README.md

Lines changed: 12 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ This repository is a template for providing [DDEV](https://ddev.readthedocs.io)
2020

2121
In DDEV, add-ons can be installed from the command line using the `ddev add-on get` command, for example, `ddev add-on get ddev/ddev-redis` or `ddev add-on get ddev/ddev-solr`.
2222

23-
This repository is a quick way to get started. You can create a new repo from this one by clicking the template button in the top right corner of the page.
23+
This repository is a quick way to get started. You can create a new repo from this one by clicking <kbd>Use this template &#8964;</kbd> button in the top right corner of the page.
2424

2525
![template button](images/template-button.png)
2626

@@ -34,20 +34,21 @@ curl -fsSL https://ddev.com/s/addon-update-checker.sh | bash
3434

3535
## TL;DR
3636

37-
1. Click the green `Use this template button` (top right) > `Create a new repository`.
37+
1. Click the green <kbd>Use this template &#8964;</kbd> button (top right) > `Create a new repository`.
3838
2. Name your repository using the `ddev-` prefix (e.g. `ddev-foobar`).
3939
3. Add a meaningful description with relevant keywords for discoverability.
40-
4. Click `Create repository` and wait for the automated `First time setup` commit.
40+
4. Click <kbd>Create repository</kbd> and wait for the automated "First time setup" commit.
4141

42-
> [!NOTE]
43-
> Automated updates to the `README.md` happen in a minute or so after creation.
42+
> [!NOTE]
43+
> Automated updates to the `README.md` happen in a minute or so after creation.
4444
45-
5. Clone your repository locally (use the green `<> Code` button for the URL).
45+
5. Clone your repository locally (use the <kbd><> Code &#8964;</kbd> button for the URL).
4646
6. Prepare your add-on files and tests, see [Getting started](#getting-started) for details.
4747
7. Create a new PR for review and discussion (avoid committing directly to `main`, as that bypasses the collaborative process).
4848
8. Merge or squash your PR into `main` (squash is preferred for a cleaner commit history).
4949
9. Create a new [release](https://docs.github.com/en/repositories/releasing-projects-on-github/managing-releases-in-a-repository).
5050
10. When ready to share, make your add-on discoverable by adding the `ddev-get` [topic](https://docs.github.com/en/repositories/managing-your-repositorys-settings-and-features/customizing-your-repository/classifying-your-repository-with-topics).
51+
11. Check out the [DDEV Add-on Maintenance Guide](https://ddev.com/blog/ddev-add-on-maintenance-guide/).
5152

5253
## Components of the repository
5354

@@ -64,7 +65,8 @@ curl -fsSL https://ddev.com/s/addon-update-checker.sh | bash
6465
4. Update the `install.yaml` to give the necessary instructions for installing the add-on:
6566

6667
* The fundamental line is the `project_files` directive, a list of files to be copied from this repo into the project `.ddev` directory.
67-
* You can optionally add files to the `global_files` directive as well, which will cause files to be placed in the global `.ddev` directory, `~/.ddev`.
68+
* You can optionally add files to the `global_files` directive as well, which will cause files to be placed in the global `~/.ddev` directory.
69+
* Make sure to have the `ddev_version_constraint` directive, to keep the add-on users up to date.
6870
* Finally, `pre_install_commands` and `post_install_commands` are supported. These can use the host-side environment variables documented [in DDEV docs](https://ddev.readthedocs.io/en/stable/users/extend/custom-commands/#environment-variables-provided).
6971

7072
5. Update `tests/test.bats` to provide a reasonable test for your repository. In most cases, you only need to modify the `health_checks()` function. Tests will run automatically on every push to the repository, and periodically each night. Please make sure to address test failures when they happen. Others will be depending on you. Bats is a testing framework that just uses Bash. To run a Bats test locally, you have to install [bats-core](https://bats-core.readthedocs.io/en/stable/installation.html) and its [libraries](https://github.com/ztombol/bats-docs) first. Then you download your add-on, and finally run `bats ./tests/test.bats` within the root of the uncompressed directory. To learn more about Bats see the [documentation](https://bats-core.readthedocs.io/en/stable/).
@@ -74,8 +76,8 @@ curl -fsSL https://ddev.com/s/addon-update-checker.sh | bash
7476
9. You can test PRs with `ddev add-on get https://github.com/<user>/<repo>/tarball/<branch>` or `https://github.com/<user>/<repo>/tarball/refs/pull/<pr-number>/head`.
7577
10. You can test add-ons locally without GitHub by downloading them, making changes and running `ddev add-on get /path/to/add-on-directory`.
7678
11. Update the [`README.md`](./README_ADDON.md) to describe the add-on, how to use it, and how to contribute. If there are any manual actions that have to be taken, please explain them. If it requires special configuration of the using project, please explain how to do those. Examples in [ddev/ddev-solr](https://github.com/ddev/ddev-solr), [ddev/ddev-memcached](https://github.com/ddev/ddev-memcached), and (advanced) [ddev-platformsh](https://github.com/ddev/ddev-platformsh).
77-
12. Add a good short description to your repo, and add the `ddev-get` [topic](https://docs.github.com/en/repositories/managing-your-repositorys-settings-and-features/customizing-your-repository/classifying-your-repository-with-topics). It will immediately be added to the list provided by `ddev add-on list --all`.
78-
13. When it has matured you will hopefully want to have it become an "official" maintained add-on. Open an issue in the [DDEV queue](https://github.com/ddev/ddev/issues) for that.
79+
12. Add a clear short description to your repo, and add the `ddev-get` [topic](https://docs.github.com/en/repositories/managing-your-repositorys-settings-and-features/customizing-your-repository/classifying-your-repository-with-topics). It will immediately be added to the list provided by `ddev add-on list --all` and appear in the [DDEV Add-on Registry](https://addons.ddev.com/) within about 24 hours.
80+
13. Once it matures and you want it to become an officially maintained add-on (i.e., supported by the DDEV team), open an issue in the [DDEV issue queue](https://github.com/ddev/ddev/issues).
7981

8082
## How to debug in GitHub Actions
8183

@@ -86,7 +88,7 @@ See [full instructions](./README_DEBUG.md).
8688
* [DDEV Add-ons: Creating, maintaining, testing](https://www.youtube.com/watch?v=TmXqQe48iqE) (part of the [DDEV Contributor Live Training](https://ddev.com/blog/contributor-training))
8789
* [Advanced Add-On Techniques](https://ddev.com/blog/advanced-add-on-contributor-training/)
8890
* [DDEV Add-on Maintenance Guide](https://ddev.com/blog/ddev-add-on-maintenance-guide/)
89-
* [DDEV docs](https://ddev.readthedocs.io/en/stable/users/extend/additional-services/)
91+
* [DDEV Documentation for Add-ons](https://ddev.readthedocs.io/en/stable/users/extend/additional-services/)
9092
* [DDEV Add-on Registry](https://addons.ddev.com/)
9193

9294
## Credits

0 commit comments

Comments
 (0)