You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@netbeans.apache.org by "Antonio Vieiro (JIRA)" <ji...@apache.org> on 2018/03/25 10:51:00 UTC

[jira] [Commented] (NETBEANS-124) Create Groovy script to generated required YAML side car files (meta-data) for content, and strip content from old site files

    [ https://issues.apache.org/jira/browse/NETBEANS-124?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16412980#comment-16412980 ] 

Antonio Vieiro commented on NETBEANS-124:
-----------------------------------------

Hi,

We are awaiting for Oracle's IP Clearance for the tutorials
https://github.com/apache/incubator-netbeans-website-cleanup/pull/3
and the features section
https://github.com/apache/incubator-netbeans-website-cleanup/pull/2
Metadata is already included in the asciidoc headers, also content has been stripped, adding images in same locations as sources.
Please consider if this issue is worth closing.

Thanks,
Antonio

> Create Groovy script to generated required YAML side car files (meta-data) for content, and strip content from old site files
> -----------------------------------------------------------------------------------------------------------------------------
>
>                 Key: NETBEANS-124
>                 URL: https://issues.apache.org/jira/browse/NETBEANS-124
>             Project: NetBeans
>          Issue Type: Task
>          Components: website
>            Reporter: Wade Chandler
>            Assignee: Wade Chandler
>            Priority: Major
>
> The new NetBeans statically generated website being developed at https://github.com/wadechandler/netbeans-static-site uses JBake and Gradle to build the site. It uses certain YAML files as "sidecar" files to the content files which explain to a template the type of file it is along with other meta-data, such as the document title etc. The new site uses Groovy templates to allow for common headers, footers, and side bars.
> These sidecar files, along with the main body content, allow for templates to be matched to the content type of a file, and then for that file to have everything it requires embedded inside of it to be served as a "static" web site with no server side component dynamically binding the information at runtime. This is a requirement of Apache projects web sites; to be static.
> The Groovy script described in this issue will:
> * Pull information such as the title, keywords, description, and other meta-data which may be embedded in HTML or other file types, and place that into the required sidecar YAML files of the build system
> * Pull out the main body content from the the original HTML file and place it into a file of the same name to match the YAML sidecar file per the new site naming conventions (see the README.md file)
> * Choose a template type for the content based on its file system hierarchy which seems representative of the way current NetBeans website is laid out; notice depending on the drill down into the web site, that certain side bars, headers, etc differ or are enabled or disabled. The new site does this based on the page/template type
> This Groovy script is a development time tool which is used to transform the old content into the format now needed. Once the conversion is done, then it should no longer be needed. It will be able to be run from the Gradle build like other aspects of the new sites build system; see buildSrc which is a good place for this Groovy script to be placed as a Groovy class.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@netbeans.apache.org
For additional commands, e-mail: commits-help@netbeans.apache.org

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists