Skip to content

Commit

Permalink
Merge pull request #1270 from nextcloud/feat/tool/find-relative-markd…
Browse files Browse the repository at this point in the history
…own-links
  • Loading branch information
provokateurin authored Dec 10, 2023
2 parents 223dd15 + 7e839fd commit 027a37d
Show file tree
Hide file tree
Showing 8 changed files with 26 additions and 20 deletions.
18 changes: 7 additions & 11 deletions .github/workflows/neon.yml → .github/workflows/lint.yml
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
name: Neon
name: Lint
on:
pull_request:

concurrency:
group: neon-${{ github.head_ref || github.run_id }}
group: lint-${{ github.head_ref || github.run_id }}
cancel-in-progress: true

jobs:
untested-apis:
name: Untested APIs
lint:
name: Linting
runs-on: ubuntu-22.04
steps:
- name: Checkout repository
Expand All @@ -17,12 +17,8 @@ jobs:
- name: Find untested Neon APIs
run: ./tool/find-untested-neon-apis.sh

dart-io-usage:
name: dart:io usage
runs-on: ubuntu-22.04
steps:
- name: Checkout repository
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4

- name: Find dart:io usage
run: ./tool/find-dart-io-usage.sh

- name: Find relative markdown links
run: ./tool/find-relative-markdown-links.sh
8 changes: 4 additions & 4 deletions packages/app/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ The app will be published on F-Droid, the Google Playstore and Flathub later on.

For more screenshots see `./screenshots/`.

| ![](screenshots/login_server_selection.png) | ![](screenshots/home_drawer.png) | ![](screenshots/settings_oled.png) |
|---------------------------------------------|------------------------------------------------|--------------------------------------|
| ![](screenshots/files_photos.png) | ![](screenshots/news_articles_unread_list.png) | ![](screenshots/notes_note_edit.png) |
| ![](screenshots/notifications_list.png) | | |
| ![](https://raw.githubusercontent.com/nextcloud/neon/main/packages/app/screenshots/login_server_selection.png) | ![](https://raw.githubusercontent.com/nextcloud/neon/main/packages/app/screenshots/home_drawer.png) | ![](https://raw.githubusercontent.com/nextcloud/neon/main/packages/app/screenshots/settings_oled.png) |
|----------------------------------------------------------------------------------------------------------------|-------------------------------------------------------------------------------------------------------------------|---------------------------------------------------------------------------------------------------------|
| ![](https://raw.githubusercontent.com/nextcloud/neon/main/packages/app/screenshots/files_photos.png) | ![](https://raw.githubusercontent.com/nextcloud/neon/main/packages/app/screenshots/news_articles_unread_list.png) | ![](https://raw.githubusercontent.com/nextcloud/neon/main/packages/app/screenshots/notes_note_edit.png) |
| ![](https://raw.githubusercontent.com/nextcloud/neon/main/packages/app/screenshots/notifications_list.png) | | |
2 changes: 1 addition & 1 deletion packages/dynamite/dynamite_end_to_end_test/README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Dynamite end to end test

This package contains OpenAPI specs to test the [dynamite](../dynamite) generator.
This package contains OpenAPI specs to test the [dynamite](https://github.com/nextcloud/neon/tree/main/packages/dynamite/dynamite) generator.
This package is not meant for publishing.
2 changes: 1 addition & 1 deletion packages/dynamite/dynamite_petstore_example/README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
# dynamite petstore example

An example showcasing the [dynamite generator](../dynamite) for OpenAPI using the [Swagger Petstore](https://github.com/swagger-api/swagger-petstore).
An example showcasing the [dynamite generator](https://github.com/nextcloud/neon/tree/main/packages/dynamite/dynamite) for OpenAPI using the [Swagger Petstore](https://github.com/swagger-api/swagger-petstore).
2 changes: 1 addition & 1 deletion packages/neon_lints/README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
A package containing a very strict set of linting rules.

### Update rules:
To update the rules you need to update the `commitHash` in [lint_maker.yaml](lint_maker.yaml) and regenerate by running:
To update the rules you need to update the `commitHash` in [lint_maker.yaml](https://github.com/nextcloud/neon/blob/main/packages/neon_lints/lint_maker.yaml) and regenerate by running:
```sh
fvm dart run lint_maker
```
Expand Down
2 changes: 1 addition & 1 deletion packages/nextcloud/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ Alternatively you can also go to https://pub.dev/documentation/nextcloud/latest
The endpoints are grouped by app and most apps also group their endpoints again.
They can be accessed using getters on the `NextcloudClient`.

For an example checkout the [example](./example/example.dart).
For an example checkout the [example](https://github.com/nextcloud/neon/blob/main/packages/nextcloud/example/example.dart).

## Development

Expand Down
2 changes: 1 addition & 1 deletion packages/nextcloud_test/README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
# nextcloud_test

A helper package for running tests in the [nextcloud](../nextcloud) package.
A helper package for running tests in the [nextcloud](https://github.com/nextcloud/neon/tree/main/packages/nextcloud) package.
10 changes: 10 additions & 0 deletions tool/find-relative-markdown-links.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
#!/bin/bash
set -euxo pipefail
cd "$(dirname "$0")/.."

relative_markdown_links=("$(grep -r packages --include "*\.md" -e "\[.*\]\((?!http).*\)" -l -P || true)")

if [[ -n "${relative_markdown_links[*]}" ]]; then
printf "%s\n" "${relative_markdown_links[@]}"
exit 1
fi

0 comments on commit 027a37d

Please sign in to comment.