51 lines
1.6 KiB
Plaintext
51 lines
1.6 KiB
Plaintext
==Local copy auf neuesten Stand bringen==
|
|
# Falls schon ausgecheckt:
|
|
cd c3d2-web/
|
|
svn update
|
|
|
|
==Inhalt klauen==
|
|
cd content/
|
|
cp kontakt.xml silc.xml
|
|
vim silc.xml
|
|
|
|
Jetzt schmeissen wir den alten Inhalt raus, bis das so aussieht:
|
|
<?xml version="1.0" encoding="UTF-8"?>
|
|
|
|
<nowiki><page title="" pagetitle="">
|
|
<p>
|
|
</p>
|
|
</page></nowiki>
|
|
|
|
==Makefile-Regel setzen==
|
|
vim Makefile
|
|
|
|
Wir kopieren jetzt die letzte Regel für eine HTML-Datei in ''www/'' und ändern einfach den Dateinamen:
|
|
www/wiki.html: \
|
|
$(patsubst www/%.html,content/%.xml,$@) \
|
|
$(STYLE) $(NAVIGATION) chaosupdates.rdf
|
|
$(PROCESSOR) -o $@ $(STYLE) $(patsubst www/%.html,content/%.xml,$@)
|
|
|
|
'''+'''www/<span style="color:red;">silc</span>.html: \
|
|
'''+''' $(patsubst www/%.html,content/%.xml,$@) \
|
|
'''+''' $(STYLE) $(NAVIGATION) chaosupdates.rdf
|
|
'''+''' $(PROCESSOR) -o $@ $(STYLE) $(patsubst www/%.html,content/%.xml,$@)
|
|
|
|
==Inhalt einsetzen==
|
|
Jetzt füllen wir unserem Inhalt. Die neue Seite soll ''"Secure Internet Live Conferencing"'' heissen und in der Navigationsleiste als ''"SILC"''. Dazu ändern wir die Attribute des '''<page/>'''-Elements:
|
|
<page title="Secure Internet Live Conferencing" pagetitle="SILC">
|
|
|
|
==Seite der Navigationsleiste hinzufügen==
|
|
vim navigation.xml
|
|
|
|
Wir fügen jetzt der Navigationsliste den Dateinamen der neuen Seite '''ohne Pfad''' und '''ohne Erweiterung''' hinzu:
|
|
<?xml version="1.0" encoding="UTF-8"?>
|
|
|
|
<navigation>
|
|
<file>news</file>
|
|
<file>kontakt</file>
|
|
<file>mailingliste</file>
|
|
<file>wiki</file>
|
|
<span style="color:red"><file>silc</file></span>
|
|
<file>impressum</file>
|
|
</navigation>
|