The Japanese version follows below. 日本語版は以下に続きます。
These are the publicly available source files for the Midokura AI Factory Documentation website, which is build in Docusaurus.
yarnyarn run startThis command starts a local development server and opens up a browser window at: http://localhost:3000/. Most changes are reflected live without having to restart the server.
Use Control + c to kill the localhost.
yarn run buildThis command generates static content into the build directory. This build directory is not used to build the website, but this step is provided here in case you want to build a local copy.
When you want to create a new version of the docs do:
yarn docusaurus docs:version v9.9where v9.9 should be replaced with the version you require.
This command will:
- Copy the full docs/ folder contents into a new
versioned_docs/version-v9.9/folder. - Create a versioned sidebars file
versioned_sidebars/version-v9.9-sidebars.json. - Add the new version number to
versions.json.
Once you merge your changes to main, the website will rebuild with the new version available in the navigation bar dropdown.
Each version of the docs requires a version release note, automatically generated based on this release notes template.
If we need to remove a no-longer-supported version of the docs from the website, remove the reference to the version in versions.json. Note that this doesn't delete the version source files, but just unpublishes them from the website.
- Any push to
mainresults in a build to the website.
Midokura AI Factory ドキュメントサイト(website)公開用ソースファイルです。本サイトは Docusaurus をベースに構築されます。
yarnyarn run startコマンドを実行すると、ローカル開発サーバーが起動し、ブラウザで http://localhost:3000/ が自動的に開きます。 変更の大半はサーバーを再起動することなく即時に反映されます。
ローカルサーバーを停止するには、Control + C を押してください。
yarn run buildコマンドを実行すると、build ディレクトリに静的コンテンツが生成されます。
ローカルでビルド結果を確認したい場合に使用してください。build ディレクトリは本番サイトの構築には使用されません。
新しいドキュメントバージョンを作成するには、以下を実行してください。
yarn docusaurus docs:version v9.9v9.9 の部分は、作成するバージョン番号に置き換えてください。
コマンドを実行すると、
- docs/ およびフォルダの内容が
versioned_docs/version-v9.9/にコピーされます。 - バージョン用のサイドバーファイル
versioned_sidebars/version-v9.9-sidebars.jsonが作成されます。 versions.jsonに新しいバージョン番号が追加されます。
変更を main ブランチにマージすると、サイトが再ビルドされ、ナビゲーションバーのドロップダウンに新しいバージョンが表示されます。
各ドキュメントバージョンには、リリースノートが必要です。リリースノートは、release notes template を基に作成されます。
サポート対象外となったバージョンをサイトから削除する場合は、versions.json から該当バージョンの情報を削除してください。
この操作を行ってもソースファイル自体は削除されません。
mainブランチに変更を push すると、サイトが自動的にビルドされます。