Name: doc.nuxeo.com
Owner: Nuxeo
Description: Nuxeo documentation
Created: 2016-05-10 12:46:16.0
Updated: 2018-04-17 14:54:57.0
Pushed: 2018-05-17 15:32:32.0
Homepage: null
Size: 16816
Language: JavaScript
GitHub Committers
User | Most Recent Commit | # Commits |
---|
Other Committers
User | Most Recent Commit | # Commits |
---|
nvm install v6
will get the latest v6 versionnode --version
nvm use v6
at the start of your sessiondate
update
stall git and libsass
install git libsass
Clone the repository to your local machine, using your favorite Git client or the command line:
clone https://github.com/nuxeo/doc.nuxeo.com
oc.nuxeo.com
install
start
run server
run dev_server
Run a complete build so all pages are built.
start
To speed up the build you can comment out versions in config.yml
with #
. e.g.
repositories:
platform:
url: git@github.com:nuxeo/doc.nuxeo.com-content.git
branches:
- static
- master
# - '710'
# - '60'
# - '58'
710
, ,60
and 58
have been commented out so only the static content and FT platform spaces are built.
Then run the following to host and watch for client asset changes
run dev_assets
The browser defaults to chromium-browser
but can be changed with the following command and then locally as usual.
config set Nuxeo-documentation-content:browser firefox
As this module is used via npm, it's a good practice to bump the version when we make changes.
Node packages follow Semantic Versioning (SemVer), versions a described by a MAJOR.MINOR.PATCH
version.
Recompile the client assets
run compile
add assets lib
commit -m 'Client Assets: Recompiled'
After you've committed your code, run one of the following:
version major # incompatible API changes
version minor # add functionality in a backwards-compatible manner
version patch # backwards-compatible bug fixes
Then push the version commit and the tags:
push && git push --tags
./assets/...
Any files in this directory will be copied to ./site/assets
. See ./site/...
./client/...
Client side styles (SCSS) and JavaScript.
./docs/...
./layout/...
Templates and partials. See working with templates.
./modules/...
Nuxeo specific modules.
./site/...
Generated output of the site. This is what will be served in production.
./test/...
Unit tests for modules.
./verify/...
Verification tests for post asset and site building.
./build.js
The main build script for generating the output for site
.
./config.yml
Site configurations, ability to have production or development specific values.
site.new_version: '{version number to match}'
for NEW
tagsite.review_period: '{number} {days, months, years}'
site.review_release_date: {date - YYYY-MM-DD}
./package.json
Build processes are defined here. Should be relatively self explanatory but anything special will be explained here.
In the Content repository (doc.nuxeo.com-content):
Create branch (e.g. 910
):
doc.nuxeo.com-content
checkout master
pull
checkout -b 910
Configure new branch:
./config.yml
default > site > branch
default > site > dev_browser_path
default > site > versions
e.g.ch: '910'
browser_path: '910/nxdoc'
ions:
label: LTS 2017
url_path: '910'
is_current_version: true
Push new branch
push --set-upstream origin 910
In the Builder repository (doc.nuxeo.com):
git checkout -b add/remove-version-xx
e.g. adding 9.10 would be git checkout -b add-version-910
default > site > repositories > platform > branches
.master
to Go Live.Code is licensed under a GNU GPLv3 and content
is under a Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License.