Changeset 74906 in spip-zone


Ignore:
Timestamp:
Aug 23, 2013, 2:08:01 PM (6 years ago)
Author:
marcimat@…
Message:

Gestion des Apis

Location:
_galaxie_/code.spip.net/autodoc/trunk
Files:
7 added
5 edited

Legend:

Unmodified
Added
Removed
  • _galaxie_/code.spip.net/autodoc/trunk/src/autodoc/Plugin/Core/Compiler/Pass/SpipTagsCollector.php

    r74902 r74906  
    1616
    1717/**
    18  * Collecter les erreurs
     18 * Collecter les tags SPIP
    1919 */
    2020class SpipTagsCollector implements CompilerPassInterface
  • _galaxie_/code.spip.net/autodoc/trunk/src/autodoc/Plugin/Core/ServiceProvider.php

    r74883 r74906  
    1616use autodoc\Plugin\Core\Compiler\Pass\VcsLinkBuilder;
    1717use autodoc\Plugin\Core\Compiler\Pass\SpipTagsCollector;
     18use autodoc\Plugin\Core\Compiler\Pass\ApisCollector;
    1819
    1920
     
    6263        $app['compiler']->insert(new VcsLinkBuilder($app),   VcsLinkBuilder::COMPILER_PRIORITY);
    6364        $app['compiler']->insert(new SpipTagsCollector(),    SpipTagsCollector::COMPILER_PRIORITY);
     65        $app['compiler']->insert(new ApisCollector(),        ApisCollector::COMPILER_PRIORITY);
    6466    }
    6567}
  • _galaxie_/code.spip.net/autodoc/trunk/src/autodoc/Plugin/Core/Transformer/Router/ZoraRouter.php

    r74726 r74906  
    1515
    1616use autodoc\Plugin\Core\Descriptor\DirectoryDescriptor;
     17use autodoc\Plugin\Core\Descriptor\ApiDescriptor;
    1718
    1819/**
     
    3334        $functionGenerator       = new UrlGenerator\Zora\FunctionDescriptor();
    3435        $constantDescriptor      = new UrlGenerator\Zora\ConstantDescriptor();
     36        $apiDescriptor           = new UrlGenerator\Zora\ApiDescriptor();
    3537
    3638        // @codingStandardsIgnoreStart
     
    4042        $this[] = new Rule(function ($node) { return ($node instanceof FunctionDescriptor); },   $functionGenerator);
    4143        $this[] = new Rule(function ($node) { return ($node instanceof ConstantDescriptor); },   $constantDescriptor);
     44        $this[] = new Rule(function ($node) { return ($node instanceof ApiDescriptor); },        $apiDescriptor);
    4245        // @codingStandardsIgnoreEnd
    4346    }
  • _galaxie_/code.spip.net/autodoc/trunk/templates/zora/inclure/nav.twig

    r74883 r74906  
    66        {'path':'boucles.html',    'nom': 'Boucles',    'elements': project.indexes.spip.boucles},
    77        {'path':'pipelines.html',  'nom': 'Pipelines',  'elements': project.indexes.spip.pipelines},
    8         {'path':'apis.html',       'nom': 'APIs',       'elements': project.indexes.spip.apis},
     8        {'path':'apis/index.html', 'nom': 'APIs',       'elements': project.indexes.apis},
    99        {'path':'constantes.html', 'nom': 'Constantes', 'elements': project.indexes.constants}
    1010] %}
  • _galaxie_/code.spip.net/autodoc/trunk/templates/zora/template.xml

    r74902 r74906  
    4444    <transformation writer="twig" source="templates/zora/criteres.twig"   artifact="criteres.html"/>
    4545    <transformation writer="twig" source="templates/zora/pipelines.twig"  artifact="pipelines.html"/>
     46    <transformation writer="twig" source="templates/zora/apis.twig"       artifact="apis/index.html"/>
    4647
    4748    <!-- gestion des objets générées en twig -->
     
    4950    <transformation writer="twig" query="files" source="templates/zora/file.twig" />
    5051    <transformation writer="twig" query="indexes.classes" source="templates/zora/class.twig" />
     52    <transformation writer="twig" query="indexes.apis" source="templates/zora/api.twig" />
    5153
    5254    <!-- gestion des statistiques -->
Note: See TracChangeset for help on using the changeset viewer.