Skip to content

Commit 57d4986

Browse files
committed
DRY documentation
1 parent 6360043 commit 57d4986

File tree

11 files changed

+277
-8
lines changed

11 files changed

+277
-8
lines changed

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ config/environments/*.local.yml
1313
config/settings.local.yml
1414
config/settings/*.local.yml
1515
coverage
16-
doc
16+
i18n/data
1717
log
1818
node_modules
1919
public/assets

CONTRIBUTING.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ This guide covers our development workflow, coding standards, and how to get you
2222

2323
> [!NOTE]
2424
> We don't assign issues to individual contributors. You are welcome to work on any issue, and there's no need to ask first.
25-
> For more details see [our FAQ](FAQ.md)
25+
> For more details see [our FAQ](doc/FAQ.md).
2626
2727
We welcome the community to contribute to this repository in any form:
2828

@@ -81,7 +81,7 @@ Here's the typical contribution workflow:
8181

8282
1. **Find an Issue**: Browse our [issues](https://github.com/openstreetmap/openstreetmap-website/issues) or identify a bug/feature you'd like to work on
8383
2. **Fork, Clone & Branch**: Fork the repository, clone it to your local machine, and create a new branch for your work. Avoid working directly on the `master` branch.
84-
3. **Set Up**: Follow the [installation guide](INSTALL.md) to set up your development environment
84+
3. **Set Up**: Follow the [installation guide](doc/INSTALL.md) to set up your development environment
8585
4. **Develop**: Make your changes following our [code quality guidelines](#code-quality-guidelines)
8686
5. **Test**: Write tests for your changes and ensure all existing tests pass
8787
6. **Commit**: Write clear commit messages following our [guidelines](#committing)

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ a copy of which can be found in the [LICENSE](LICENSE) file.
2626
# Installation
2727

2828
`openstreetmap-website` is a Ruby on Rails application that uses PostgreSQL as its database, and has a large
29-
number of dependencies for installation. For full details please see [INSTALL.md](INSTALL.md).
29+
number of dependencies for installation. For full details please see [INSTALL.md](doc/INSTALL.md).
3030

3131
# Development
3232

config/devcontainer.database.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# This configuration is tailored for use with devcontainers. See DEVCONTAINER.md for more information.
1+
# This configuration is tailored for use with devcontainers. See doc/DEVCONTAINER.md for more information.
22

33
development:
44
adapter: postgresql

config/docker.database.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# This configuration is tailored for use with docker compose. See DOCKER.md for more information.
1+
# This configuration is tailored for use with docker compose. See doc/DOCKER_INSTALL.md for more information.
22

33
development:
44
adapter: postgresql
File renamed without changes.
File renamed without changes.

DOCKER.md renamed to doc/DOCKER_INSTALL.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -101,6 +101,12 @@ Run the test suite:
101101
docker compose run --rm web bundle exec rails test:all
102102
```
103103

104+
If you encounter errors about missing assets, precompile the assets:
105+
106+
```bash
107+
docker compose run --rm web bundle exec rake assets:precompile
108+
```
109+
104110
> [!TIP]
105111
> If you encounter errors about missing assets, ensure your asset pipeline is correctly configured for your environment.
106112
>
File renamed without changes.

INSTALL.md renamed to doc/INSTALL.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@ There is more than one way to set up a development environment.
1010

1111
We offer containerized environments with Docker which may avoid installation difficulties:
1212

13-
- To use Docker manually, see [DOCKER](DOCKER.md).
14-
- To use Docker via [Development Containers](https://containers.dev) (devcontainers), see [DEVCONTAINER.md](DEVCONTAINER.md).
13+
- To use Docker manually, see [DOCKER](doc/DOCKER.md).
14+
- To use Docker via [Development Containers](https://containers.dev) (devcontainers), see [DEVCONTAINER.md](doc/DEVCONTAINER.md).
1515

1616
### Manual Installation
1717

0 commit comments

Comments
 (0)