Menu

How to edit the website

Carlos Ramisch

How to edit the website

The mwetoolkit website is hosted at the following address: http://mwetoolkit.sf.net

How to access the sourceforge web server

Sourceforge offers access through SFTP, SCP and rsync. Detailed instructions are available at Sourceforge documentation page. In order to manually update the website, you will need to transfer files to the server using a command similar to this:

sftp username,mwetoolkit@web.sf.net

However, we recommend using rsync instead, with the script toServer.sh available in the docs folder of the toolkit.

How to edit the pages

Always use/edit the SVN version of the website, available at docs/htdocs on the SVN. The website uses PHITE, that automatically builds the page for you. Whenever you want to create a new subpage, create a folder named MWE_My_New_Page (use underscore instead of space) and, inside this folder, create a file named body.inc with only the content of your page, i.e. no HTML header, title, etc. Simply start with <h2>Title of my page</h2> and phite will do the rest.

A step-by-step guide

In order to create a localhost view of the website, modify and upload a page, follow these instructions.

  1. First, assure that you have the current last version of the pages by running svn up at the mwetoolkit SVN root
  2. Open the page you want to edit, for instance :
    1. gedit docs/htdocs/MWE_010_Quick_Start/body.inc
  3. Edit the page (HTML) and save. If you want to create a new page, create a folder using the naming scheme described above and also save the file.
  4. Once you're ready, please test the page on your local computer (if you have Apache installed). Therefore, you can do the following:
    1. cd /var/www/html
    2. sudo ln -s full-path-to-mwetoolkit/docs/htdocs mwetoolkit
    3. Open your internet browser and type: http://localhost/mwetoolkit
  5. Once you're sure the page works well, commit and upload it:
    1. cd docs
    2. svn -m "Update website" commit
    3. ./toServer.sh <sourceforge-username>

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.