This project has been moved to Codeberg: codeberg.org/julienbidoret/rightnow
Please update your bookmarks!
Small routine to update a now static HTML page from console.
Uses a bash script, a python script (running into a virtual env), with BeautifulSoup and Markdown, a git repository.
Tidy is required to beautify our HTML (that we want to look as nice as possible).
It might be already installed on your system. Check it out in your console by running:
tidy --versionIf that fails, install it from a package manager:
- MacOS, Fink:
fink install tidy - MacOS, Homebrew:
brew install tidy-html5 - MacOS, MacPorts:
sudo port install tidy - Windows, Chocolatey:
choco install html-tidy - Linux, Debian:
sudo apt install tidy
Clone the repo, and remove its link to this one.
git clone https://github.com/jbidoret/rightnow.git /your/path/to/now
cd /your/path/to/now
git set-url origin git@github.com:your_own/repository.gitCreate the virtualenv, install the dependencies. The main dependencies are pytidylib that allows tidyfication of the HTML, BeautifulSoup and Markdown, with mdx-linkify extension (to transform raw URLs into hyperlinks).
python -m venv env # create `env` virtualenv
source env/bin/activate # activate the venv
echo /env > .gitignore # ignore the venv
pip install -r requirements.txt # install dependenciesSetup paths in rightnow.py and rightnow.sh.
In your .bashrc or .zshrc, alias the now command to rightnow.sh:
alias now='/your/path/to/now/rightnow.sh'nowDeploy strategy is out of the scope of this tool and doc. Github/Gitlab pages can be an option, a deploy script based on a hook can be another.
Oldschoolars might prefer Rsync that the git-based workflow.