diff options
author | Stephane Desneux <stephane.desneux@iot.bzh> | 2016-11-11 00:11:55 +0100 |
---|---|---|
committer | Stephane Desneux <stephane.desneux@iot.bzh> | 2016-11-11 01:39:48 +0100 |
commit | 0eb44e21385b12085c79ef9a2378f08a778a9674 (patch) | |
tree | dc9e661c98f651796aa51eade9983b4607cfd896 | |
parent | 4d10e701d92e6e2288690051c0bf45707d546263 (diff) |
webdocs-agl: add contribute guidelines
Change-Id: I4609bd3191a7ffeb8c7b8e81234743c85910a975
Signed-off-by: Stephane Desneux <stephane.desneux@iot.bzh>
-rw-r--r-- | conf/_config.yml | 13 | ||||
-rw-r--r-- | site/_data/contribute-repo-links.yml | 57 | ||||
-rw-r--r-- | site/_data/mailing-lists.yml | 8 | ||||
-rw-r--r-- | site/contribute/contribute_guidelines.md | 75 | ||||
-rw-r--r-- | site/contribute/index.html | 12 | ||||
-rw-r--r-- | site/contribute/issues.md | 38 | ||||
-rw-r--r-- | site/static/styles/scss/_contribute.scss | 5 |
7 files changed, 83 insertions, 125 deletions
diff --git a/conf/_config.yml b/conf/_config.yml index 86db312..f4c225e 100644 --- a/conf/_config.yml +++ b/conf/_config.yml @@ -5,7 +5,7 @@ # ======= # Site settings # ======= -title_prefix: "AGL Documentation - " +title_prefix: "AGL Developer Site - " title: " " title_suffix: " -" url: "http://docs.automotivelinux.org" # the base hostname & protocol @@ -98,12 +98,15 @@ twitter: hashtag: autogradelinux widgetid: 629424968011386884 -slack: - host: https://agl.slack.com +irc: + host: https://webchat.freenode.net/ + channel: "#automotive" linkto: - jira_specs : https://jira.automotivelinux.org/browse/TEST-10?jql= - jira_users : https://jira.automotivelinux.org/browse/SPEC/?selectedTab=com.atlassian.jira.jira-projects-plugin:summary-panel + account : https://identity.linuxfoundation.org/ + jira_base : https://jira.automotivelinux.org/ + jira_project: https://jira.automotivelinux.org/browse/SPEC/?selectedTab=com.atlassian.jira.jira-projects-plugin:summary-panel + jira_issues : https://jira.automotivelinux.org/issues/?jql=project%3DSPEC code_contrib: https://git.automotivelinux.org/gerrit/#/q/status:open mail_lists : https://lists.linuxfoundation.org/mailman/listinfo/automotive-discussions diff --git a/site/_data/contribute-repo-links.yml b/site/_data/contribute-repo-links.yml index dbc9496..6dba2cf 100644 --- a/site/_data/contribute-repo-links.yml +++ b/site/_data/contribute-repo-links.yml @@ -1,53 +1,72 @@ - title: AGL-Core projects: - - project: Meta-AGL + - project: meta-agl gerrit: https://gerrit.automotivelinux.org/gerrit/#/admin/projects/AGL/meta-agl - - - project: AGL-JTA-Code - gerrit: https://gerrit.automotivelinux.org/gerrit/#/admin/projects/AGL-JTA-core + - project: meta-agl-extra + gerrit: https://gerrit.automotivelinux.org/gerrit/#/admin/projects/AGL/meta-agl-extra + - project: meta-agl-devel + gerrit: https://gerrit.automotivelinux.org/gerrit/#/admin/projects/AGL/meta-agl-devel + - project: AGL-repo + gerrit: https://gerrit.automotivelinux.org/gerrit/#/admin/projects/AGL/AGL-repo + - project: Docs AGL + mirror: https://github.com/automotive-grade-linux/docs-agl - title: AGL-Extra projects: - project: Application Framework gerrit: https://gerrit.automotivelinux.org/gerrit/#/admin/projects/src/app-framework-main - mirror: https://github.com/iotbzh/afb-main - project: Application Binder gerrit: https://gerrit.automotivelinux.org/gerrit/#/admin/projects/src/app-framework-binder - mirror: https://github.com/iotbzh/afb-daemon - - project: Most Driver + - project: AGL Applications Templates + mirror: https://github.com/iotbzh/app-framework-templates + + - project: GPS Binding + mirror: https://github.com/iotbzh/af-gps-binding + + - project: Application Framework Widgets Examples + mirror: https://github.com/iotbzh/afm-widget-examples + + - project: MOST Driver gerrit: https://gerrit.automotivelinux.org/gerrit/#/admin/projects/src/most - project: Can/Lin Driver gerrit: https://gerrit.automotivelinux.org/gerrit/#/admin/projects/src/can-lin + - project: HVAC Driver + gerrit: https://gerrit.automotivelinux.org/gerrit/#/admin/projects/src/hvacplugin + -- title: AGL-Staging +- title: AGL-Devel projects: - - project: AudioManagerPlugin + - project: Audio Manager Plugin gerrit: https://gerrit.automotivelinux.org/gerrit/#/admin/projects/staging/AudioManagerPlugins - - project: Most-Can-Plugin + - project: MOST-CAN-Demo gerrit: https://gerrit.automotivelinux.org/gerrit/#/admin/projects/staging/most-can-demo-bin - - project: QT-HomeScreen + - project: HomeScreen gerrit: https://gerrit.automotivelinux.org/gerrit/#/admin/projects/staging/HomeScreen - - project: Meta-IOT-AGL - gerrit: https://gerrit.automotivelinux.org/gerrit/#/admin/projects/staging/meta-iot-agl - - - project: Qt-Wayland - gerrit: https://gerrit.automotivelinux.org/gerrit/#/admin/projects/staging/qtwayland - - project: Wayland-IVI-Extension gerrit: https://gerrit.automotivelinux.org/gerrit/#/admin/projects/staging/wayland-ivi-extension + - project: meta-iot-agl + gerrit: https://gerrit.automotivelinux.org/gerrit/#/admin/projects/staging/meta-iot-agl + - title: AGL-Demos/POCs projects: - - project: CES2016 - gerrit: https://gerrit.automotivelinux.org/gerrit/#/admin/projects/AGL/DemoApps/CES2016 + - project: CES2017 + gerrit: https://gerrit.automotivelinux.org/gerrit/#/admin/projects/AGL/DemoApps/CES2017 + - project: OpenXC Demo + mirror: https://github.com/iotbzh/txc-demo + - project: ALS2016 gerrit: https://gerrit.automotivelinux.org/gerrit/#/admin/projects/AGL/DemoApps/ALS2016 + + - project: CES2016 + gerrit: https://gerrit.automotivelinux.org/gerrit/#/admin/projects/AGL/DemoApps/CES2016 + diff --git a/site/_data/mailing-lists.yml b/site/_data/mailing-lists.yml index 5f2f36f..94cf589 100644 --- a/site/_data/mailing-lists.yml +++ b/site/_data/mailing-lists.yml @@ -1,13 +1,13 @@ - title: Dev Mailing List links: - label: Writing to the list - text: automotive-discussions@lists.linuxfoundation.org. - href: mailto:automotive-discussions@lists.linuxfoundation.org. + text: automotive-discussions@lists.linuxfoundation.org + href: mailto:automotive-discussions@lists.linuxfoundation.org - label: Browse online text: Dev Mailing List Archive - href: http://callback.markmail.org/search/?q=#query:%20list%3Aorg.apache.incubator.callback-dev+page:1+state:facets + href: https://lists.linuxfoundation.org/pipermail/automotive-discussions/ description: > The Dev mailing list is a place for discussion about developing AGL. - <br/>If you are ab AGK user looking for help, use the <a href="http://stackoverflow.com/questions/tagged/agl">AGL tag on Stack Overflow</a>. + <br/>If you are AGL user looking for help, use the <a href="http://stackoverflow.com/questions/tagged/agl">AGL tag on Stack Overflow</a>. diff --git a/site/contribute/contribute_guidelines.md b/site/contribute/contribute_guidelines.md index eef36a1..b43745e 100644 --- a/site/contribute/contribute_guidelines.md +++ b/site/contribute/contribute_guidelines.md @@ -1,88 +1,43 @@ --- layout: contribute -title: Apache Cordova Contribute Guidelines +title: AGL Contribution Guidelines --- # Contributor Guidelines -Thanks for helping to improve Cordova! This page provides a general guide on making contributions to Cordova. If you can't find something on this page, please feel free to contact the [dev mailing list](http://cordova.apache.org/contact) or ask questions on the Cordova Slack. +Thanks for helping to improve AGL ! This page provides a general guide on making contributions to AGL. If you can't find something on this page, please feel free to contact the [mailing list]({{ site.linkto.mail_lists }}). ## Prerequisites -Before contributing to Apache Cordova, please complete the following steps: +Before contributing to AGL, please complete the following steps: -1. Sign the [Individual Contributor License Agreement (ICLA)](http://www.apache.org/licenses/#clas) and [submit it to the ASF](http://www.apache.org/licenses/#submitting). - * You should receive an email confirming you submission within a day or so and your name will appear in the [list of contributors](https://people.apache.org/unlistedclas.html) - * If you are submitting on behalf of a company, you may need to submit a CCLA as well -2. Join the [mailing list](http://cordova.apache.org/contact/) and send a brief introduction of yourself -3. Create an [Apache JIRA](https://issues.apache.org/jira/secure/Signup!default.jspa) account +1. Create an account on [identity.linuxfoundation.org]({{ site.linkto.account }}) to get started. +2. Join the [mailing list]({{ site.linkto.mail_lists }}). +3. Setup your Gerrit account, as described in [the Gerrit Tutorial from mediawiki](https://www.mediawiki.org/wiki/Gerrit/Tutorial) ## Working with JIRA -Issues for Apache Cordova are hosted in the Apache JIRA. All code contributions made to Cordova should have a corresponding JIRA issue. When reporting issues, please follow [these guidelines](./issues.html). +Issues for AGL are hosted in the [AGL JIRA server]({{ site.linkto.jira_base }}). When reporting issues, please follow [these guidelines](./issues.html). #### Claiming Issues -If you find a JIRA issue that you would like to work on, you can ask to claim it; please leave a comment indicating your intention and a committer will assign it to you. Some issues in JIRA are auto-assigned to certain contributors. If it is clear that an issue is not being worked on, feel free to work on it yourself (but please comment first to let the asignee know). If you are looking for a place to start, try searching the [issues labelled easyfix](https://issues.apache.org/jira/issues?jql=project%20%3D%20CB%20AND%20resolution%20%3D%20Unresolved%20AND%20labels%20%3D%20%22easyfix%22%20ORDER%20BY%20createdDate%20DESC). - +If you find a JIRA issue that you would like to work on, you can ask to claim it; please leave a comment indicating your intention and a committer will assign it to you. Some issues in JIRA are auto-assigned to certain contributors. If it is clear that an issue is not being worked on, feel free to work on it yourself (but please comment first to let the asignee know). ## Submitting Code -For all submitted code, there must be a corresponding issue in JIRA. If there isn't an existing issue, please create one. You can submit code using one of the following methods: - -* Submit a pull request at one of the Apache Github mirrors at `github.com/apache/<repo name>` (**Strongly Preferred**) -* Upload patches created with `git format-patch` to the JIRA issue -* Paste a diff to JIRA (you won't get authorship if you do this) - -#### Making Pull requests - -The workflow for creating pull requests on Github generally follows these steps: - -1. [Open a JIRA issue](./issues.html) if one has not already been created -2. [Create a local fork](https://help.github.com/articles/fork-a-repo/) of the appropriate Apache repository -3. In your local fork, create a branch dedicated to the JIRA issue you are working on -4. Push your commits to this branch -5. [Squash](http://www.git-scm.com/book/en/v2/Git-Tools-Rewriting-History#Squashing-Commits) these commits into one single commit (see the section below regarding commit messages) -6. [Create a pull request](https://help.github.com/articles/using-pull-requests/) on the Apache repository -7. Ask for code review - -Please include the JIRA id in the title of any pull requests made to Github. The Apache Git bot will link the PR and the JIRA issue automatically. For more help on Git, see the [Git documentation](http://git-scm.com/doc) - -#### Code review - -However you submit code, you should always call out a reviewer to look at and merge your code. A good place to find a reviewer is [the component list](https://issues.apache.org/jira/browse/CB/?selectedTab=com.atlassian.jira.jira-projects-plugin:components-panel) or you can send a mail out to the [dev mailing list](http://cordova.apache.org/contact) with a link to the pull request. +TODO: copy article details from [WIKI](https://wiki.automotivelinux.org/agl-distro/contributing) -## Testing your code - -You are responsible for testing your changes and correcting any problems before submitting a pull request. Testing includes both verifying the functionality added/touched, and running the test suites to verify there are no regressions. - -When we say "run the test suites" this includes: -* All automated tests in cordova-mobilespec -* Manual tests in cordova-mobilespec that might be affected by the change -* `npm test` for JS linting -* Any platform-specific unit tests - * `cordova-android/test` - * `cordova-ios/CordovaLibTests` - * `cordova-js: jake test` - * `cordova-plugman: npm test` - -Please add a comment in Jira about what testing you did with your change so a committer can understand what testing was done before they merge it in. +## Git Commit Messages -#### Adding tests +You are highly encouraged to describe your git commit with enough detail for someone else to understand it. In doing so, your commit message can consist of multiple lines. However, it also is highly encouraged that the first line of your commit message not exceed 50 characters. This is because some of the tooling that sits on top of git (such as the httpd apps that let you browse the repos) assumes that the first line is top-level summary that is 50 characters or less. Thus there will be highlighting and truncating of the commit message using these assumptions and it will look weird if these assumptions are not kept. There should also be a blank line between the summary and any further description. -If possible, please include tests that validate your changes and catch any future regressions. Most repositories have a `tests/` directory that includes the tests for that component. +If the commit is related to a JIRA issue, you can specify 'Bug-AGL: ' followed by the issue number. -## Git Commit Messages +For example, here is a good commit message: -When contributing, please have your commit messages begin with the JIRA id and relevant platform (if appropriate) followed by a description of the commit. Here are two examples: -``` -CB-2345 android: Improved exec bridge by using strings instead of JSON -CB-3456 all: Fixed plugin loading paths that start with / ``` +Fixed the whizbang widget -You are highly encouraged to describe your git commit with enough detail for someone else to understand it. In doing so, your commit message can consist of multiple lines. However, it also is highly encouraged that the first line of your commit message not exceed 50 characters. This is because some of the tooling that sits on top of git (such as the httpd apps that let you browse the repos) assumes that the first line is top-level summary that is 50 characters or less. Thus there will be highlighting and truncating of the commit message using these assumptions and it will look weird if these assumptions are not kept. There should also be a blank line between the summary and any further description. For example, here is a good commit message: - -``` -CB-1234 Fixed the whizbang widget +Bug-AGL: SPEC-0000 - added more sanity checking in the build script. - fixed the API to return the correct value in the scenario where there diff --git a/site/contribute/index.html b/site/contribute/index.html index 5d81b1f..844f757 100644 --- a/site/contribute/index.html +++ b/site/contribute/index.html @@ -3,9 +3,6 @@ layout: contribute title: Contribute --- -<!-- REMOVE THIS LINK BEFORE PUBLISHING. This is just for IntelliSense while coding --> -<!-- <link rel="stylesheet" type="text/css" href="static/css/lib/bootstrap.css"/> --> - <!-- Main jumbotron for a primary marketing message or call to action --> <div class="row"> <div class="col-sm-12 text-center"> @@ -20,8 +17,7 @@ title: Contribute <li>File a <a href="./issues.html">bug or task</a></li> <li>Read the <a href="./contribute_guidelines.html">Contributor Guidelines</a></li> <li>Join the <a href="{{ site.linkto.mail_lists }}">Dev mailing list</a> and send a brief introduction of yourself to it</li> - <li>Join the discussion on <a href="{{ site.slack.host }}">Slack</a></li> - <li>Sign the <a href="http://www.apache.org/licenses/#clas">Individual Contributor License Agreement (ICLA)</a> and <a href="mailto:secretary@agl.org">submit it</a></li> + <li>Join the discussion on IRC, <a href="{{ site.irc.host }}">channel {{ site.irc.channel }}</a></li> </ul> </div> <div class="col-sm-5"> @@ -35,11 +31,11 @@ title: Contribute <ul class="nav issue-links"> <li> <span class="glyphicon glyphicon-warning-sign"></span><i> </i> - <a href="{{ site.linkto.jira_specs }}">View All Issues</a> + <a href="{{ site.linkto.jira_issues }}">View All Issues</a> </li> <li> <span class="glyphicon glyphicon-user"></span><i> </i> - See all <a href="{{ site.linkto.jira_users }}">Committers</a> / <a href="{{ site.linkto.code_contrib }}">Contributors</a> + See <a href="{{ site.linkto.jira_project }}">Summary</a> / <a href="{{ site.linkto.code_contrib }}">Contributors</a> </li> </ul> </div> @@ -71,7 +67,9 @@ title: Contribute {% endif %} </div> <div class="link-box"> + {% if project.gerrit %} <a class="link-agl" target="_blank" href="{{ project.gerrit }}"></a> + {% endif %} </div> </div> </div> diff --git a/site/contribute/issues.md b/site/contribute/issues.md index 6edebaf..5bf0fe9 100644 --- a/site/contribute/issues.md +++ b/site/contribute/issues.md @@ -1,55 +1,37 @@ --- layout: contribute -title: Apache Cordova Reporting Issues +title: AGL Reporting Issues --- # Reporting Issues -Thank you for helping to improve Cordova! Issues for Apache Cordova are hosted at the Apache [JIRA](https://issues.apache.org/jira/browse/CB). A JIRA account is required before you can submit issues (you can easily [create one here](https://issues.apache.org/jira/secure/Signup!default.jspa)). Before submitting an issue, please take a moment to search JIRA to see if an issue already exists. If it does, please consider commenting or voting for the issue to help raise its visibility. +Thank you for helping to improve AGL! Issues for AGL are hosted on the [AGL JIRA]({{ site.linkto.jira_base }}). A Linux Foundation account is required before you can submit issues (you can easily [create one here]({{ site.linkto.account }})). Before submitting an issue, please take a moment to search JIRA to see if an issue already exists. If it does, please consider commenting or voting for the issue to help raise its visibility. ## Creating an issue in JIRA -Once you have created an account and logged in, click the blue "Create" button at the top of the [Cordova JIRA](https://issues.apache.org/jira/browse/CB) page to create an issue. In the dialog that appears, please fill out the following fields _to the best of your ability_. All fields besides those listed here can be left blank. +Once you have created an account and logged in, click the blue "Create" button at the top of the [AGL JIRA]({{ site.linkto.jira_project }}) page to create an issue. In the dialog that appears, please fill out the following fields _to the best of your ability_. All fields besides those listed here can be left blank. Field | Description ----------------| ----- -Project | Make sure that Apache Cordova is selected +Project | Make sure that 'AGL Development' is selected Issue Type | Whether or not this is a bug or feature request Summary | A one line description of the issue -Component | The [part of Cordova](https://issues.apache.org/jira/browse/CB/?selectedTab=com.atlassian.jira.jira-projects-plugin:components-panel) this issue pertains to. Please select only one component if possible (e.g. if you find a bug while using cordova-plugin-camera in Android, select the "Plugin Camera" component and not "Android") -Affects Version | The version of the component that this issue pertains to -Environment | Some extra context about the environment in which a bug was found (e.g. the version of Android you are running, your version of the Cordova CLI, your development platform, etc.) -Description | A thorough description of the issue. For bugs, please provide code (using github) or steps for reproduction as well as any device logs or stack traces you might have. -Labels | Please label your issue with the platforms it affects (e.g. ios, windows, android, etc.) and nothing else +Component | The [part of AGL]({{ site.linkto.jira_base }}browse/SPEC/?selectedTab=com.atlassian.jira.jira-projects-plugin:components-panel) this issue pertains to. Please select only one component if possible. +Affects Version | The version of the component that this issue pertains to (Blowfish, Chinook, Dab ...) +Environment | Some extra context about the environment in which a bug was found (e.g. your development platform, the target machine etc.) +Description | A thorough description of the issue. For bugs, please provide steps for reproduction as well as any logs or stack traces you might have. Priority | The impact of the issue (see below) ## Issue Priority We gauge issue priority on the following scale: + * **Minor/Trivial:** The feature or bug is very specific or only affects a few people * **Major:** The feature or bug is important and impacts many people -* **Critical:** Bugs (not features) that block the main function of a component and affect a large number of people (e.g. the camera plugin can't take pictures in iOS version x.x) +* **Critical:** Bugs (not features) that block the main function of a component and affect a large number of people * **Blocker:** Catastrophic bugs that prevent projects from building or cause basic projects to crash immediately. It is very unlikely that a bug is a Blocker If you aren't sure about the priority, leave the default (major) selected. Please be aware that as our contributors triage issues, they may change the priority based on our criteria. -## Finding out versions - -You can quickly find out versions of platforms/plugins you're using by running: - - cordova platform ls - -or - - cordova plugin ls - -in your project respectively. You can find out the version of the Cordova CLI you're using by running: - - cordova --version - -# Generating CLI logs - -You can use `--verbose` flag to generate detailed logs for cordova build-time bugs related with the CLI. This helps significantly in debugging. - diff --git a/site/static/styles/scss/_contribute.scss b/site/static/styles/scss/_contribute.scss index 6083773..294f212 100644 --- a/site/static/styles/scss/_contribute.scss +++ b/site/static/styles/scss/_contribute.scss @@ -77,6 +77,7 @@ a.link-github { background-position: 3px -127px; + background-color: #9b4ce4; } .project-label { @@ -84,7 +85,7 @@ } } - @media (min-width: $screen-sm-min) { +/* @media (min-width: $screen-sm-min) { li.first { a.link-agl { width: 115px; @@ -103,7 +104,7 @@ } } } - +*/ @media (max-width: $screen-xs-max) { li { a { |