Skip to content

Commit

Permalink
Redirect master documentation to v1.x
Browse files Browse the repository at this point in the history
This documentation is technically for the v0.x branch, but people visiting these links now will probably look for the latest version.  The master documentation is on the GitHub.io domain.

Uses a meta redirect, and a canonical link to hopefully not break SEO results.

Script used to do this, in case we need to make changes:

```php
<?php

$files = glob(__DIR__ . '/*.html');

$template = <<<'HTML'
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="refresh" content="0;url=/docs/1.x/$page" />
    <link rel="canonical" href="https://hydephp.com/docs/1.x/$page">
    <title>Redirecting...</title>
</head>

HTML;

foreach ($files as $file) {
    $page = basename($file, '.html');
    $content = str_replace('$page', $page, $template);
    file_put_contents($file, $content);
}
```
  • Loading branch information
caendesilva committed Nov 6, 2023
1 parent bddc6a8 commit 903c3af
Show file tree
Hide file tree
Showing 32 changed files with 128 additions and 17,072 deletions.
363 changes: 4 additions & 359 deletions docs/docs/master/README.html

Large diffs are not rendered by default.

538 changes: 4 additions & 534 deletions docs/docs/master/advanced-customization.html

Large diffs are not rendered by default.

385 changes: 4 additions & 381 deletions docs/docs/master/advanced-features.html

Large diffs are not rendered by default.

535 changes: 4 additions & 531 deletions docs/docs/master/advanced-markdown.html

Large diffs are not rendered by default.

384 changes: 4 additions & 380 deletions docs/docs/master/architecture-concepts.html

Large diffs are not rendered by default.

484 changes: 4 additions & 480 deletions docs/docs/master/autodiscovery.html

Large diffs are not rendered by default.

421 changes: 4 additions & 417 deletions docs/docs/master/automatic-routing.html

Large diffs are not rendered by default.

600 changes: 4 additions & 596 deletions docs/docs/master/blog-posts.html

Large diffs are not rendered by default.

511 changes: 4 additions & 507 deletions docs/docs/master/build-tasks.html

Large diffs are not rendered by default.

601 changes: 4 additions & 597 deletions docs/docs/master/collections.html

Large diffs are not rendered by default.

451 changes: 4 additions & 447 deletions docs/docs/master/compile-and-deploy.html

Large diffs are not rendered by default.

817 changes: 4 additions & 813 deletions docs/docs/master/console-commands.html

Large diffs are not rendered by default.

809 changes: 4 additions & 805 deletions docs/docs/master/core-concepts.html

Large diffs are not rendered by default.

785 changes: 4 additions & 781 deletions docs/docs/master/customization.html

Large diffs are not rendered by default.

364 changes: 4 additions & 360 deletions docs/docs/master/directory-structure.html

Large diffs are not rendered by default.

734 changes: 4 additions & 730 deletions docs/docs/master/documentation-pages.html

Large diffs are not rendered by default.

454 changes: 4 additions & 450 deletions docs/docs/master/dynamic-data-discovery.html

Large diffs are not rendered by default.

432 changes: 4 additions & 428 deletions docs/docs/master/extensions.html

Large diffs are not rendered by default.

423 changes: 4 additions & 419 deletions docs/docs/master/front-matter.html

Large diffs are not rendered by default.

364 changes: 4 additions & 360 deletions docs/docs/master/getting-started.html

Large diffs are not rendered by default.

1,271 changes: 4 additions & 1,267 deletions docs/docs/master/hyde-pages.html

Large diffs are not rendered by default.

410 changes: 4 additions & 406 deletions docs/docs/master/in-memory-pages.html

Large diffs are not rendered by default.

402 changes: 4 additions & 398 deletions docs/docs/master/index.html

Large diffs are not rendered by default.

364 changes: 4 additions & 360 deletions docs/docs/master/installation.html

Large diffs are not rendered by default.

528 changes: 4 additions & 524 deletions docs/docs/master/managing-assets.html

Large diffs are not rendered by default.

472 changes: 4 additions & 468 deletions docs/docs/master/page-models.html

Large diffs are not rendered by default.

457 changes: 4 additions & 453 deletions docs/docs/master/quickstart.html

Large diffs are not rendered by default.

375 changes: 4 additions & 371 deletions docs/docs/master/search.html

Large diffs are not rendered by default.

554 changes: 4 additions & 550 deletions docs/docs/master/static-pages.html

Large diffs are not rendered by default.

880 changes: 4 additions & 876 deletions docs/docs/master/the-hydekernel.html

Large diffs are not rendered by default.

578 changes: 4 additions & 574 deletions docs/docs/master/troubleshooting.html

Large diffs are not rendered by default.

454 changes: 4 additions & 450 deletions docs/docs/master/updating-hyde.html

Large diffs are not rendered by default.

0 comments on commit 903c3af

Please sign in to comment.