Skip to content

Commit

Permalink
Add support for docs in folders
Browse files Browse the repository at this point in the history
  • Loading branch information
Nateowami committed Dec 17, 2024
1 parent f461de5 commit 7e5ee99
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pull_docs.sh
Original file line number Diff line number Diff line change
Expand Up @@ -30,10 +30,10 @@ npm install
npx @sillsdev/docu-notion@latest -n "${SF_HELP_NOTION_TOKEN}" -r "${SF_HELP_NOTION_ROOT_PAGE_ID}" --image-file-name-format legacy

# Needed for the current version of docu-notion; this can be removed once it publishes a new release
sed -i 's/:::📝/:::note/g' docs/*.md
sed -i 's/:::📝/:::note/g' docs/**/*.md docs/*.md

# Add a div around the ReactPlayer component to make it responsive
sed -i -e '/<ReactPlayer/ s/^/<div class="player-wrapper">/' -e '/<ReactPlayer/ s/$/<\/div>/' docs/*.md
sed -i -e '/<ReactPlayer/ s/^/<div class="player-wrapper">/' -e '/<ReactPlayer/ s/$/<\/div>/' docs/**/*.md docs/*.md

if [[ "${skip_pulling_from_s3}" = true ]]; then
echo "Skipping pulling from S3."
Expand Down

0 comments on commit 7e5ee99

Please sign in to comment.