Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id C920C200B53 for ; Tue, 12 Jul 2016 21:21:51 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id C79B0160A56; Tue, 12 Jul 2016 19:21:51 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 1C142160A53 for ; Tue, 12 Jul 2016 21:21:50 +0200 (CEST) Received: (qmail 71501 invoked by uid 500); 12 Jul 2016 19:21:50 -0000 Mailing-List: contact dev-help@apex.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@apex.apache.org Delivered-To: mailing list dev@apex.apache.org Received: (qmail 71489 invoked by uid 99); 12 Jul 2016 19:21:50 -0000 Received: from git1-us-west.apache.org (HELO git1-us-west.apache.org) (140.211.11.23) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 12 Jul 2016 19:21:50 +0000 Received: by git1-us-west.apache.org (ASF Mail Server at git1-us-west.apache.org, from userid 33) id AE3A4DFF68; Tue, 12 Jul 2016 19:21:49 +0000 (UTC) From: tweise To: dev@apex.apache.org Reply-To: dev@apex.apache.org References: In-Reply-To: Subject: [GitHub] apex-site pull request #42: Added updating documentation to release process Content-Type: text/plain Message-Id: <20160712192149.AE3A4DFF68@git1-us-west.apache.org> Date: Tue, 12 Jul 2016 19:21:49 +0000 (UTC) archived-at: Tue, 12 Jul 2016 19:21:52 -0000 Github user tweise commented on a diff in the pull request: https://github.com/apache/apex-site/pull/42#discussion_r70504409 --- Diff: src/md/release.md --- @@ -150,6 +150,47 @@ mkdir svn-dist && cp *-source-* svn-dist/ svn import svn-dist https://dist.apache.org/repos/dist/dev/apex/${RNAME}-RC1 -m "Apache Apex v${rv}-RC1" ``` +## Build and Deploy Documentation + +The documentation will be generated as static HTML files and copied into the ```apex-site``` repository. It will be available at an alternate URL location until the release is promoted, at which time it will also be promoted to the main website location. + +Do the following setup setups before building and deploying the documentation. Clone the apex-site repository into a folder called ```apex-site``` at the same level as the current repository. Set the following environment variables + +For -core releases: + +``` +REPO_NAME=apex-core +DOC_NAME=apex +``` + +For -malhar releases: + +``` +REPO_NAME=apex-malhar +DOC_NAME=malhar +``` + +Execute the following commands to build and deploy the documentation. **Note**: Until [mkdocs #859](https://github.com/mkdocs/mkdocs/issues/859) is resolved and available for download, use mkdocs built against [master](https://github.com/mkdocs/mkdocs). + +```bash +# build docs, they would be generated in the site folder +mkdocs build --clean + +# copy docs from site into target folder on apex-site +cd ../apex-site +git checkout asf-site +rm -rf docs/${DOC_NAME}-${rv} --- End diff -- Documentation is always MAJOR.MINOR, so ${rv} is not correct here. --- If your project is set up for it, you can reply to this email and have your reply appear on GitHub as well. If your project does not have this feature enabled and wishes so, or if the feature is enabled but not working, please contact infrastructure at infrastructure@apache.org or file a JIRA ticket with INFRA. ---