When the Codewind website is ready to go live for the latest release, push the codewind-docs repository content to the repo, https://git.eclipse.org/c/www.eclipse.org/codewind.git/, where Eclipse hosts the Codewind website.
The publishing schedule corresponds to the Codewind release schedule. However, updates to the documentation can be added between releases if necessary.
- Open an issue to prepare the documentation for the upcoming release.
- Build the
codewind-docsrepository for local testing.- In your Terminal, go to the
codewind-docsrepo and enter thegit clone git@github.com:eclipse/codewind-docs.gitcommand. - To ensure that you have the latest content from the
masterbranch, don't clone your fork. Instead, entergit fetch upstream. - Then, create a new branch based on
masterwith thegit checkout -b <branchname> upstream/mastercommand. - From the
codewind-docsrepository, enter./build.sh. This script checks for internal broken links and displays errors if any exist. - If you find broken links, create a new pull request and fix them.
- Merge the pull request and then run the
./build.shscript again.
- Note: You can find the generated files from the
./build.shscript indocs/_site. Don't run these files by calling theindex.html. The site behaves properly only when it uses thelocalhostURL. Certain reference issues can be resolved only bylocalhostor when the files are published to the website.
- In your Terminal, go to the
- Test.
- Run
./serve.sh, and a URL is displayed:Server address: http://0.0.0.0:4321/codewind/. - Copy the server address URL into your browser to test that the website and its latest changes look good.
- After you look at the website, press
ctrl + cto stop the server. You need to stop the server to restart it again.- If the port is still in use, and you can't access the server, restart your computer.
- If you restart your computer, and you still can't access the server, you can editthe
./serve.shfile on your local machine and change all three port numbers to any free port, for example4322.
- Push the changes to the live site.
- If you have not yet cloned the live site repository, clone it with
git clone git://git.eclipse.org/gitroot/www.eclipse.org/codewind.git. - To ensure that you have the latest content from the masterbranch, don't clone your fork. - If you have already cloned this repository, entergit pullinstead ofgit clone. - Commit directly into the live site
masterbranch to see your changes go live. You do not need to create branches, pull requests, or forks because thecodewind-docsrepository contains the versioned changes. - Replace the contents of this cloned repository with the files from
codewind-docsin thedocs/_site/directory. Delete all the files except for the hidden folders because they containgit config. - To prevent confusion with the GitHubcodewindrepo folder on your machine,https://github.com/eclipse/codewind, and the live sitecodewindrepo,git://git.eclipse.org/gitroot/www.eclipse.org/codewind.git), create a new folder namedcodewindwebin a folder other than the one in which the GitHubcodewindrepo,https://github.com/eclipse/codewind, is located. - Commit and push.
- To view the files that you edited locally, enter
git status. - To add the files to be committed, entergit add <file path>/<name of file>. - To commit the files, entergit commit -m "<information about changes>" -s. - Verify your files on the public Codewind website.
1. Wait approximately fifteen to thirty minutes for the changes to go live.
- Note: Updates might not appear at the same time for all users and on all devices. For example, if you see the updated site, but a coworker does not, or if you see the updated site on your computer but not your phone, keep waiting until the updates appear. 2. Go to a new browser window or open a private browser window to check to see if website images are broken, ensure that doc changes are present, that the layout looks good, and the like.
- For a major release, create a new branch in the
codewind-docsrepo after you push your changes tomaster. This new branch becomes a snapshot of what is included in the release.
- Run