Skip to content

Commit 5194ff0

Browse files
authored
Rename the docs smoke paths in setup_project.sh too (#37)
1 parent bd81e2d commit 5194ff0

2 files changed

Lines changed: 7 additions & 1 deletion

File tree

‎CHANGELOG.md‎

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,11 @@ format follows [Keep a Changelog](https://keepachangelog.com/en/1.1.0/).
55

66
## [Unreleased]
77

8+
### Fixed
9+
10+
- `setup_project.sh` also renames the docs smoke paths (`api/app/...` in `docs.yml`), so the
11+
docs build of a new project no longer looks for the template's API pages.
12+
813
### Added
914

1015
- Opt-in scope-profiler regions, as in plasmacoll, wellbalanced and patchwork: `_profiling.py`

‎setup_project.sh‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,8 @@ replace "from ${PACKAGE}\\.main import main" "from ${APPNAME_UNDERSCORE}.main im
5858
replace "from ${PACKAGE}\\._profiling import" "from ${APPNAME_UNDERSCORE}._profiling import"
5959
replace "${PACKAGE}\\.main:main" "${APPNAME_UNDERSCORE}.main:main"
6060
replace "${PACKAGE}\\.main\\.main" "${APPNAME_UNDERSCORE}.main.main"
61-
replace "/api/${PACKAGE}/" "/api/${APPNAME_UNDERSCORE}/"
61+
# also the docs smoke paths, which are relative (api/app/...)
62+
replace "api/${PACKAGE}/" "api/${APPNAME_UNDERSCORE}/"
6263
replace "src/${PACKAGE}/" "src/${APPNAME_UNDERSCORE}/"
6364
replace "source = \[ \"${PACKAGE}\" \]" "source = [ \"${APPNAME_UNDERSCORE}\" ]"
6465
replace "pythonPackage: '${PACKAGE}'," "pythonPackage: '${APPNAME_UNDERSCORE}',"

0 commit comments

Comments
 (0)