Siyao Meng created HDDS-16989:
---------------------------------

             Summary: Doc build fails because ZDU design doc lacks required 
front matter
                 Key: HDDS-16989
                 URL: https://issues.apache.org/jira/browse/HDDS-16989
             Project: Apache Ozone
          Issue Type: Bug
          Components: documentation
            Reporter: Siyao Meng
            Assignee: Siyao Meng


{{hadoop-hdds/docs/content/design/zdu-design.md}} (added in HDDS-14498) only 
sets {{jira}} and {{authors}} in its front matter. The design doc templates 
expect {{title}}, {{summary}}, {{date}}, {{status}} and {{author}}.

With older Hugo (e.g. 0.111.3), building docs without {{-DskipDocs}} fails:
{noformat}
execute of template failed: template: design/single.html:27:96: executing 
"design/single.html" at <dateFormat "2006-01-02">: error calling dateFormat: 
unable to cast <nil> of type <nil> to Time
{noformat}
With Hugo 0.152.2 (used in CI) the build passes, but the page renders with an 
empty title, authors, status and summary, and the date 0001-01-01.

Fix: add the standard design doc front matter to {{zdu-design.md}}.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to