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

[GPT-1] chore: update read me #197

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

[GPT-1] chore: update read me #197

wants to merge 1 commit into from

Conversation

soloplxya
Copy link
Member

  • Includes more information regarding
    • Folder structure
    • Key technologies used

@soloplxya soloplxya requested review from a team and wei2912 and removed request for a team December 10, 2022 05:03
@soloplxya soloplxya added the Documentation Improvements or additions to documentation label Dec 10, 2022
@soloplxya soloplxya self-assigned this Dec 10, 2022
Copy link
Member

@wei2912 wei2912 left a comment

Choose a reason for hiding this comment

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

Generally LGTM in terms of content, but needs a few more changes/corrections.

- Partials
- The Partial folder contains reusable template components that can be used by other templates. These reusable template components serve to simplify the development process as we can reuse similar template components without having to code them from scrtch all over again.
- Handlebar Files (`.hbs`)
- Handlebars can be though of as a **language** that is used to construct template components. There are various other similar templating languages, some that you might be familiar with (for eg. `jsx` files (in React) or `html` files).
Copy link
Member

Choose a reason for hiding this comment

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

Did you mean something other than html files?


This purpose of this section is to help developers to gain a more comprehensive understanding regarding the different components that are needed for ghost development.

- Partials
Copy link
Member

Choose a reason for hiding this comment

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

Would be good to include the exact path here (and perhaps refer to the folder as partials/ everywhere, rather than naming it, just to be clear)

This purpose of this section is to help developers to gain a more comprehensive understanding regarding the different components that are needed for ghost development.

- Partials
- The Partial folder contains reusable template components that can be used by other templates. These reusable template components serve to simplify the development process as we can reuse similar template components without having to code them from scrtch all over again.
Copy link
Member

Choose a reason for hiding this comment

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

This line here seems a bit redundant (also "scratch" was misspelled)

- Handlebar Files (`.hbs`)
- Handlebars can be though of as a **language** that is used to construct template components. There are various other similar templating languages, some that you might be familiar with (for eg. `jsx` files (in React) or `html` files).
- Ghost themes uses Handlebars for their templating language, and also includes some additional features such as layout and partials.
- Handlebar files can also be easily customized through modifications of the custom theme settings in the `package.json` file placed at the root directory of the project.
Copy link
Member

Choose a reason for hiding this comment

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

Do you think it'd be useful to elaborate on this? As far as I know the theme settings haven't been documented anywhere and I think it's not clear to new devs how those settings work (iirc they also show up in the Ghost design panel).

- Handlebars can be though of as a **language** that is used to construct template components. There are various other similar templating languages, some that you might be familiar with (for eg. `jsx` files (in React) or `html` files).
- Ghost themes uses Handlebars for their templating language, and also includes some additional features such as layout and partials.
- Handlebar files can also be easily customized through modifications of the custom theme settings in the `package.json` file placed at the root directory of the project.
- Static Folder
Copy link
Member

Choose a reason for hiding this comment

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

Use exact path as mentioned above with partials.

- Static Folder
- The static Folder contains files that do not change when the application is running. As such, they are not required to be rendered dynamically.
- Some examples of what can be stored in the static folder include:
- Scripts (`.js)
Copy link
Member

Choose a reason for hiding this comment

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

Missing backtick here

- Build process
- What is the difference between `npm run dev` and `npm run start`?
- `npm run dev` is used to run or view the application worked on while in development mode. When developing new features, this would be the more appropriate build command to use - as it renders changes onto your local build without having you to restart the server.
- `npm run start` is used to run the application in production mode. Changes made to the code base will not be reflected on the website when production mode is used.
Copy link
Member

Choose a reason for hiding this comment

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

I think the command is usually npm start, and it doesn't actually work since we don't have a start script in this repository. Here's the list of scripts:

image

Perhaps we could list out the scripts that are available and briefly explain what they do. As for npm start, it would be good to clarify that while we can start the build process with npm run dev, unlike with Create React App this does not open up a server for development changes, and one will have to run Ghost (along with the speedy development setup) or simply do npm run zip and upload the theme to see changes.

Comment on lines +84 to +88
## Key Technologies that you might want to read up on

- TailWind CSS (https://tailwindcss.com/docs/installation)
- Handlebars (https://handlebarsjs.com/guide/)
- Javascript (https://developer.mozilla.org/en-US/docs/Web/JavaScript)
Copy link
Member

Choose a reason for hiding this comment

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

This bit can be incorporated into the above (maybe just link to Tailwind and Handlebars)

Copy link
Member

@wei2912 wei2912 Mar 25, 2023

Choose a reason for hiding this comment

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

Explain in prose what we use these for, and point out to use the Ghost variant of Handlebars

Copy link

@BenitaWZX BenitaWZX left a comment

Choose a reason for hiding this comment

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

please change embedded link from the latest Node.js version to that of v16 link: https://nodejs.org/en/blog/release/v16.16.0/

Copy link
Member

@wei2912 wei2912 left a comment

Choose a reason for hiding this comment

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

Other things to do:

  1. Standardise Contributing section with [MPT-22] README update mentorship-page#548
  2. Change "Folder Structure" to "Project Structure", place a section for "Project Architecture" before this section explaining briefly how Ghost works (static site generator architecture/JAMstack and how it differs from WordPress) and what the theme files does
  3. Explain briefly how to create custom pages in the theme and how to make them appear on Ghost
  4. Remove PostCSS section and copyright (but not the actual LICENSE)

@wei2912 wei2912 added the linear label May 13, 2023
@wei2912 wei2912 linked an issue May 13, 2023 that may be closed by this pull request
@wei2912 wei2912 changed the title chore: update read me [GPT-1] chore: update read me May 13, 2023
@wei2912 wei2912 removed the linear label May 13, 2023
@wei2912
Copy link
Member

wei2912 commented May 15, 2023

Would be good to add some supplementary info on Tailwind and Alpine.js (just a few lines of summary), and also linking to Tailwind component resources.

@wei2912
Copy link
Member

wei2912 commented Jul 15, 2023

Also add details on importing content from existing website.

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
Projects
Status: Review in Progress
Development

Successfully merging this pull request may close these issues.

[GPT-1] README.md: Document Tailwind CSS usage
3 participants