Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
76 commits
Select commit Hold shift + click to select a range
f870d73
Update LLM cache [skip ci]
actions-user Sep 29, 2025
a5f7dc3
Update non-browsable doc map [skip ci]
actions-user Sep 29, 2025
57d943d
Conversion of HRL Croplands PUM + media
Stina-Gremme Sep 30, 2025
af06cfa
Update LLM cache [skip ci]
actions-user Sep 30, 2025
da0623c
Media url fix in HRL_Croplands doc
mckeea Sep 30, 2025
b6bab21
Update LLM cache [skip ci]
actions-user Sep 30, 2025
0e5d969
Added category to yaml header
Stina-Gremme Sep 30, 2025
58dbaba
Update LLM cache [skip ci]
actions-user Sep 30, 2025
01f9def
Moved HRL Cropland in its own project folder
Stina-Gremme Oct 1, 2025
03d0a4d
Update LLM cache [skip ci]
actions-user Oct 1, 2025
c51e776
converted CLC+ Backbone (in respecitve project folder)
Stina-Gremme Oct 1, 2025
1cfa522
Update LLM cache [skip ci]
actions-user Oct 1, 2025
5bb9fc0
moved HRL Grasslands to specific project folder + renamed existing pr…
Stina-Gremme Oct 1, 2025
ace96d6
Update LLM cache [skip ci]
actions-user Oct 1, 2025
37a1695
moved the converted documents into their respective project folders
Stina-Gremme Oct 1, 2025
bcb2aea
Merge branch 'develop' of https://github.com/eea/CLMS_documents into …
Stina-Gremme Oct 1, 2025
1bfa222
changed date of document from 2025 to 2024
Stina-Gremme Oct 2, 2025
3e761ba
Update LLM cache [skip ci]
actions-user Oct 2, 2025
9bfd4ce
Update non-browsable doc map [skip ci]
actions-user Oct 2, 2025
f50aa61
moved VLCC ATBD to respective product category (HRL Cropland)
Stina-Gremme Oct 2, 2025
f29b67b
Merge branch 'develop' of https://github.com/eea/CLMS_documents into …
Stina-Gremme Oct 2, 2025
bcf73f0
Update LLM cache [skip ci]
actions-user Oct 2, 2025
3f1a9ff
specified file name of CLC+BB User Manual 2021
Stina-Gremme Oct 6, 2025
503ed01
Update LLM cache [skip ci]
actions-user Oct 6, 2025
58c0e19
embedded media correctly
Stina-Gremme Oct 6, 2025
9193da7
Merge branch 'develop' of https://github.com/eea/CLMS_documents into …
Stina-Gremme Oct 6, 2025
f1aeda9
Update LLM cache [skip ci]
actions-user Oct 6, 2025
27c63bb
DOCS dir reorganization
mckeea Oct 8, 2025
66e41a4
cleanup
mckeea Oct 8, 2025
c6156d2
Update LLM cache [skip ci]
actions-user Oct 8, 2025
48ce4dc
config update
mckeea Oct 8, 2025
0de3437
Config update
mckeea Oct 8, 2025
c435120
corrected media embedding
Stina-Gremme Oct 9, 2025
9c92335
Update LLM cache [skip ci]
actions-user Oct 9, 2025
917aba5
corrected media embedding
Stina-Gremme Oct 9, 2025
0fd4a88
Update LLM cache [skip ci]
actions-user Oct 9, 2025
8b8ca4e
retrieved lost pictures in Riparian Zones Nomenclature Guideline
Stina-Gremme Oct 10, 2025
a21b791
test commit
mckeea Oct 13, 2025
c6a918c
corrected file name Coastal Zones version 1
Stina-Gremme Oct 21, 2025
982c329
Update LLM cache [skip ci]
actions-user Oct 21, 2025
0196d2d
embedded the media following the new named media path
Stina-Gremme Oct 21, 2025
e587217
Update LLM cache [skip ci]
actions-user Oct 21, 2025
401f696
added the major version digit to all document file names that were al…
Stina-Gremme Oct 27, 2025
69c66bb
Removed the duplicated contact line
Stina-Gremme Oct 29, 2025
f428f49
Update LLM cache [skip ci]
actions-user Oct 29, 2025
76003e2
Update non-browsable doc map [skip ci]
actions-user Oct 29, 2025
9c41b47
converted CLC+BB 2023 & fixed title of CLC+BB 2021
Stina-Gremme Oct 29, 2025
72cc099
Merge branch 'develop' of https://github.com/eea/CLMS_documents into …
Stina-Gremme Oct 29, 2025
45be6e0
Update LLM cache [skip ci]
actions-user Oct 29, 2025
5c5e22d
Updated category "products"
Stina-Gremme Oct 29, 2025
bf2df50
Update LLM cache [skip ci]
actions-user Oct 30, 2025
4bcee90
correcting document name "+" to "plus"
Stina-Gremme Oct 30, 2025
5ad928a
Merge branch 'develop' of https://github.com/eea/CLMS_documents into …
Stina-Gremme Oct 30, 2025
e230574
Update LLM cache [skip ci]
actions-user Oct 30, 2025
ba7b297
Cleaned up folder structure + file naming following the newest decisi…
Stina-Gremme Nov 10, 2025
b65d6e4
Update LLM cache [skip ci]
actions-user Nov 10, 2025
604b1b9
uploaded original PDF files to convert
Stina-Gremme Nov 19, 2025
16b1443
Update LLM cache [skip ci]
actions-user Nov 19, 2025
06890ec
Renamed folder name
Stina-Gremme Nov 20, 2025
9e578b3
converted pdf to qmd for QC
Stina-Gremme Nov 21, 2025
836cae3
Update LLM cache [skip ci]
actions-user Nov 21, 2025
dd5fbd3
updated python script to include catgeory in Yaml header + converted …
Stina-Gremme Nov 21, 2025
265e9e7
Quality checked CLCplus BB 2023 ATBD
Stina-Gremme Nov 21, 2025
3531970
moved original pdf file in converted folder
Stina-Gremme Nov 21, 2025
25de9cb
Update LLM cache [skip ci]
actions-user Nov 21, 2025
43209ac
Cleaned up document names + file names
Stina-Gremme Nov 21, 2025
6846770
deleted Grassland PUM, to prepare for conversion of new version
Stina-Gremme Nov 21, 2025
9c22933
Update LLM cache [skip ci]
actions-user Nov 21, 2025
d9bd406
Merge branch 'develop' of https://github.com/eea/CLMS_documents into …
mckeea Nov 24, 2025
6f75868
Few files renamed
mckeea Nov 30, 2025
be08b78
Update LLM cache [skip ci]
actions-user Nov 30, 2025
6056d8e
New and upgraded logic for version change detection and changelogs ge…
mckeea Dec 1, 2025
b42c9d0
Merge branch 'develop' of https://github.com/eea/CLMS_documents into …
mckeea Dec 1, 2025
38375e2
Merge branch 'test' into develop
mckeea Dec 1, 2025
f9b040d
Update non-browsable doc map [skip ci]
actions-user Dec 1, 2025
eb05d11
Better naming for PR message/title & squash merge for PR added
mckeea Dec 1, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
6 changes: 6 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,12 @@
# Always keep the target branch's version of .llm_cache during merges
.llm_cache merge=ours

# Always keep the target branch's version of change_logs.json during merges
.llm_cache/change_logs.json merge=ours

# Always keep the target branch's version of versions.json during merges
.llm_cache/versions.json merge=ours

# Treat all shell scripts as text with LF endings
*.sh text eol=lf

Expand Down
5 changes: 5 additions & 0 deletions .github/non_browsable_doc_map.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,11 @@
"source": "products/CLDS_survey_evaluation_final.qmd",
"base": "ygwvotluybqwbma6gy8sgaqrfd9ndd8iu078aqn6q10boj016xkhjwegnirwigxb",
"url": "/ygwvotluybqwbma6gy8sgaqrfd9ndd8iu078aqn6q10boj016xkhjwegnirwigxb.html"
},
{
"source": "Copernicus_Land_Data_Store_CLDS/Survey_Evaluation_v1.qmd",
"base": "dr3yejtzxollhygq0lwfgjxf755jvzyly2lemmvpgiqrzf5own2074qpdivug54c",
"url": "/dr3yejtzxollhygq0lwfgjxf755jvzyly2lemmvpgiqrzf5own2074qpdivug54c.html"
}
]
}
11 changes: 9 additions & 2 deletions .github/scripts/build-docs.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,17 @@ python3 .github/scripts/update_url_mappings.py
echo "🔄 Grouping documents by category..."
python3 .github/scripts/group_docs_by_category.py


# Change to DOCS directory as it'll be the root of rendered content
cd DOCS

# Copy quarto configuration and meta files from _meta to DOCS
cp ../_meta/_quarto*.yml .
cp -r ../_meta .

# Link assets to origin_DOCS as these files need to be served from rendered content
ln -s ../assets assets


echo "🖼 Render all documents to HTML"
if [[ -n "$SKIP_DOCX" ]]; then
echo " (DOCX generation will be skipped)"
Expand All @@ -33,7 +38,9 @@ else
# _quarto.yml is already the default with headers - no copying needed
fi

QUARTO_CHROMIUM_HEADLESS_MODE=new quarto render --to html --no-clean
# Render all files together (changelog filter uses original-filename from YAML headers)
echo "🔄 Rendering all documents to HTML..."
QUARTO_CHROMIUM_HEADLESS_MODE=new quarto render --to html --no-clean

# Backup the correct sitemap as it may be overwritten by next operations
sleep 5
Expand Down
62 changes: 62 additions & 0 deletions .github/scripts/filters/inject_contact_info.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,62 @@
-- inject_contact_info.lua
-- Quarto filter to automatically inject standard contact information
-- after the YAML header in documents

local filter_dir = debug.getinfo(1, "S").source:match("@?(.*/)") or ""
local template_path = filter_dir .. "../../templates/contact_template.md"

-- Function to read the contact template
function read_contact_template()
local file = io.open(template_path, "r")
if not file then
return nil
end
local content = file:read("*all")
file:close()
return content
end

-- Function to check if contact should be injected
function should_inject_contact(meta)
-- Check if contact injection is explicitly disabled
if meta.contact and pandoc.utils.stringify(meta.contact) == "false" then
return false
end

-- Default: inject contact unless explicitly disabled
return true
end

-- Main filter function
function Pandoc(doc)
-- Check if we should inject contact info
if not should_inject_contact(doc.meta) then
return doc
end

-- Read the contact template
local contact_content = read_contact_template()
if not contact_content then
-- If template doesn't exist, skip injection
return doc
end

-- Parse the contact template as markdown
local contact_doc = pandoc.read(contact_content, "markdown")

-- Insert contact blocks at the beginning of the document
local new_blocks = {}

-- Add contact blocks first
for i, block in pairs(contact_doc.blocks) do
table.insert(new_blocks, block)
end

-- Add original document blocks
for i, block in pairs(doc.blocks) do
table.insert(new_blocks, block)
end

-- Return document with injected contact info
return pandoc.Pandoc(new_blocks, doc.meta)
end
94 changes: 0 additions & 94 deletions .github/scripts/filters/math2png.lua

This file was deleted.

36 changes: 0 additions & 36 deletions .github/scripts/filters/tex2png.js

This file was deleted.

49 changes: 49 additions & 0 deletions .github/scripts/generate_commit_message.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
#!/bin/bash
# Generate detailed commit message body from PR changed files
# Usage: generate_commit_message.sh <pr_number>

set -e

PR_NUMBER=$1

if [ -z "$PR_NUMBER" ]; then
echo "Usage: $0 <pr_number>"
exit 1
fi

# Get changed .qmd files only
changed_files=$(gh pr view "$PR_NUMBER" --json files -q '.files[].path' | grep '^DOCS/.*\.qmd$' || echo "")

if [ -z "$changed_files" ]; then
echo "No documentation files (.qmd) changed"
exit 0
fi

# Group files by category subdirectory
declare -A categories
while IFS= read -r file; do
[ -z "$file" ] && continue
# Extract category (first directory after DOCS/)
category=$(echo "$file" | sed 's|^DOCS/\([^/]*\)/.*|\1|')
# Extract filename without path and .qmd extension
filename=$(basename "$file" .qmd)

# Add to category array
if [ -n "${categories[$category]}" ]; then
categories[$category]="${categories[$category]}\n- ${filename}"
else
categories[$category]="- ${filename}"
fi
done <<< "$changed_files"

# Build message body, sorted by category name
body=""
for category in $(echo "${!categories[@]}" | tr ' ' '\n' | sort); do
# Format category name (replace underscores with spaces, title case)
formatted_category=$(echo "$category" | sed 's/_/ /g')
body="${body}\n\n${formatted_category}:"
body="${body}\n${categories[$category]}"
done

# Output the body
echo -e "$body"
2 changes: 1 addition & 1 deletion .github/scripts/generate_index_all.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { readdir, writeFile, access } from "fs/promises";
import { join, basename } from "path";

const DOCS_DIR = "../DOCS";
const IGNORED_FOLDERS = new Set(["theme", "templates", "includes", "assets", "_site", ".quarto", "non-browsable"]);
const IGNORED_FOLDERS = new Set(["assets", "_site", "_meta", ".quarto", "non-browsable"]);

function formatTitle(name) {
return name.replace(/[-_]/g, " ").replace(/\b\w/g, (c) => c.toUpperCase());
Expand Down
10 changes: 9 additions & 1 deletion .github/scripts/generate_intros_and_keywords.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,15 @@
ROOT_DIR = (SCRIPT_DIR / "../../").resolve()
CACHE_DIR = (SCRIPT_DIR / "../../.llm_cache").resolve()
CACHE_DIR.mkdir(exist_ok=True)
BLACKLISTED_DIRS = {"templates", "includes", "theme"}
BLACKLISTED_DIRS = {
"templates",
"includes",
"theme",
"_meta",
"assets",
"_site",
".quarto",
}

PROMPT = """You are an AI assistant helping to enrich technical documents for the Copernicus Land Monitoring Service (CLMS).

Expand Down
Loading