2017 © Pedro Peláez
 

library owncloud-documentation-sitemap-builder

A package for building the ownCloud documentation sitemap.xml file

image

owncloud/owncloud-documentation-sitemap-builder

A package for building the ownCloud documentation sitemap.xml file

  • Thursday, August 3, 2017
  • by DeepDiver1975
  • Repository
  • 5 Watchers
  • 0 Stars
  • 0 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 1 Forks
  • 0 Open issues
  • 3 Versions
  • 0 % Grown

The README.md

ownCloud Documentation Sitemap Builder

This is a simple project to build a valid sitemap.xml string from the files in the documentation repository., (*1)

Build Status Coverage Status Scrutinizer Code Quality Latest Version Total Downloads, (*2)

Why?

This project was created for a couple of reasons. Firstly, to generate a valid sitemap.xml file for the documentation, and then to keep it up to date. Maintaining software documentation isn't that simple. And getting the right information (meaning the most up to date information) to appear in search results requires a valid and well-constructed sitemap.xml file. To create and maintain one by hand for a project of this size isn't practical. So this library was created to automate the process, whether once or with each merge to master., (*3)

Installation

To install the package, run composer require settermjd/owncloud-documentation-sitemap-builder., (*4)

Usage

Below is a sample of how to use the package. It shows how to instantiate a new SitemapBuilder instance, which is constructed with the default ownCloud basePath and version settings. On this instance:, (*5)

  1. A call to getSitemapUrlList is made. This converts the .rst files found under ../documentation into a set of equivalent URLs.
  2. The generated URLs list is then passed to generateSiteMapXml, which builds a sitemap.xml string from the supplied information.

```php <?php, (*6)

require_once ('vendor/autoload.php');, (*7)

$builder = new OwnCloud\SiteMapBuilder\SitemapBuilder();, (*8)

$builder->generateSiteMapXml( $builder->getSitemapUrlList( realpath('../documentation/'), 'rst' ) ); ````, (*9)

Contributing

See the CONTRIBUTING file., (*10)

The Versions

03/08 2017

dev-master

9999999-dev

A package for building the ownCloud documentation sitemap.xml file

  Sources   Download

BSD-3-Clause

The Requires

 

The Development Requires

sitemap.xml

03/08 2017

0.0.2

0.0.2.0

A package for building the ownCloud documentation sitemap.xml file

  Sources   Download

BSD-3-Clause

The Requires

 

The Development Requires

sitemap.xml

02/08 2017

0.0.1

0.0.1.0

A package for building the ownCloud documentation sitemap.xml file

  Sources   Download

BSD-3-Clause

The Requires

 

The Development Requires

sitemap.xml