Skip to content

Commit

Permalink
Fix script paths
Browse files Browse the repository at this point in the history
  • Loading branch information
timlinux committed Dec 3, 2023
1 parent d35b46d commit d456fdd
Show file tree
Hide file tree
Showing 8 changed files with 78 additions and 58 deletions.
6 changes: 6 additions & 0 deletions docs/clean.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
#! /usr/bin/env bash

rm -rf .venv
rm -rf site
rm -rf __pycache__

10 changes: 9 additions & 1 deletion docs/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,16 @@ in pkgs.mkShell rec {

# This executes some shell code to initialize a venv in $venvDir before
# dropping into the shell
pythonPackages.venvShellHook

# For PDF production in mkdocs - see https://comwes.github.io/mkpdfs-mkdocs-plugin/index.html
pythonPackages.venvShellHook
python311Packages.weasyprint
cairo
pango
gdk-pixbuf
glib
gtk2

# Those are dependencies that we would like to use from nixpkgs, which will
# add them to PYTHONPATH and thus make them accessible from within the venv.
pythonPackages.numpy
Expand Down
107 changes: 56 additions & 51 deletions docs/mkdocs-pdf.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,55 +2,60 @@
# scripts for how this is used

plugins:
- with-pdf:
# Generate the whole site as a single PDF
# Full details on this plugin here:
# https://github.com/orzih/mkdocs-with-pdf
# And don't get it confused with https://github.com/zhaoterryy/mkdocs-pdf-export-plugin
# which is intended to export a single page at a time
output_path: ../pdfs/QGISAnimationWorkbench.pdf
author: Tim Sutton, Nyall Dawson
# copyright will draw in page.bottom-right
# do it manually in templates/styles.scss
# for more control
# if you comment out here or use an empty string,
# the copyright text from mkdocs-base.yml will be
# used instead
copyright: ' '
cover: true # see templates/cover.html
back_cover: true
cover_title: The QGIS Animation Workbench
cover_subtitle: Bring your QGIS maps to life!
cover_logo: ../resources/img/logo/animation-workbench-logo.svg
# Print css is defined in templates/styles.scss
#custom_template_path: TEMPLATES PATH
#
toc_title: Contents
#heading_shift: false
# Set to 0 so that it does not generate chapter numbering
# we do the numbering in styles.css rather
toc_level: 0
ordered_chapter_level: 0
#excludes_children:
# - 'release-notes/:upgrading'
# - 'release-notes/:changelog'
#
#exclude_pages:
# - 'bugs/'
# - 'appendix/contribute/'
#convert_iframe:
# - src: IFRAME SRC
# img: POSTER IMAGE URL
# text: ALTERNATE TEXT
# - src: ...
#two_columns_level: 3
#
#render_js: true
#headless_chrome_path: headless-chromium
#
- mkpdfs:
company: Kartoza
author: Tim Sutton and Nyall Dawson
# Alternative PDF creation system but no longer works
#
#- with-pdf:
# # Generate the whole site as a single PDF
# # Full details on this plugin here:
# # https://github.com/orzih/mkdocs-with-pdf
# # And don't get it confused with https://github.com/zhaoterryy/mkdocs-pdf-export-plugin
# # which is intended to export a single page at a time
# output_path: ../pdfs/QGISAnimationWorkbench.pdf
# author: Tim Sutton, Nyall Dawson
# # copyright will draw in page.bottom-right
# # do it manually in templates/styles.scss
# # for more control
# # if you comment out here or use an empty string,
# # the copyright text from mkdocs-base.yml will be
# # used instead
# copyright: ' '
# cover: true # see templates/cover.html
# back_cover: true
# cover_title: The QGIS Animation Workbench
# cover_subtitle: Bring your QGIS maps to life!
# cover_logo: ../resources/img/logo/animation-workbench-logo.svg
# # Print css is defined in templates/styles.scss
# #custom_template_path: TEMPLATES PATH
# #
# toc_title: Contents
# #heading_shift: false
# # Set to 0 so that it does not generate chapter numbering
# # we do the numbering in styles.css rather
# toc_level: 0
# ordered_chapter_level: 0
# #excludes_children:
# # - 'release-notes/:upgrading'
# # - 'release-notes/:changelog'
# #
# #exclude_pages:
# # - 'bugs/'
# # - 'appendix/contribute/'
# #convert_iframe:
# # - src: IFRAME SRC
# # img: POSTER IMAGE URL
# # text: ALTERNATE TEXT
# # - src: ...
# #two_columns_level: 3
# #
# #render_js: true
# #headless_chrome_path: headless-chromium
# #

#enabled_if_env: ENABLE_PDF_EXPORT
# See notes at the top of templates/styles.scss
# for debugging workflow details.
debug_html: true
#show_anchors: true
# #enabled_if_env: ENABLE_PDF_EXPORT
# # See notes at the top of templates/styles.scss
# # for debugging workflow details.
# debug_html: true
# #show_anchors: true
5 changes: 4 additions & 1 deletion docs/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
#Alternative for pdf creation - broken on nixos and lately ubuntu
#mkdocs-with-pdf
# Export to pdf - see https://comwes.github.io/mkpdfs-mkdocs-plugin/index.html
mkpdfs-mkdocs

mkdocs-with-pdf
mkdocs-material
mdx_gh_links
mkdocs-pdf-export-plugin
Expand Down
2 changes: 0 additions & 2 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -1,2 +0,0 @@

future
2 changes: 1 addition & 1 deletion scripts/compile-strings.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
LRELEASE=$1
LOCALES=$2

Expand Down
2 changes: 1 addition & 1 deletion scripts/run-env-linux.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash

QGIS_PREFIX_PATH=/usr/local/qgis-3.0
if [ -n "$1" ]; then
Expand Down
2 changes: 1 addition & 1 deletion scripts/update-strings.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
LOCALES=$*

PYLUPDATE=${PYLUPDATE:-pylupdate5}
Expand Down

0 comments on commit d456fdd

Please sign in to comment.