From nobody Thu May 16 08:09:22 2024 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of groups.io designates 66.175.222.108 as permitted sender) client-ip=66.175.222.108; envelope-from=bounce+27952+67509+1787277+3901457@groups.io; helo=mail02.groups.io; Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of groups.io designates 66.175.222.108 as permitted sender) smtp.mailfrom=bounce+27952+67509+1787277+3901457@groups.io; dmarc=fail(p=none dis=none) header.from=intel.com ARC-Seal: i=1; a=rsa-sha256; t=1605246840; cv=none; d=zohomail.com; s=zohoarc; b=VaSRo0kAYJJLdMUq2WCJ3tquV/H8lxT7QSTrs5OfuCK74v/fWwGbd3/9f7B2G3HXPJvG81/lWFRI5Fto3ufZHPKUBBs0xOmydkdYLv1LauBUHLUrxS3KZ7oXZxI1ReaAVzbPp+65gD/iLyvb3/xbHns+tkpvrfD+dAh9xv6Vkb4= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1605246840; h=Content-Transfer-Encoding:Date:From:List-Id:List-Unsubscribe:MIME-Version:Message-ID:Reply-To:Sender:Subject:To; bh=GKQdv22YSf8tEKHNbZJaNJxO96154yJxwjar53u5vhA=; b=JKA0023KFGGL+r2ZoL6y5UJtg1sUG9rD+TlUoSfvIpojKm8DuBsC9Bt/DeYRlnqsl0nj2M+NjEUaTP/x1pAfxvLMq2dbwndAda03sXS5NQYj0T2/7WZ0q3GeYWF+Q9EauUgJH96bXZWVvPSCVmSCfcXiMQYCCEC9rtUTsJPbQNE= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of groups.io designates 66.175.222.108 as permitted sender) smtp.mailfrom=bounce+27952+67509+1787277+3901457@groups.io; dmarc=fail header.from= (p=none dis=none) header.from= Received: from mail02.groups.io (mail02.groups.io [66.175.222.108]) by mx.zohomail.com with SMTPS id 1605246840030379.41142385120713; Thu, 12 Nov 2020 21:54:00 -0800 (PST) Return-Path: X-Received: by 127.0.0.2 with SMTP id wchqYY1788612x8zBRCVH1iT; Thu, 12 Nov 2020 21:53:59 -0800 X-Received: from mga03.intel.com (mga03.intel.com [134.134.136.65]) by mx.groups.io with SMTP id smtpd.web10.587.1605246839137329662 for ; Thu, 12 Nov 2020 21:53:59 -0800 IronPort-SDR: yGMJ4fe/sUsPFG3QmPh4nqerJW5UI8xjL2STrrsIj31BJ8uZgsh88hG7BjGMWIObpLZQ9R4sHT IRCZBN37TZIQ== X-IronPort-AV: E=McAfee;i="6000,8403,9803"; a="170537107" X-IronPort-AV: E=Sophos;i="5.77,474,1596524400"; d="scan'208";a="170537107" X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False X-Received: from orsmga008.jf.intel.com ([10.7.209.65]) by orsmga103.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 12 Nov 2020 21:53:50 -0800 IronPort-SDR: 1Yua1Uc54YNi4Y17q0nHAawJuzKc+2ZcsQGDcFRVGVyiqYLrGzFqXJZaeHqx//+G2WteqBwUMV C9bK3CDrAEIw== X-IronPort-AV: E=Sophos;i="5.77,474,1596524400"; d="scan'208";a="355450151" X-Received: from mdkinney-mobl2.amr.corp.intel.com ([10.212.84.140]) by orsmga008-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 12 Nov 2020 21:53:50 -0800 From: "Michael D Kinney" To: devel@edk2.groups.io Subject: [edk2-devel] [EDKIIHttpBootGettingStartedGuide/master][Patch v2] Add Gitbook Action to publish HTML, PDF, EPUB, and MOBI Date: Thu, 12 Nov 2020 21:53:47 -0800 Message-Id: <20201113055347.1472-1-michael.d.kinney@intel.com> MIME-Version: 1.0 Precedence: Bulk List-Unsubscribe: Sender: devel@edk2.groups.io List-Id: Mailing-List: list devel@edk2.groups.io; contact devel+owner@edk2.groups.io Reply-To: devel@edk2.groups.io,michael.d.kinney@intel.com X-Gm-Message-State: dwklwxEX4KvxhNolrbFAhtlQx1787277AA= Content-Transfer-Encoding: quoted-printable DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=groups.io; q=dns/txt; s=20140610; t=1605246839; bh=4NWc3vqaNGLi2gmDNtg1549T+Us87ohAtAD0fIIloAs=; h=Date:From:Reply-To:Subject:To; b=ZZoWpfjSSVn5cFkMABwQzSmYF3i9kKYtoIcKsyWTO2nByRlOXPg3OydxmXAKY5P69KF LtbqFkevisny8IyQWJ/lpo01iAmnHbJvAkWJvlQoawTcYYgovBDcfcLen8OlwU7EeUMdY lpNjTv7FHQa4HeGL97kfXa9Z5blgJWtjVak= X-ZohoMail-DKIM: pass (identity @groups.io) Content-Type: text/plain; charset="utf-8" Add Gitbook Action to publish this document in the gh-pages branch of the same repository in HTML, PDF, EPUB, and MOBI formats. The draft and release versions of the documents are published in different directories of the gh-pages branch so all published versions are available for download and online viewing. Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Michael D Kinney Acked-by: Laszlo Ersek --- .bookignore | 3 +++ .github/workflows/gitbook-action.yml | 39 ++++++++++++++++++++++++++++ .gitignore | 16 ++++++++++++ book.json | 3 +-- styles/epub.css | 8 ++++++ styles/mobi.css | 8 ++++++ styles/pdf.css | 8 ++++++ styles/website.css | 8 ++++++ 8 files changed, 91 insertions(+), 2 deletions(-) create mode 100644 .bookignore create mode 100644 .github/workflows/gitbook-action.yml create mode 100644 .gitignore diff --git a/.bookignore b/.bookignore new file mode 100644 index 0000000..ed716f0 --- /dev/null +++ b/.bookignore @@ -0,0 +1,3 @@ +/.github +.gitignore +.bookignore diff --git a/.github/workflows/gitbook-action.yml b/.github/workflows/gitbo= ok-action.yml new file mode 100644 index 0000000..917b0d7 --- /dev/null +++ b/.github/workflows/gitbook-action.yml @@ -0,0 +1,39 @@ +name: 'Gitbook Action Build' +on: + push: + branches: + - master + - release/* + workflow_dispatch: + +jobs: + build: + runs-on: ubuntu-latest + steps: + - name: Checkout action + uses: actions/checkout@v2 + - name: Get Branch + run: | + raw=3D$(git branch -r --contains ${{ github.ref }}) + branch=3D${raw/ origin\/} + pubdir=3D${branch/master/draft} + pubdir=3D${pubdir////-} + echo "ON_PUSH_BRANCH_NAME=3D$branch" >> $GITHUB_ENV + echo "ON_PUSH_PUBDIR=3D$pubdir" >> $GITHUB_ENV + - name: Gitbook Action + uses: zanderzhao/gitbook-action@v1.2.4 + with: + token: ${{secrets.GITBOOK_ACTION_PERSONAL_TOKEN}} + source_branch: ${{env.ON_PUSH_BRANCH_NAME}} + publish_branch: gh-pages + publish_dir: ${{env.ON_PUSH_PUBDIR}} + publish_remove_last_build: true + gitbook_pdf: true + gitbook_pdf_dir: / + gitbook_pdf_name: ${{ github.event.repository.name }}-${{env.ON_PU= SH_PUBDIR}} + gitbook_epub: true + gitbook_epub_dir: / + gitbook_epub_name: ${{ github.event.repository.name }}-${{env.ON_P= USH_PUBDIR}} + gitbook_mobi: true + gitbook_mobi_dir: / + gitbook_mobi_name: ${{ github.event.repository.name }}-${{env.ON_P= USH_PUBDIR}} diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..e68dc83 --- /dev/null +++ b/.gitignore @@ -0,0 +1,16 @@ +# Node rules: +## Grunt intermediate storage (http://gruntjs.com/creating-plugins#storing= -task-files) +.grunt + +## Dependency directory +## Commenting this out is preferred by some people, see +## https://docs.npmjs.com/misc/faq#should-i-check-my-node_modules-folder-i= nto-git +/node_modules + +# Book build output +/_book + +# eBook build output +/book.epub +/book.mobi +/book.pdf diff --git a/book.json b/book.json index 773750b..e09434e 100644 --- a/book.json +++ b/book.json @@ -4,7 +4,6 @@ "title" : "Getting Started Guide of EDK II HTTP Boot", "version" : "Revision 0.90" }, - - "plugins": ["puml"], + "plugins": ["puml-aleung"], "pluginsConfig": {} } \ No newline at end of file diff --git a/styles/epub.css b/styles/epub.css index be6b609..87d4f8f 100644 --- a/styles/epub.css +++ b/styles/epub.css @@ -1,3 +1,11 @@ +p { + font-family: sans, sans-serif, Ariel; +} + +body { + font-family: sans, sans-serif, Ariel; +} + h1 { color: #0860A8; font-weight: normal; diff --git a/styles/mobi.css b/styles/mobi.css index db1ca60..0d85d04 100644 --- a/styles/mobi.css +++ b/styles/mobi.css @@ -1,3 +1,11 @@ +p { + font-family: sans, sans-serif, Ariel; +} + +body { + font-family: sans, sans-serif, Ariel; +} + h1 { color: #0860A8; font-weight: bold; diff --git a/styles/pdf.css b/styles/pdf.css index be6b609..87d4f8f 100644 --- a/styles/pdf.css +++ b/styles/pdf.css @@ -1,3 +1,11 @@ +p { + font-family: sans, sans-serif, Ariel; +} + +body { + font-family: sans, sans-serif, Ariel; +} + h1 { color: #0860A8; font-weight: normal; diff --git a/styles/website.css b/styles/website.css index be6b609..87d4f8f 100644 --- a/styles/website.css +++ b/styles/website.css @@ -1,3 +1,11 @@ +p { + font-family: sans, sans-serif, Ariel; +} + +body { + font-family: sans, sans-serif, Ariel; +} + h1 { color: #0860A8; font-weight: normal; --=20 2.29.2.windows.2 -=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D- Groups.io Links: You receive all messages sent to this group. View/Reply Online (#67509): https://edk2.groups.io/g/devel/message/67509 Mute This Topic: https://groups.io/mt/78224452/1787277 Group Owner: devel+owner@edk2.groups.io Unsubscribe: https://edk2.groups.io/g/devel/unsub [importer@patchew.org] -=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-