You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@maven.apache.org by sl...@apache.org on 2026/08/07 14:17:30 UTC

(maven-filtering) branch master updated: Restore the document metadata dropped when the pages were ported

This is an automated email from the ASF dual-hosted git repository.

slachiewicz pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/maven-filtering.git


The following commit(s) were added to refs/heads/master by this push:
     new f5afe5e  Restore the document metadata dropped when the pages were ported
f5afe5e is described below

commit f5afe5eb5a06241ccdee1379845f5b352731c570
Author: Sylwester Lachiewicz <sl...@apache.org>
AuthorDate: Fri Aug 7 11:41:11 2026 +0200

    Restore the document metadata dropped when the pages were ported
    
    An APT document opens with a header block giving its title, authors and date, and
    doxia-converter turns that into YAML front matter. The port removed the front
    matter along with the converter's per-line licence comments, so the generated
    pages lost their author and date meta tags, and took their title from the first
    heading rather than from the document title.
    
    The front matter has to come first in the file: the Markdown parser only looks for
    it when the source begins with "---". A licence header ahead of it would hide it,
    and RAT is happy either way.
---
 src/site/markdown/index.md.vm | 7 +++++++
 src/site/markdown/usage.md    | 7 +++++++
 2 files changed, 14 insertions(+)

diff --git a/src/site/markdown/index.md.vm b/src/site/markdown/index.md.vm
index f26fcb0..d4cf236 100644
--- a/src/site/markdown/index.md.vm
+++ b/src/site/markdown/index.md.vm
@@ -1,3 +1,10 @@
+---
+title: Introduction
+author: 
+  - Olivier Lamy
+date: 2013-07-24
+---
+
 <!--
 Licensed to the Apache Software Foundation (ASF) under one
 or more contributor license agreements.  See the NOTICE file
diff --git a/src/site/markdown/usage.md b/src/site/markdown/usage.md
index 2256c59..14e58fe 100644
--- a/src/site/markdown/usage.md
+++ b/src/site/markdown/usage.md
@@ -1,3 +1,10 @@
+---
+title: Usage
+author: 
+  - Olivier Lamy
+date: 2011-01-05
+---
+
 <!--
 Licensed to the Apache Software Foundation (ASF) under one
 or more contributor license agreements.  See the NOTICE file