Changeset 75163 in spip-zone
- Timestamp:
- Aug 31, 2013, 9:00:31 AM (7 years ago)
- Location:
- _galaxie_/code.spip.net/autodoc/trunk
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
_galaxie_/code.spip.net/autodoc/trunk/installation.md
r75089 r75163 111 111 <introduction value="Documentation du code PHP de SPIP." /> 112 112 <presentation value="Cette documentation est extraite du code source PHP de la version en développement de SPIP." /> 113 <titre_onglets value="Autodoc" /> 113 114 </options> 114 115 … … 130 131 - presentation : 131 132 si présent, ajoute cette information sur le sommaire de la documentation automatique générée. 132 133 - titre_onglets : 134 si présent, utilise ce titre dans la barre de navigation 133 135 134 136 -
_galaxie_/code.spip.net/autodoc/trunk/src/autodoc/Helpers/Generator.php
r75114 r75163 198 198 $output_base = $this->input->getOption('sorties'); 199 199 if (!$output_base) $output_base = $this->dirs['work'] . '/output'; 200 $this->setOption('site', '../index.html'); 200 201 201 202 if ($anciens) { … … 221 222 $this->output->writeln("\n"); 222 223 224 // ces options sont créées par retrouverInfoPaquetXml() SI elles n'existent pas. 225 // il faut les nettoyer à chaque passage ! 226 $this->setOption('titre', null); 227 $this->setOption('description', null); 228 $this->setOption('presentation', null); 229 223 230 $ok = $this->createDirectories($prefixe) 224 231 && $this->getSvnSource($present['source']) … … 235 242 } 236 243 244 237 245 $this->output->writeln("\n\n\n"); 238 246 if ($nb_erreur) { … … 243 251 . count($presents) . ") ont été générées.</comment>\n"); 244 252 } 253 245 254 246 255 // générer un sommaire de toutes ces documentations … … 767 776 '@OPT_DESCRIPTION@' => $this->getOption('description', ''), 768 777 '@OPT_PRESENTATION@' => $this->getOption('presentation', ''), 778 '@OPT_TITRE_ONGLETS@' => $this->getOption('titre_onglets', 'Sommaire'), 779 '@OPT_SITE@' => $this->getOption('site', ''), 769 780 ); 770 781 -
_galaxie_/code.spip.net/autodoc/trunk/src/autodoc/Helpers/phpdoc_helper.xml
r75043 r75163 51 51 52 52 <options> 53 <titre value="@OPT_TITRE@" /> 54 <description value="@OPT_DESCRIPTION@" /> 55 <presentation value="@OPT_PRESENTATION@" /> 53 <titre value="@OPT_TITRE@" /> 54 <description value="@OPT_DESCRIPTION@" /> 55 <presentation value="@OPT_PRESENTATION@" /> 56 <titre_onglets value="@OPT_TITRE_ONGLETS@" /> 57 <site value="@OPT_SITE@" /> 56 58 <!-- 57 <site value="http://code.spip.net/" />58 59 <proposer value="oui" /> 59 60 <chemin value="autodoc/" /> -
_galaxie_/code.spip.net/autodoc/trunk/templates/zora/inclure/nav.twig
r75116 r75163 33 33 </a> 34 34 <div class='babarre'> 35 <a href="{{ path(project) }}" class="brand">Autodoc</a> 35 {% set titre = configuration.options.titre_onglets.value %} 36 <a href="{{ path(project) }}" class="brand">{{ titre ? titre : 'Autodoc' }}</a> 36 37 37 38 <div class="nav-collapse collapse navbar-responsive-collapse">
Note: See TracChangeset
for help on using the changeset viewer.