-
Notifications
You must be signed in to change notification settings - Fork 109
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
Trial on Ecosystem v0.2 #111
Comments
… script from experience upgrading ecosystem in #111.
Have started to make progress on this. |
Created an upgrade script and documented in https://flowershow.app/docs/upgrade |
Current steps (for MDX.js in tasks) on upgrading a nextjs site that already uses contentlayer before doing
after doing
|
I don't get this quite. can you explain more. |
After renaming |
@khalilcodes this seems really weird to me. How would it create a |
@rufuspollock pushed
changes to flowershow for ecosystem:
could not resolve:
TODO:
|
@khalilcodes very good summary. can you move the key stuff up into the description and also chat with @olayway especially about the mdx import stuff that does not work. |
Tbh, I'm not really sure why we are testing it all this way 😅 (but probably it's because I haven't been working on it with you @khalilcodes and @rufuspollock, so please take it all with a grain of salt). So, it looks to me that we're trying to convert a site that was not really built with Flowershow into a Flowershow one, and it seems to me it's doomed to have a lot of issues every time we do this (probably less and less, but still..). My question is (I know it may be a silly one): Why don't we try creating Ecosystem site starting from the fresh Flowershow template and slowly adding everything from the original Ecosystem site (just as if some user would like to create if from scratch with Flowershow)? And actually having Flowershow template (e.g. inside Another example:
I think, in order to learn something by doing this "upgrade" and actually improving Flowershow, instead of adjusting Ecosystem's |
It was kind of built with it - we did a big refactor in july to use flowershow v0.1 so this is an upgrade. the issue then is we didn't have mdx components working. Re moving stuff into .flowershow: it doesn't really change anything here. The real issue is that ecosystem is a full nextjs site, not a pure one - i.e. i believe it has customized contentlayer. that said it is a good experience IMO to try this.
👍 i said this to @khalilcodes on the call the other day. This is exactly right approach IMO on this point. |
Why do we need to do this? can't we just symlink the relevant folder over into public for now? |
thanks @olayway for the insight and yes you are right that me and @rufuspollock have more context here since we have been working on the ecosystem from scratch. My approach here is actually more user centric, and I believe my goal here is to find the bugs (and blockages that user would face while installing flowershow), rather than trying to make things just work. And since I have more context here, I guess I am able to figure out more clearly the approach whether new or existing. I'm sure once thing's look good to go here our next step would be to try it on a completely new one which would be just the obsidian folder. I suggest let's just look at this as a testing ground for a project that includes a lot of custom things. On that note, what I found yesterday while working on the dark/light theme configuration is that I have not correctly implemented it in flowershow. For eg. what if the user just wants to change the theme and not the icon. Configuring this would result in bugs for the the theme toggle not rendering at all if I did as below. const config = {
// if I do this in config.js then siteConfig.js is overriden and
// it wont have the themeToggle icon svg in the config
theme: {
default: 'light'
}
} A better way to handle this would to extract them out separately and not keep it in an object. // in siteConfig.js
const config = {
defaultTheme: 'light'.
themeToggleIcon: '...'
} Also, what if a user doesn't want a theme toggle at all (as in ecosystem site).
As mentioned above, I was going more towards how a user would have it, but for now if that's not our need and we have the required info on it, I can just symlink the relevant folder. |
Remaining:
|
@khalilcodes, @rufuspollock it seems importing components that depend on external packages doesn't work indeed 😞 I believe it has to do with Contentlayer's configuration/usage of You can also test it yourself. I've added relevant tests to I think we should also get acquainted with Contentlayer's source code sometime, and also with the docs of |
@khalilcodes as for the two errors related to importing
From what I've learned, |
@olayway also re crypto - that was just used for layout-hack and probably other ways to solve this. |
Ok, very good to know. Can we open an issue here to track this as it is important thing to track going forward. |
@khalilcodes @olayway is this now closable? If so can we update acceptance with a bit of detail and mark as fixed. Also did we get to use the new components approach we want so we don't have to mess with core flowershow? |
This should have been closed already. Not sure about the components approach though. |
@olayway ok, i think doing the refactoring to use the proper component setup is the last key step. Can we check with @khalilcodes whether this got done and if not can we do this? |
This is blocked on refactor to use components properly now that we know how to do so from #157 |
Changes for importing custom components in ecosystem
All components imported directly in the markdown file now work. Next Actions:
|
@khalilcodes did this get done friday? is ecosystem stuff now merged and we can close this? |
@rufuspollock This has been blocked again as the build is failing life-itself/second-renaissance#91 import of orgs/profiles from "contentlayer/generated" in markdown (which is done in component) fails as the content is not yet generated |
This is done! 🧟🧨 |
… upgrade script from experience upgrading ecosystem in datopian#111.
… script from experience upgrading ecosystem in #111.
… script from experience upgrading ecosystem in #111.
… script from experience upgrading ecosystem in #111.
… script from experience upgrading ecosystem in #111.
This is also a chance to trial out a sort of upgrade.
Acceptance
Key back-ported features ✅ 2022-09-14
navbarTitle
attribute withlogo, text, version
options. ✅ FIXED set values with navbarTitle attribute in user's configLearnings
Upgrading Flowershow on a site that uses contentlayer
To address:
Tasks
upgrade.sh
inpackages/flowershow
Fixes to flowershow round 1
nextSeo
being defined but it is not in default config setupcomponents/MDX.js (39:14) @ MdxPage
siteConfig.js
remove commented out nextSeo stuff (since commented out so just noise)MDX.js
✅ 2022-08-31svg: props => <Fragment {...props} />
Nav.js
We have hard-coded github icon but that should be optional ✅ 2022-08-31compontents/TempCallout.js
olayway: this one is a temporary substitution for callouts that we're not supporting yet, I use it in docs to wrap some important info in a nice border; it will be removed once we support calloutsmaxWidth
mod to tailwindconfig.js - good to have a comment in code for this 94e16ce#r82529574 ✅ 2022-08-31components
object in MDX file - I've just removed both of them and created an issue to remember to add this info about global props/components to our docs Make (site) config and page frontmatter available as variables in a given page #155siteConfig.js
MDX.js
Fixes in ecosystem Round 2
content/assets/images
(skip profile images for now) ❌2022-09-08 not required IMO - just symlink the public stuff you need into public ✅ 2022-09-12Remaining in ecosystem Round 3
public/_flowershow
folder for flowershow assets (logo and theme button)pages/[slug...].js
Results round 2
Results round 1
The text was updated successfully, but these errors were encountered: