Skip to content

Commit

Permalink
Merge pull request #6075 from JustCris654/fix-docs
Browse files Browse the repository at this point in the history
Fix path of /docs/ [ci skip]
  • Loading branch information
habrahamsson-skanetrafiken authored Sep 24, 2024
2 parents 9c10a0e + 1bc92c3 commit 1c858c8
Show file tree
Hide file tree
Showing 17 changed files with 23 additions and 22 deletions.
2 changes: 1 addition & 1 deletion doc/templates/BuildConfiguration.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
NOTE! Part of this document is generated. Make sure you edit the template, not the generated doc.
- Template directory is: /doc/templates
- Generated directory is: /docs
- Generated directory is: /doc/user
-->

# Graph Build Configuration
Expand Down
2 changes: 1 addition & 1 deletion doc/templates/Configuration.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
NOTE! Part of this document is generated. Make sure you edit the template, not the generated doc.
- Template directory is: /doc/templates
- Generated directory is: /docs
- Generated directory is: /doc/user
-->

# Configuring OpenTripPlanner
Expand Down
2 changes: 1 addition & 1 deletion doc/templates/GraphQL-Tutorial.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
NOTE! Part of this document is generated. Make sure you edit the template, not the generated doc.
- Template directory is: /doc/templates
- Generated directory is: /docs
- Generated directory is: /doc/user
-->

# GraphQL tutorial
Expand Down
2 changes: 1 addition & 1 deletion doc/templates/RouteRequest.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
NOTE! Part of this document is generated. Make sure you edit the template, not the generated doc.
- Template directory is: /doc/templates
- Generated directory is: /docs
- Generated directory is: /doc/user
-->

# Route Request
Expand Down
2 changes: 1 addition & 1 deletion doc/templates/RouterConfiguration.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
NOTE! Part of this document is generated. Make sure you edit the template, not the generated doc.
- Template directory is: /doc/templates
- Generated directory is: /docs
- Generated directory is: /doc/user
-->

# Router configuration
Expand Down
2 changes: 1 addition & 1 deletion doc/templates/StopConsolidation.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
NOTE! Part of this document is generated. Make sure you edit the template, not the generated doc.
- Template directory is: /doc/templates
- Generated directory is: /docs
- Generated directory is: /doc/user
-->
# Stop consolidation

Expand Down
2 changes: 1 addition & 1 deletion doc/templates/UpdaterConfig.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
NOTE! Part of this document is generated. Make sure you edit the template, not the generated doc.
- Template directory is: /doc/templates
- Generated directory is: /docs
- Generated directory is: /doc/user
-->


Expand Down
2 changes: 1 addition & 1 deletion doc/user/BuildConfiguration.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
NOTE! Part of this document is generated. Make sure you edit the template, not the generated doc.
- Template directory is: /doc/templates
- Generated directory is: /docs
- Generated directory is: /doc/user
-->

# Graph Build Configuration
Expand Down
2 changes: 1 addition & 1 deletion doc/user/Configuration.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
NOTE! Part of this document is generated. Make sure you edit the template, not the generated doc.
- Template directory is: /doc/templates
- Generated directory is: /docs
- Generated directory is: /doc/user
-->

# Configuring OpenTripPlanner
Expand Down
6 changes: 3 additions & 3 deletions doc/user/Developers-Guide.md
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ There are several ways to get involved:
* Join the [Gitter chat room](https://gitter.im/opentripplanner/OpenTripPlanner) and the
[user mailing list](http://groups.google.com/group/opentripplanner-users).

* Fix typos and improve the documentation within the `/docs` directory of the project (details
* Fix typos and improve the documentation within the `/doc/user` directory of the project (details
below).

* [File a bug or new feature request](http://github.com/openplans/OpenTripPlanner/issues/new).
Expand Down Expand Up @@ -133,7 +133,7 @@ control to be applied to documentation as well as program source code. All pull
how OTP is used or configured should include changes to the documentation alongside code
modifications.

The documentation files are in Markdown format and are in the `/docs` directory under the root of
The documentation files are in Markdown format and are in the `/doc/user` directory under the root of
the project. On every push to the `dev-2.x` branch the documentation will be rebuilt and deployed as
static pages to our subdomain of [Github Pages](https://github.com/opentripplanner/docs).
MkDocs is a Python program and should run on any major platform.
Expand All @@ -143,7 +143,7 @@ how to generate a live local preview of the documentation while you're writing i
In short:

```
$ pip install -r docs/requirements.txt
$ pip install -r doc/user/requirements.txt
$ mkdocs serve
```

Expand Down
2 changes: 1 addition & 1 deletion doc/user/RouteRequest.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
NOTE! Part of this document is generated. Make sure you edit the template, not the generated doc.
- Template directory is: /doc/templates
- Generated directory is: /docs
- Generated directory is: /doc/user
-->

# Route Request
Expand Down
2 changes: 1 addition & 1 deletion doc/user/RouterConfiguration.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
NOTE! Part of this document is generated. Make sure you edit the template, not the generated doc.
- Template directory is: /doc/templates
- Generated directory is: /docs
- Generated directory is: /doc/user
-->

# Router configuration
Expand Down
2 changes: 1 addition & 1 deletion doc/user/UpdaterConfig.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
NOTE! Part of this document is generated. Make sure you edit the template, not the generated doc.
- Template directory is: /doc/templates
- Generated directory is: /docs
- Generated directory is: /doc/user
-->


Expand Down
2 changes: 1 addition & 1 deletion doc/user/apis/GraphQL-Tutorial.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
NOTE! Part of this document is generated. Make sure you edit the template, not the generated doc.
- Template directory is: /doc/templates
- Generated directory is: /docs
- Generated directory is: /doc/user
-->

# GraphQL tutorial
Expand Down
2 changes: 1 addition & 1 deletion doc/user/sandbox/StopConsolidation.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
NOTE! Part of this document is generated. Make sure you edit the template, not the generated doc.
- Template directory is: /doc/templates
- Generated directory is: /docs
- Generated directory is: /doc/user
-->
# Stop consolidation

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,19 +14,20 @@ public interface DocsTestConstants {
File USER_DOC_PATH = new File(DOC_ROOT, "user");

/**
* This method return {@code true} if the /docs directory is available. If not, a warning is
* This method return {@code true} if both the /doc/user and /doc/templates directories are available. If not, a warning is
* logged and the method returns {@code false}. This is used by the {@link GeneratesDocumentation}
* annotation.
*/
static boolean docsExistOrWarn() {
if (USER_DOC_PATH.exists()) {
if (USER_DOC_PATH.exists() && TEMPLATE_PATH.exists()) {
return true;
}

LOG.warn(
"""
SKIP TEST - '/docs' NOT FOUND
SKIP TEST - '/doc/user' or '/doc/templates' NOT FOUND
The doc/templates directory might not be available if you run the tests outside the
The /doc/user and /doc/templates directories might not be available if you run the tests outside the
root of the projects. This may happen if the project root is not the working directory,
if you run tests using jar files or in a Maven multi-module project.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
import org.junit.jupiter.api.condition.EnabledIf;

/**
* Use this annotation on tests that generate(access) the /docs directory outside the
* Use this annotation on tests that generate(access) the /doc directory outside the
* source/resource.
* <p>
* All tests annotated with this annotation is tagged with "docs". You may include or exclude
Expand Down

0 comments on commit 1c858c8

Please sign in to comment.