Comments (4)
Ok, then will file a PR tomorrow!
from docs.
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.
$ 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.
This is awesome @sio4! no objections on my side. 👏
from docs.
Related Issues (20)
- `buffalo new coke` fails HOT 1
- Incorrect URL for crdb in configurations
- Improve examples with PUT, POST and more
- I don't know how to generate a model fields with default value in doc.
- improvement by adding date on release notes page
- Update tables when table name is dynamic
- No z-index on documentation HOT 1
- Local models not found in initial buffalo-auth generation HOT 1
- brew install gobuffalo/tap/pop
- Cant install SODA CLI on Linux HOT 1
- Some elements activate mailer on the docs sidebar HOT 3
- Plush variables not render correctly HOT 1
- Docs: Events page is 404-ing HOT 6
- Incorrect link for install Buffalo CLI HOT 3
- Deployment documentation misses important new "buffalo build" options HOT 1
- Buffalo Plugins documentation is outdated HOT 1
- buffalo dev fails to run a newly generated project HOT 1
- feature: no where on doc mention how to insert.
- bug: Fix models uuid documentation HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from docs.