attic-general mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Henri Yandell (JIRA)" <j...@apache.org>
Subject [jira] [Comment Edited] (ATTIC-165) Procedure update / question list.
Date Tue, 28 Mar 2017 00:02:41 GMT

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

Henri Yandell edited comment on ATTIC-165 at 3/28/17 12:02 AM:
---------------------------------------------------------------

To update the header of websites, I typically:

1) Find the website source (or at least the HTML)
2) Identify the architecture; it's typically either a) template files, or b) generated HTML.
2a) If template files, then identify the main template (often called skeleton it seems) and
edit the body tag to include:
{code:xml}
  <div style="background: red"><h1>YYYY/MM/DD - Apache XYZ has been retired. </h1><h2>For
more information, please explore the <a href="http://attic.apache.org/">Attic</a>.
</h2></div>
{code}

2b) If generated HTML, then run a search and replace.

So, firstly see the output of something like:

{code}
  find . -type f | xargs grep '<body'
{code}

Then I run:

{code}
  find . -type f | xargs grep '<body' | xargs perl -pi -e 's!(<body[^>]*>)!\1<div
style="background: red"><h1>YYYY/MM/DD - Apache XYZ has been retired. </h1><h2>For
more information, please explore the <a href="http://attic.apache.org/">Attic</a>.
</h2></div>!'
{code}


was (Author: bayard):
To update the header of websites, I typically:

1) Find the website source (or at least the HTML)
2) Identify the architecture; it's typically either a) template files, or b) generated HTML.
2a) If template files, then identify the main template (often called skeleton it seems) and
edit the body tag to include:
{code:xml}
  <div style="background: red"><h1>YYYY/MM/DD - Apache XYZ has been retired. </h1><h2>For
more information, please explore the <a href="http://attic.apache.org/">Attic</a>.
</h2></div>
{code}

2b) If generated HTML, then run a search and replace.

So, firstly see the output of something like:

{code}
  find . -type f | xargs grep '<body'
{code}

Then I run:

{code}
  find . -type f | xargs grep '<body' | xargs perl -pi -e 's!(<body[^>]*>)!\1<div
style="background: red"><h1>YYYY/MM/DD - Apache XYZ has been retired. </h1><h2>For
more information, please explore the <a href="http://attic.apache.org/">Attic</a>.
</h2></div>
{code}

> Procedure update / question list.
> ---------------------------------
>
>                 Key: ATTIC-165
>                 URL: https://issues.apache.org/jira/browse/ATTIC-165
>             Project: Attic
>          Issue Type: Improvement
>            Reporter: jan iversen
>            Priority: Minor
>
> Reading the current procedure http://attic.apache.org/process.html, leaves some open
questions:
> -->  Create page on Attic site: http://attic.apache.org/projects/${project}.html
> Site is in http://svn.apache.org/repos/asf/attic/site
> Add page to xdocs/projects (manually?)
> How to generate the new site ?
> --> i. Update website with Attic notice: http://${project}.apache.org/
> Missing pointer to office notice text.
> (Will be updated as I continue with Abdera)



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

Mime
View raw message