-
Notifications
You must be signed in to change notification settings - Fork 7
TianoCore Documents Required Tools
- GIT
- Calibre
- NPM & Node.js
- gitbook-cli
- PDF Viewer: e.g. Adobe or Foxit
-
Configure proxies
-
Install GIT
https://git-scm.com/download/win
NOTE: Sometimes GIT needs to be configured to use
https://
paths instead ofgit://
paths. If any of the NPM installation steps fail, then try updating the GIT global configuration using the following command:git config --global --add url.https://.insteadof git://
-
Install latest version of Calibre
-
Install and Initialize NPM (LTS version)
Note: NPM may have to also be configured for a proxy. Replace the path in the following commands with the required proxy settings.
npm config set proxy http://proxy.company.com:8080 npm config set https-proxy http://proxy.company.com:8080
-
Open a command prompt and install gitbook-cli
npm install -g gitbook-cli
-
Install Pandoc
-
Open a command prompt and install gitbook-convert
npm install -g gitbook-convert
-
Install GitBook Editor from https://www.gitbook.com/editor/windows
-
Configure proxies
-
Install GIT
sudo dnf -y install git
-
Install latest version of calibre-ebook
- Download from https://calibre-ebook.com/download_linux
- Run following command with
/path/to/downloaded/calibre-tarball.txz
replaced with path to downloaded file.sudo mkdir -p /opt/calibre && sudo rm -rf /opt/calibre/* && sudo tar xvf /path/to/downloaded/calibre-tarball.txz -C /opt/calibre && sudo /opt/calibre/calibre_postinstall
-
Install and Initialize NPM
sudo dnf -y install npm cd ~ npm init -y
-
Install gitbook-cli
npm install gitbook-cli
-
Install Pandoc
sudo dnf -y install pandoc
-
Install gitbook-convert
npm install gitbook-convert
-
Install GitBook Editor from https://www.gitbook.com/editor/linux
-
Run the following commands to clone the EDK II Template Specification to a local directory and build this specification to MOBI, EPUB, PDF, and HTML formats.
mkdir tianocore-docs cd tianocore-docs git clone https://github.com/tianocore-docs/edk2-TemplateSpecification.git cd edk2-TemplateSpecification gitbook install gitbook mobi gitbook epub gitbook pdf gitbook serve
Note: The
gitbook install
command must be run for each document repository that is cloned before any of the publish commands can be used. This command installs gitbook plugins that a document requires.
-
Use a web browser to view HTML version at http://localhost:4000
-
Use a web browser open the following files in the path
~/tianocore-docs/edk2-TemplateSpecification
book.mobi
book.epub
book.pdf