diff --git a/handbook/computing/export-dialog.jpg b/handbook/computing/export-dialog.jpg new file mode 100644 index 000000000..ab08c715e Binary files /dev/null and b/handbook/computing/export-dialog.jpg differ diff --git a/handbook/computing/log-blog-parsing.html b/handbook/computing/log-blog-parsing.html index 6518f219b..8faa7a7bc 100644 --- a/handbook/computing/log-blog-parsing.html +++ b/handbook/computing/log-blog-parsing.html @@ -59,9 +59,40 @@ it is handy to print out this page and tick off the steps as you do them.
Look at all the photos in the file browser set to show thumbnails and delete all advertising logos etc., and delete the UK Caving header image which will be of random people not us.
Edit this bit in the obvious manner to add a line for the year you want to add:
+
+BLOG_PARSER_SETTINGS = {
+ "2017": ("ukcavingblog.html", "parser_blog"),
+ "2018": ("ukcavingblog.html", "parser_blog"),
+ "2019": ("ukcavingblog.html", "parser_blog"),
+ "2022": ("ukcavingblog.html", "parser_blog"),
+ }
+
If there are 2nd or 3rd pageswithin the same year, these will be detected automatically. But you have to tell it about the first one. + +
Run Troggle locally, and navigate your browser to +http://localhost:8000/controlpanel. Select the drop-down for the year you are working on (2017 in this example). +
You need to login as the "expoadmin" user id, not the usual "expo" id. This has a different password but you already know what it is because you set up your local copy of Troggle. +
There is only one export format: "HTML 2005 style". This uses the Django template +troggle/templates/logbook2005style.html. +
All entries for the year will be exported in date order, which may not be the order they were originally written in the paper logbook. +
Some logbooks have "front matter": text and images which are not part of any trip entry. This front matter is copied out when the logbook.html file was most recently parsed and is copied in to the front of the generated export file. The export file is always called "logbook-new-format.html" and is located in the same folder as "logbook.html". If there is a file of that name already there it is overwritten without warning.
Edit this bit in the obvious manner to show that you have done all the work for 2017. Don't just delete the line, make it obvious that the importing job was done:
+
+BLOG_PARSER_SETTINGS = {
+ # "2017": ("ukcavingblog.html", "parser_blog"), # now folded in to logbooks.html
+ "2018": ("ukcavingblog.html", "parser_blog"),
+ "2019": ("ukcavingblog.html", "parser_blog"),
+ "2022": ("ukcavingblog.html", "parser_blog"),
+ }
+
...[to be done]
With the blog, we have well known expoers labelled as unrecognized because while they posted to the blog, they were not actually on expo in that year. This is not a bug, but don't be confused by it. +
Somewhere the encode/decode process of exporting the content of the trip writeups is turning quote marks into question marks, and > into >. Currently these are all being hand-edited to fix. The fault +is somewhere in the settings for rendering a dictionary using a Django template, and hard to find and fix.
Back to Logbooks Import for Nerds documentation.