Skip to content

Commit 5226820

Browse files
Use absolute example link for pub.dev.
1 parent 6d4438c commit 5226820

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

tool/pubdev-links.sh

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,6 @@ echo "Setting pub.dev specific links"
44

55
update objectbox/README.md "s|example/README.md|https://pub.dev/packages/objectbox/example|g"
66
update objectbox/README.md "s|CHANGELOG.md|https://pub.dev/packages/objectbox/changelog|g"
7-
update objectbox/README.md "s|../CONTRIBUTING.md|https://github.com/objectbox/objectbox-dart/blob/main/CONTRIBUTING.md|g"
7+
update objectbox/README.md "s|../CONTRIBUTING.md|https://github.com/objectbox/objectbox-dart/blob/main/CONTRIBUTING.md|g"
8+
# Link generated by pub.dev is missing "objectbox" path, so replace with absolute link.
9+
update objectbox/example/README.md "s|flutter/objectbox_demo|https://github.com/objectbox/objectbox-dart/tree/main/objectbox/example/flutter/objectbox_demo|g"

tool/publish.sh

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ find "${root}" -type f -name "pubspec.yaml" \
2323
-exec cp "{}" "{}.original" \; \
2424
-exec "$YQCMD" delete -i "{}" dependency_overrides \;
2525

26-
# update links in the readme (see `git restore "${root}/objectbox/README.md"` below)
26+
# Update links in READMEs (restored by git restore commands below).
2727
"${root}/tool/pubdev-links.sh"
2828

2929
# =========================== PUBLISH ======================== #
@@ -62,4 +62,6 @@ find "${root}" -type f -name "pubspec.yaml" \
6262
-exec mv "{}.original" "{}" \;
6363

6464
echo "Restoring objectbox/README.md"
65-
git restore "${root}/objectbox/README.md"
65+
git restore "${root}/objectbox/README.md"
66+
echo "Restoring objectbox/example/README.md"
67+
git restore "${root}/objectbox/example/README.md"

0 commit comments

Comments
 (0)