|
84 | 84 | echo "publish2 main ${VERSION} ${ARCHIVE}" > "${MONITOR}" |
85 | 85 | fi |
86 | 86 |
|
87 | | - - name: Prepare Zoomin upload |
88 | | - if: ${{ github.event_name == 'push' }} |
89 | | - working-directory: sdk-nrf-bm/nrf-bm |
90 | | - run: | |
91 | | - PUBLISH="$PWD/publish" |
92 | | - mkdir -p "$PUBLISH" |
93 | | -
|
94 | | - # Doxygen APIs combined with Sphinx |
95 | | - declare -a SPHINX_DOXYGEN=("nrf-bm") |
96 | | -
|
97 | | - # Doxygen APIs standalone |
98 | | - declare -a DOXYGEN=("s115_nrf54l15" "s145_nrf54l15" "s115_nrf54lm20" "s145_nrf54lm20" "s115_nrf54ls05" "s145_nrf54ls05" "s115_nrf54lv10" "s145_nrf54lv10") |
99 | | -
|
100 | | - mkdir doc/_build/html-doxygen |
101 | | -
|
102 | | - for docset in "${SPHINX_DOXYGEN[@]}"; do |
103 | | - OUTDIR=doc/_build/html-doxygen/$docset-apis |
104 | | - mv doc/_build/html/$docset/doxygen/html "$OUTDIR" |
105 | | -
|
106 | | - # Populate custom.properties, tags.yml |
107 | | - cp doc/_zoomin/$docset.apis.custom.properties "$OUTDIR/custom.properties" |
108 | | - sed -i 's/__VERSION__/'"$VERSION"'/g' "$OUTDIR/custom.properties" |
109 | | -
|
110 | | - cp doc/_zoomin/$docset.apis.tags.yml "$OUTDIR/tags.yml" |
111 | | - sed -i 's/__VERSION__/'"$VERSION"'/g' "$OUTDIR/tags.yml" |
112 | | -
|
113 | | - # Patch links from Sphinx to other Doxygen APIs (combined) |
114 | | - find doc/_build/html/$docset -type f -name "*.html" -exec sed -ri "/href=\"([^\"]+)\/([a-z]+)\/doxygen\/html\/([^\"]+)\"/{s//href=\"\/bundle\/\1\/\2-apis-$VERSION\/page\/\3\"/g; :a s/__/_/g;ta; }" {} \; |
115 | | -
|
116 | | - for doxset in "${DOXYGEN[@]}"; do |
117 | | - # Patch links from Sphinx to other Doxygen APIs (standalone) |
118 | | - find doc/_build/html/$docset -type f -name "*.html" -exec sed -ri "/href=\"([^\"]+)\/$doxset\/html\/([^\"]+)\"/{s//href=\"\/bundle\/\1\/$doxset-apis-$VERSION\/page\/\2\"/g; :a s/__/_/g;ta; }" {} \; |
119 | | - done |
120 | | -
|
121 | | - # Patch links from Sphinx to same docset Doxygen APIs |
122 | | - find doc/_build/html/$docset -type f -name "*.html" -exec sed -ri "/href=\"([^\"]+)\/doxygen\/html\/([^\"]+)\"/{s//href=\"\/bundle\/$docset-apis-$VERSION\/page\/\2\"/g; :a s/__/_/g;ta; }" {} \; |
123 | | -
|
124 | | - pushd "$OUTDIR" |
125 | | - ARCHIVE="$docset-apis-$VERSION.zip" |
126 | | - zip -rq "$ARCHIVE" . |
127 | | - mv "$ARCHIVE" "$PUBLISH" |
128 | | - popd |
129 | | - done |
130 | | -
|
131 | | - for docset in "${DOXYGEN[@]}"; do |
132 | | - OUTDIR=doc/_build/html-doxygen/$docset-apis |
133 | | - mv doc/_build/html/$docset/html "$OUTDIR" |
134 | | -
|
135 | | - # Populate custom.properties, tags.yml |
136 | | - cp doc/_zoomin/$docset.apis.custom.properties "$OUTDIR/custom.properties" |
137 | | - sed -i 's/__VERSION__/'"$VERSION"'/g' "$OUTDIR/custom.properties" |
138 | | -
|
139 | | - cp doc/_zoomin/$docset.apis.tags.yml "$OUTDIR/tags.yml" |
140 | | - sed -i 's/__VERSION__/'"$VERSION"'/g' "$OUTDIR/tags.yml" |
141 | | -
|
142 | | - pushd "$OUTDIR" |
143 | | - ARCHIVE="$docset-apis-$VERSION.zip" |
144 | | - zip -rq "$ARCHIVE" . |
145 | | - mv "$ARCHIVE" "$PUBLISH" |
146 | | - popd |
147 | | - done |
148 | | -
|
149 | | - # nRF Bare Metal |
150 | | - OUTDIR=doc/_build/html |
151 | | -
|
152 | | - # Populate custom.properties, tags.yml |
153 | | - cp doc/_zoomin/nrf-bm.custom.properties "$OUTDIR/custom.properties" |
154 | | - sed -i 's/__VERSION__/'"$VERSION"'/g' "$OUTDIR/custom.properties" |
155 | | -
|
156 | | - cp doc/_zoomin/nrf-bm.tags.yml "$OUTDIR/tags.yml" |
157 | | - sed -i 's/__VERSION__/'"$VERSION"'/g' "$OUTDIR/tags.yml" |
158 | | -
|
159 | | - ARCHIVE="nrf-bm-$VERSION.zip" |
160 | | - pushd "$OUTDIR" |
161 | | - zip -rq "$ARCHIVE" . |
162 | | - mv "$ARCHIVE" "$PUBLISH" |
163 | | - popd |
164 | | -
|
165 | 87 | - name: Find nRF Connect SDK Bare Metal Edited Documents |
166 | 88 | working-directory: sdk-nrf-bm/nrf-bm |
167 | 89 | run: | |
|
0 commit comments