Exemple #1
0
 /**
  * Index all of the available documentation.
  *
  * @return void
  */
 public function indexAllDocuments()
 {
     foreach (Documentation::getDocVersions() as $key => $title) {
         $this->indexAllDocumentsForVersion($key);
     }
     $this->setSettings();
     $this->client->moveIndex($this->index->indexName, static::$index_name);
 }
 /**
  * Determine if the given URL segment is a valid version.
  *
  * @param  string  $version
  * @return bool
  */
 protected function isVersion($version)
 {
     return in_array($version, array_keys(Documentation::getDocVersions()));
 }