GithubHelp home page GithubHelp logo

Comments (4)

sio4 avatar sio4 commented on August 15, 2024 1

Ok, then will file a PR tomorrow!

from docs.

sio4 avatar sio4 commented on August 15, 2024

I quickly tested on this issue:

I modified this sample file content/documentation/getting_started/d/integrations.md as below:

---
name: Tooling Integration
seoDescription: "Tooling Integration"
seoKeywords: 
  - "tooling"
  - "ide"
  - "integration"
  - "buffalo"
  - "bash"
  - "zsh"
  - "go"
  - "golang"
aliases:
  - /en/docs/getting-started/integrations
---
<...>

(added the last two lines: aliases)

Then for the test server, it automatically redirects without sending the old content but I think it is not the case for having a proxy like Nginx for the contents.

$ curl -v http://localhost:1313/en/docs/getting-started/integrations
*   Trying 127.0.0.1:1313...
* TCP_NODELAY set
* Connected to localhost (127.0.0.1) port 1313 (#0)
> GET /en/docs/getting-started/integrations HTTP/1.1
> Host: localhost:1313
> User-Agent: curl/7.68.0
> Accept: */*
> 
* Mark bundle as not supporting multiuse
< HTTP/1.1 301 Moved Permanently
< Location: integrations/
< Date: Tue, 05 Apr 2022 10:42:51 GMT
< Content-Length: 0
< 
* Connection #0 to host localhost left intact

and checked the generated file for the old URL, public/en/docs/getting-started/integrations/index.html, is as below:

<!doctype html>
<html>
<head>
<title>https://gobuffalo.io/documentation/getting_started/integrations/</title>
<link rel=canonical href=https://gobuffalo.io/documentation/getting_started/integrations/>
<meta name=robots content="noindex">
<meta charset=utf-8>
<meta http-equiv=refresh content="0; url=https://gobuffalo.io/documentation/getting_started/integrations/">
</head>
</html>

(newlines are added by myself for readability)

It automatically generates the canonical link and meta-refresh so it could be the best solution for this issue, even though we have to add all the aliases :-p

from docs.

sio4 avatar sio4 commented on August 15, 2024
$ find content/ -type f |wc -l
89

not a big deal.

@paganotoni, Do you have any concerns about this approach or another intention of not to do this while you configured the new URL scheme? Otherwise, I will working on it.

from docs.

paganotoni avatar paganotoni commented on August 15, 2024

This is awesome @sio4! no objections on my side. 👏

from docs.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.