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-docs
repository for local testing.- In your Terminal, go to the
codewind-docs
repo and enter thegit clone [email protected]:eclipse/codewind-docs.git
command. - To ensure that you have the latest content from the
master
branch, don't clone your fork. Instead, entergit fetch upstream
. - Then, create a new branch based on
master
with thegit checkout -b <branchname> upstream/master
command. - From the
codewind-docs
repository, 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.sh
script again.
- Note: You can find the generated files from the
./build.sh
script indocs/_site
. Don't run these files by calling theindex.html
. The site behaves properly only when it uses thelocalhost
URL. Certain reference issues can be resolved only bylocalhost
or 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 + c
to 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.sh
file 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 pull
instead ofgit clone
. - Commit directly into the live site
master
branch to see your changes go live. You do not need to create branches, pull requests, or forks because thecodewind-docs
repository contains the versioned changes. - Replace the contents of this cloned repository with the files from
codewind-docs
in thedocs/_site/
directory. Delete all the files except for the hidden folders because they containgit config
. - To prevent confusion with the GitHubcodewind
repo folder on your machine,https://github.com/eclipse/codewind
, and the live sitecodewind
repo,git://git.eclipse.org/gitroot/www.eclipse.org/codewind.git)
, create a new folder namedcodewindweb
in a folder other than the one in which the GitHubcodewind
repo,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-docs
repo after you push your changes tomaster
. This new branch becomes a snapshot of what is included in the release.
- Run