Skip to content
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

Move blog to static website #50

Closed
wants to merge 9 commits into from
Closed

Move blog to static website #50

wants to merge 9 commits into from

Conversation

patersonc
Copy link
Collaborator

Move blog to static website from the foundation website.

Part of #43

@patersonc patersonc added the documentation Improvements or additions to documentation label Sep 10, 2021
@patersonc patersonc self-assigned this Sep 10, 2021
@patersonc
Copy link
Collaborator Author

Keeping in draft for now as I'll add some commits to bring the current blog posts over from the foundation site.

@gctucker
Copy link
Contributor

@patersonc It would be a bit cleaner to use a fork under your own GitHub user account when creating PRs rather than pushing branches to the main repository. These are visible to anyone making a clone of it.

@gctucker
Copy link
Contributor

This PR conflicts with #49 due to the changes in the main menu. So #49 could have the staging-skip label for now to get the blog changes from this PR deployed on the staging static website.

@patersonc
Copy link
Collaborator Author

@patersonc It would be a bit cleaner to use a fork under your own GitHub user account when creating PRs rather than pushing branches to the main repository. These are visible to anyone making a clone of it.

Ah, sorry! Shall I close my current MRs and start over?

@gctucker
Copy link
Contributor

@patersonc It would be a bit cleaner to use a fork under your own GitHub user account when creating PRs rather than pushing branches to the main repository. These are visible to anyone making a clone of it.

Ah, sorry! Shall I close my current MRs and start over?

No it's not worth doing that, just something to keep in mind for future PRs I guess.

@patersonc patersonc force-pushed the patersonc/add-blog branch 2 times, most recently from 96ac261 to c5f4a7c Compare September 13, 2021 11:20
@patersonc patersonc marked this pull request as ready for review September 14, 2021 12:54
@patersonc
Copy link
Collaborator Author

I'm removing the draft label as all blog content from the foundation site has now been ported.

@gctucker
Copy link
Contributor

I'm removing the draft label as all blog content from the foundation site has now been ported.

Now I'm starting a blog post about KernelCI hackfests on top of this ;)

@gctucker
Copy link
Contributor

BTW I don't think we actually need the hierarchy with all the months and days, the date is collected from the front matter in each post.

Copy link
Contributor

@gctucker gctucker left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please use git-lfs for the binary files, it makes it much easier to do a lightweight checkout as this repository is not only for the static website.

The design here is to have two categories of blog posts.
1) "News" - For sharing project news
2) "Posts" - For technical, project or any other interesting blog posts

"Posts" was chosen instead of "Blog" as "Blog" has a special meaning and
can only be used as a top-level catch all for all blog syle pages.

Each category has a sub-directory where markdown or html blog posts can be
added.

Initially a couple of dummy posts have been added just so we can see how it
looks. These will be replaced by content from
https://foundation.kernelci.org/news/ and
https://foundation.kernelci.org/blog/.

The structure of how we store the blog post files is yet to be decided.

Signed-off-by: Chris Paterson <chris.paterson2@renesas.com>
Adding all news posts from https://foundation.kernelci.org/news/.
Also remove dummy news post.

Signed-off-by: Chris Paterson <chris.paterson2@renesas.com>
Content copied from the foundation site:
https://foundation.kernelci.org/blog/2020/05/11/state-of-kernelci-and-new-blog/

Also remove dummy blog post.

Signed-off-by: Chris Paterson <chris.paterson2@renesas.com>
Content copied from the foundation site:
https://foundation.kernelci.org/blog/2020/07/09/kernelci-community-survey-report/

Signed-off-by: Chris Paterson <chris.paterson2@renesas.com>
Content copied from the foundation site:
https://foundation.kernelci.org/blog/2020/08/21/introducing-common-reporting/

Signed-off-by: Chris Paterson <chris.paterson2@renesas.com>
Content copied from the foundation site:
https://foundation.kernelci.org/blog/2020/09/23/kernelci-notes-from-plumbers-2020/

Signed-off-by: Chris Paterson <chris.paterson2@renesas.com>
Content copied from the foundation site:
https://foundation.kernelci.org/blog/2020/11/05/notes-from-oss-elc-europe-2020/

Signed-off-by: Chris Paterson <chris.paterson2@renesas.com>
Content copied from the foundation site:
https://foundation.kernelci.org/blog/2021/03/16/looking-back-looking-forward/

Signed-off-by: Chris Paterson <chris.paterson2@renesas.com>
Content copied from the foundation site:
https://foundation.kernelci.org/blog/2021/06/24/the-first-ever-kernelci-hackfest/

Signed-off-by: Chris Paterson <chris.paterson2@renesas.com>
@patersonc
Copy link
Collaborator Author

Please use git-lfs for the binary files, it makes it much easier to do a lightweight checkout as this repository is not only for the static website.

Done. Hopefully.

@patersonc
Copy link
Collaborator Author

BTW I don't think we actually need the hierarchy with all the months and days, the date is collected from the front matter in each post

I've got mixed feelings about this.

Whilst I agreed the hierarchy isn't essential as our output is low, I think having no hierarchy would become a bit of a mess.
Perhaps there is another directory structure we could choose, but I can't think of anything more suitable.

@gctucker
Copy link
Contributor

BTW I don't think we actually need the hierarchy with all the months and days, the date is collected from the front matter in each post

I've got mixed feelings about this.

Whilst I agreed the hierarchy isn't essential as our output is low, I think having no hierarchy would become a bit of a mess.
Perhaps there is another directory structure we could choose, but I can't think of anything more suitable.

How about just directories for each year?

@gctucker
Copy link
Contributor

Please use git-lfs for the binary files, it makes it much easier to do a lightweight checkout as this repository is not only for the static website.

Done. Hopefully.

Erm, there's a problem when checking out your branch:

HEAD is now at 33632cc8b4ac kernelci.org: post: Add "The first ever KernelCI hackfest" blog post
Encountered 13 file(s) that should have been pointers, but weren't:
	kernelci.org/content/en/blog/news/2020/08/19/kernelci-blog.png
	kernelci.org/content/en/blog/posts/2020/05/11/featured-image-blog2.png
	kernelci.org/content/en/blog/posts/2020/07/09/ci-system-usage-1024px.png
	kernelci.org/content/en/blog/posts/2020/07/09/kernelci-community-survey-report-1200x325-1.png
	kernelci.org/content/en/blog/posts/2020/07/09/reporting-1024px.png
	kernelci.org/content/en/blog/posts/2020/07/09/response-time-1024px.png
	kernelci.org/content/en/blog/posts/2020/07/09/roles-distribution-1024px.png
	kernelci.org/content/en/blog/posts/2020/07/09/upstream-contributions-1024px.png
	kernelci.org/content/en/blog/posts/2020/08/21/kcidb_object_relations.svg
	kernelci.org/content/en/blog/posts/2020/08/21/kcidb_object_submitting.gif
	kernelci.org/content/en/blog/posts/2020/08/21/patched_revision2.png
	kernelci.org/content/en/blog/posts/2020/08/21/revision1.png
	kernelci.org/content/en/blog/posts/2021/03/16/looking-back-looking-forward.png

For each binary file, you need to do git-lfs track and then git add. I guess you need to make a copy of the files and do git rm first on all of them, commit that to not have the binaries in git, then add them again with git-lfs. Let me know if this is too confusing and I'll help you out.

@gctucker
Copy link
Contributor

The git-lfs issue is causing errors on staging, so adding the staging-skip label again for now.

@gctucker gctucker mentioned this pull request Sep 16, 2021
@gctucker
Copy link
Contributor

Replaced with #52, the image files had to be added with git add as well as git-lfs track.

@patersonc
Copy link
Collaborator Author

Replaced with #52, the image files had to be added with git add as well as git-lfs track.

Oh, I thought I did do that. Maybe I missed one?

@patersonc
Copy link
Collaborator Author

How about just directories for each year?

Could do. Let me know if you want me to make the change.

@gctucker
Copy link
Contributor

PR #52 has all your changes with the "git add" fix. So I think we can close this PR #50 and get #52 merged instead, or you could take the commits from #52 and force-push to the branch used in #50 and then we'll close #52.

@patersonc
Copy link
Collaborator Author

PR #52 has all your changes with the "git add" fix. So I think we can close this PR #50 and get #52 merged instead, or you could take the commits from #52 and force-push to the branch used in #50 and then we'll close #52.

Just close this one and delete my branch :)

@gctucker
Copy link
Contributor

Alright then :)

@gctucker gctucker closed this Sep 16, 2021
@patersonc patersonc deleted the patersonc/add-blog branch September 16, 2021 20:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation staging-skip
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants