Skip to content

Commit

Permalink
Merge pull request #3310 from jspsych/docs-major-release-versioning
Browse files Browse the repository at this point in the history
Use major release version only for documentation
  • Loading branch information
jodeleeuw authored Jun 6, 2024
2 parents 474c1e1 + 46d0c9b commit 3908e51
Show file tree
Hide file tree
Showing 4 changed files with 475 additions and 264 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/publish-docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,16 +30,16 @@ jobs:
id: version
run: echo "version=$(node -p "require('./packages/jspsych/package.json').version")" >> "$GITHUB_ENV"

- name: Remove patch version
run: echo "version_major_minor=${{ env.version }}" | awk -F. '{print $1"."$2}' >> "$GITHUB_ENV"
- name: Select only major version
run: echo "version_major=${{ env.version }}" | awk -F. '{print "v"$1}' >> "$GITHUB_ENV"

- name: Config git
run: |
git config --global user.name docs-bot
git config --global user.email [email protected]
- name: Deploy docs
run: npm run docs:deploy ${{ env.version_major_minor }}
run: npm run docs:deploy ${{ env.version_major }}

- name: Switch to gh-pages branch
run: git checkout gh-pages
Expand Down
4 changes: 2 additions & 2 deletions mkdocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,8 @@ markdown_extensions:
- pymdownx.details
- pymdownx.snippets
- pymdownx.emoji:
emoji_index: !!python/name:materialx.emoji.twemoji
emoji_generator: !!python/name:materialx.emoji.to_svg
emoji_index: !!python/name:material.extensions.emoji.twemoji
emoji_generator: !!python/name:material.extensions.emoji.to_svg
repo_url: 'https://github.com/jspsych/jsPsych'
repo_name: 'jspsych/jspsych'
edit_uri: edit/main/docs
Expand Down
Loading

0 comments on commit 3908e51

Please sign in to comment.