Skip to content

Commit

Permalink
Merge pull request #126 from ma10/clarify-current-version-20231010
Browse files Browse the repository at this point in the history
developブランチからcurrent版を生成する際に、リリース版ではないことが明確になるようなバージョン表示をする
  • Loading branch information
ma10 authored Oct 10, 2023
2 parents 4dea273 + 4064f79 commit df0eab4
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ jobs:
GTM_ID: ${{ secrets.GTM_ID }}
BASE_URL: https://a11y-guidelines.freee.co.jp/current/
run: |
make SPHINXOPTS="-A gtm_id=${GTM_ID} -D html_baseurl=${BASE_URL}" clean html
make SPHINXOPTS="-A gtm_id=${GTM_ID} -D html_baseurl=${BASE_URL} -t current" clean html
cp -r ./data/json/schemas ./build/html
cp -r ./build/html/* ${GITHUB_WORKSPACE}/upload/current/
Expand Down
8 changes: 8 additions & 0 deletions source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,14 @@
version = 'Ver. 202310.0'
release = version
publishedDate = u'2023年10月3日'

if 'current' in tags:
import datetime
today_numeric = datetime.date.today().strftime('%Y%m%d')
today_str = datetime.date.today().strftime('%Y年%-m月%-d日')
release = F'{version}+{today_numeric}(最新開発版)'
publishedDate = today_str

copyright = '2020-{pubYear}, freee株式会社'.format(
pubYear = re.search(r'^(\d{4})年', publishedDate).group(1)
)
Expand Down

0 comments on commit df0eab4

Please sign in to comment.