-
-
Notifications
You must be signed in to change notification settings - Fork 40
Migrate site to new format #303
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
…and to work a bit better with the one-platform-at-a-time idea.
* Major LESS addition/overhaul * Homepage concept * Concept for download page — show only one platform at a time to make it less confusing (platform auto-picked by system switcher) * Pull in Font Awesome in the header * Rework some pages
…ithub.io into 11ty-migration-random-ideas
* Add icons for each of the navigation items * Link to the package repo * Include a GitHub repo link Also tweaked page footer breakpoint behavior.
…otherwise other headings get misclassified.
…ideas Random website ideas
@savetheclocktower I believe this is now ready for a proper review if we are ready to merge it in. |
It needs some merge conflicts fixed, but otherwise I'm happy to take a look. This is a scary PR, though. I want to make sure I understand what happens when we click the green button on this one.
|
@savetheclocktower Luckily, the redirects are super easy, just make a file with the following content: ---
permalink: <old_url>
to: <new_url>
layout: redirect
--- And I've been placing them in the logical directory structure inside And you're absolutely right that we should publish As for updates, each repo handles it in essentially the same way. Which is the exact same way updates are handled in One other thing we do need to do is generate docs for all the previous versions of the pulsar API. Which if you'd like to handle that'd be awesome, otherwise I'll try to get to that as well, but that's much lower priority and can always been done later, even after the official launch. |
@savetheclocktower With these some notes: Some pages no longer exist in any form. For those I've opted to redirect to the next best thing or the website homepage. As for the blog, I automated those redirects being created, and for posterity: I used the following API call to get the entire directory of content for our current blog posts const fs = require("node:fs");
const posts = require("./posts.json");
for (const post of posts) {
const name = post.name.replace(".md", ""); // Just the post name, no extension or path
const file =
`---
permalink: /blog/${name}.html
to: https://blog.pulsar-edit.dev/posts/${name}/
layout: redirect
---`;
fs.writeFileSync(`./docs/redirects/blog/${name}.md`, file, { encoding: "utf-8" });
} But from here this end should be good to go, besides the conflicts. One more thing to consider, we now have some missing blog post entries on the new blog which we will want to add in. |
@confused-Techie, thanks so much for these changes. This still needs conflict resolution before it can be merged, though. (Maybe it's an easy merge and I can't tell because I don't have merge rights on this repo.) Meanwhile, I'll see about creating the missing blog posts. |
OK, blog#4 has the new blog posts. |
@savetheclocktower Merged your PR over in the blog repo, and resolved the conflicts on my end. Otherwise hopefully this PR is looking a bit better EDIT:
|
This PR migrates our existing homepage to
11ty
just like we are doing on the documentation side and blog side.This is just about the last thing we need to do before we are ready to launch our new web presence all at once.
This PR has a few big hurdles to get over that we haven't had to touch yet elsewhere:
If you have any ideas (especially on the home page) I'm more than happy to hear them and see where we might want to go with things.
With the amount of change happening, it might be a good idea to flesh out exactly what will stay here for those slightly more unfamiliar.
Below is a layout of the web resources we currently have (that are related to this project) and where they will end up:
pulsar-edit.dev/
=>pulsar-edit.dev
| Homepage: Covered in this PR.pulsar-edit.dev/download.html
=>pulsar-edit.dev/download/
| Download Page: Covered in this PR.pulsar-edit.dev/about.html
=>pulsar-edit.dev/about/
| About Page: Covered in this PR.pulsar-edit.dev/community.html
=>pulsar-edit.dev/community/
| Community Spaces: Covered in this PR.pulsar-edit.dev/donate.html
=>pulsar-edit.dev/donate/
| Donate Page: Covered in this PR.pulsar-edit.dev/blog
=>blog.pulsar-edit.dev
| Blog: Migrated to repositorypulsar-edit/blog
pulsar-edit.dev/docs
=>docs.pulsar-edit.dev
| Documentation: Migrated to repositorypulsar-edit/documentation
So in short, that only leaves this repository with the following resources:
With the only one of these that would see regular updates is the download page. Otherwise it's very possible these resources may be relatively static.
My biggest concern is we in the past had a contributor come along and redesign the homepage to something that while really cool, has significant performance issues on lower end PCs. Obviously it'd be best to find a new homepage design that works well everywhere, fits our current new theming, and possibly more importantly is something everyone on the team is happy with being representative of a users first experience of Pulsar.