Sync local directory to OurBigBook Web instead of doing anything else.
To upload the entire repository, run from toplevel:
ourbigbook --web
To update just all IDs in a single This requires that all external IDs that
physics.bigb
source file use:ourbigbook --web physics.bigb
physics.bigb
might depend on have already been previously uploaded, e.g. with a previous ourbigbook --web
from toplevel.The source code is uploaded, and conversion to HTML happens on the server, no conversion is done locally.
This option is not amazing right now. It was introduced mostly to allow uploading the reference demo content from cirosantilli.com to ourbigbook.com/cirosantilli, and it is not expected that it will be a major use case for end users for a long time, as most users are likely to just edit on OurBigBook Web directly.
Some important known limitations:
- every local file has to be uploaded every time to check if it needs rebuilding or not by comparing old vs new file contents. At Store SHA of each article + descendants and skip API re-renders for entire subtrees we describe a better Git-like Merkle tree method where entire unchanged subtress can be skipped, that will be Nirvana.
- file renaming does not work, it will think that you are creating a new file and blows up duplicates
- if there's an error in a later file, the database is still modified by the previous files, i.e. there is no atomicity. A way to improve that would be to upload all files to the server in one go, and let the server convert everything in one transaction. However, this would lead to a very long server action, which would block any other incoming request (I tested, everything is single threaded)
However, all of those are fixable, and in an ideal world, will be fixed. Patches welcome.
Tagged
Ancestors
Incoming links
- Demo data local file output
- Local header deletion on web upload
- Disambiguate shows on navigation
- Tagged articles and other article lists added to Web
--no-web-render
- OurBigBook CLI
- OurBigBook Web unlisted articles
- Publish your content
--web-dry
--web-force-id-extraction
--web-force-render
--web-id
--web-nested-set
(option)--web-url
--web-user