This is the git repository of moztw.org web sites, including static pages. Feel free to fork, modify, and send pull request to us.
moztw.org website contains sections from the following different sub-domain-based repos, each repo is hosted as different virtualhosts and not relying on others. please fork and checkout as you need.
base - Server configurations and automatic scripts
www.moztw.org - Main MozTW website
forum.moztw.org - MozTW Forum
irclog.moztw.org - Log Archive for #mozilla-taiwan on irc.mozilla.org and #moztw on Telegram.
translate.moztw.org - Localization system related stuff
planet.moztw.org - A Planetplanet installation for MozTW Planet http://planet.moztw.org/
Demos:
browser-pairs - Foxmosa pairs game at moztw.org/foxmosa/game/pairs
star-pusher - Foxmosa Sokuban game at moztw.org/foxmosa/game/stars
moztw.org-demo - HTML5 demos located at moztw.org/demo
Deprecated:
wiki.moztw.org - Wiki which is not actively used
photos.moztw.org - Picture Gallery of MozTW prior to Firefox 1.5 times.
gfx.tw - Repo for http://gfx.tw, personal Firefox promotion and product page platform (readonly, will retire on August 2017)
- Report issues at Issue tracker
- Make a fork of this repo and clone to your working space (See steps in next section)
- Go to your cloned repository, create a new branch with meaningful name, e.g.
git checkout -b issue123-fix-something - Make changes, test, and commit. Be sure to mention the issue id in the commit message.
- File a pull request to moztw.pages.dev branch (or create a new branch if you need to collaborate with someone else). direct PRs to
gh-pagesbranch will be rejected. - Someone will review the request, you may ping [email protected] if there's no progress after a while.
- The content will go live at moztw.pages.dev once the PR is accepted, and will merged to gh-pages branch and go live at production site when ready.
You can do shallow clone to get this repo more quickly.
git clone https://github.com/moztw/www.moztw.org.git --depth 1
- Install nodejs and npm in your system.
- On Windows, you also need
Microsoft Visual C++ Redistributable Package. - On Ubuntu/Debian, you also need
nodejs-legacypackage.
- On Windows, you also need
- Run
npm installin repo directory. - Run
npm startin repo directory, the output will stay atWatching files. - Open
localhost:3000, modify html and browsersync will reload the preview page. - Run
npm run buildto build the static results before you commit to moztw.pages.dev branch.
- Please always use LF on line ending, and set 2/4 space characters as indent according to the original style of each files.
- Please take Mozilla Coding Style as reference.
- If your editor supports EditorConfig, install the plugin and it will take care the style config.