Skip to content

Latest commit

 

History

History
86 lines (62 loc) · 2.69 KB

README.md

File metadata and controls

86 lines (62 loc) · 2.69 KB

Neptune-Website

Installation on Ubuntu 22.04

To build the website locally it should be sufficient to first clone this repo, then perform the following commands

sudo apt install -y biber latexmk texlive-bibtex-extra texlive-lang-japanese texlive-latex-extra texlive-latex-recommended 
(Note pre-existing linux package installations may be checked using *sudo apt list --installed* which takes multiple arguments.)
mkdir public
bash buildwebsite-local.sh

then open public/index.html in your preferred browser. The homepage for this branch is available at https://excalibur-neptune.github.io/Developers-Website/main/main.html

PDF only

If you want to generate just the pdf version of the website then you perform the following command

bash buildwebsite-local.sh PDF

and the PDF appears as ./public/main.pdf

Partial PDF and HTML generation

If you want to generate just the HTML and PDF of some tex, and not the whole website, then you perform the following command (where proxyapps/proxyapps is replaced with the relative path to the tex file you want to convert to PDF and HTML)

bash singlepage.sh '\input{proxyapps/proxyapps}'

Non-standard LaTeX commands

When adding a new chapter or section to the latex documentation the following command should be used instead of \section and \chapter

\newsection{}{}

and

\newchapter{}{}

where the first argument is the section/chapter title and the second argument is the label for that section/chapter. If you do not want the new section or chapter to start on a new webpage, then you use the following

\newsectionnobreak{}{}

and

\newchapternobreak{}{}

Installation in WSL

Ubuntu 22.04

To build the website, follow the instructions for the native linux distro above. N.B: Ubuntu 22.04 is now available on the MS Store, no need to manually upgrade an earlier version.

To view the website from a browser in windows, go to

file://wsl%24/Ubuntu-22.04[path_to_website_repo]/public/index.html

Ubuntu 20.04

Note that the instructions for 22.04 won't work for 20.04, as the texlive-latex-recommended package contains an older version of lwarp. While it may be possible to upgrade lwarp, there are issues with using tlmgr that make this non-trivial.

Upgrading from Ubuntu 20.04 to 22.04

You can upgrade from Ubuntu 20.04 to 22.04 within the terminal using the following commands

sudo apt update
sudo apt upgrade
sudo do-release-upgrade

To check you have upgrade to 22.04 after you have rebooted WSL use the following command

lsb_release -a

Installing WSL

If you need to install WSL to your Windows system then follow this guide https://docs.microsoft.com/en-us/windows/wsl/install