Feature #7
openFeature #82: Implement a work copy of our website
Need a script to copy the latest news from Spip to the official static website
0%
Description
When the static website is frozen because the documentation or the website artwork is under heavy work, it is necessary to have a way to keep on publish news on Spip while copying them onto the static website without modifying other pages. At a first glance news are all located in directories named breve/
:
$ find test/ -type d -name breve
test/russkij/breve
test/romana/breve
test/espanol/breve
test/english/breve
test/francais/breve
test/129/breve
So we just need to sync these directories to import the latest news pages. However the news summary pages have a quite random name. A way to find them is to search for the list of news in the page, which is an UL
tag with class breve
:
$ grep '<ul class="breves">' test/*.html
test/spip4bf4.html: <ul class="breves">
test/spip5366.html: <ul class="breves">
test/spip5f23.html: <ul class="breves">
test/spip7d81.html: <ul class="breves">
test/spip8337.html: <ul class="breves">
test/spipadec.html: <ul class="breves">
test/spipadec.html: <ul class="breves">
We can know the language of each summary page by looking at the tag HTML. For example in the French summary page we have:
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="fr" lang="fr" dir="ltr">
Finally note that the UL
news summary is duplicated in the home page of each language, which are named test/LANGNAME/index.html
.
Updated by Administrator Redmine almost 14 years ago
- Target version set to 2011-05 (Gondwana)
Updated by Administrator Redmine almost 14 years ago
- Estimated time changed from 6:00 h to 2:00 h
Maybe we can use the example commands to replace the news-related pages between Spip and snapshot. In this scenario we would keep the current snapshot and generate a new one, caching files in spip-static/
instead of the test/
directory. This way test/
will still have a static copy for test before going online.
We need to check that news summary pages have persistent names or to change their name if needed. Files in directories breves/
should be overwritten without any concern. This should significantly reduce the time required to change/write the script.
Updated by Jean-Michel Philippe over 13 years ago
- Tracker changed from Task to Feature
- Assignee set to Jean-Michel Philippe
- Parent task set to #82
Updated by Jean-Michel Philippe over 13 years ago
- Due date changed from 05/09/2011 to 05/23/2011
- Category set to Programming
- Start date changed from 04/16/2011 to 05/06/2011
Updated by Jean-Michel Philippe over 13 years ago
- Due date changed from 05/23/2011 to 06/30/2011
- Start date changed from 05/06/2011 to 06/04/2011
Updated by Jean-Michel Philippe over 13 years ago
- Due date changed from 06/30/2011 to 08/15/2011
- Target version changed from 2011-05 (Gondwana) to 2011-08
Updated by Jean-Michel Philippe over 13 years ago
- Due date changed from 08/15/2011 to 01/16/2012
- Target version changed from 2011-08 to Gondwana update 2
- Start date changed from 06/04/2011 to 12/03/2011
Updated by Jean-Michel Philippe almost 13 years ago
- Due date deleted (
01/16/2012) - Target version changed from Gondwana update 2 to 2012-11
- Start date deleted (
12/03/2011)