Compare commits

...

3 Commits

Author SHA1 Message Date
c969e00939 Added ticket section 2023-12-08 14:01:49 -06:00
29c236affa Removed un-necessary "Index" from $SITE_NAV options 2023-12-08 13:22:38 -06:00
3ac5d47c14 Added section to full_index 2023-12-08 13:20:25 -06:00
5 changed files with 38 additions and 2 deletions

View File

@@ -7,7 +7,8 @@ export SCRIPT_DIR=$PROJ_DIR/scripts
export FILES_DIR=$PROJ_DIR/files export FILES_DIR=$PROJ_DIR/files
export SUBJECTS_DIR=$PROJ_DIR/subjects export SUBJECTS_DIR=$PROJ_DIR/subjects
export UTILS_DIR=$SCRIPT_DIR/utils export UTILS_DIR=$SCRIPT_DIR/utils
export SITE_NAV='[[/index.wiki|Index]] [[/full_index.wiki|Full Index]] [[/tasks.wiki|Tasks Index]] [[/how-to.wiki|How-To Index]] [[/subjects.wiki|Subjects]]' export TICKET_DIR=$PROJ_DIR/ticket
export SITE_NAV='[[/index.wiki|Index]] [[/full_index.wiki|Full Index]] [[/tasks.wiki|Tasks]] [[/how-to.wiki|How-To]] [[/subjects.wiki|Subjects]] [[/tickets.wiki|Tickets]]'
function import () { function import () {
local SCRIPT_NAME="${1:?"import : script name not provided"}" local SCRIPT_NAME="${1:?"import : script name not provided"}"

View File

@@ -0,0 +1 @@
../update_tickets.sh

View File

@@ -10,6 +10,11 @@ get_journals journals
echo " echo "
%title Full Index %title Full Index
------------------
$SITE_NAV
------------------
# Journals: Times & Topics # Journals: Times & Topics
$( $(
for file_path in ${journals[@]}; do for file_path in ${journals[@]}; do

View File

@@ -1,9 +1,11 @@
#!/opt/homebrew/bin/bash #!/opt/homebrew/bin/bash
cd `dirname $0`
[[ -f config.sh ]] && [[ $CONFIG -ne 1 ]] && . config.sh [[ -f config.sh ]] && [[ $CONFIG -ne 1 ]] && . config.sh
cd $PROJ_DIR cd $PROJ_DIR
for script in $SCRIPT_DIR/enabled/**; do for script in $SCRIPT_DIR/enabled/*; do
[[ -x $script ]] && $script [[ -x $script ]] && $script
done done

27
scripts/update_tickets.sh Executable file
View File

@@ -0,0 +1,27 @@
#!/usr/local/bin/bash
[[ $CONFIG -ne 1 ]] && {
cd `dirname $0`
[[ -f config.sh ]] && . config.sh
}
cat > $PROJ_DIR/tickets.wiki <<EOF
%title Tickets
----------------------
$SITE_NAV
----------------------
= Tickets =
-----------
`
for file in $TICKET_DIR/*; do
FILENAME="${file/*\/}"
FILENAME="${FILENAME/\.*}"
echo "- [[/ticket/$FILENAME|${FILENAME^^}]]"
done
`
EOF