Skip to content

Update README with theme content description #91

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

Merged
merged 2 commits into from
Apr 7, 2017

Conversation

ashmaroli
Copy link
Member

Add a section briefing on the various files within the theme-gem
Addresses #87

@dret
Copy link
Contributor

dret commented Dec 9, 2016

looks good to me. then there is the general issue of how to actually find these files in case you want to copy/tweak them, but that is outside the scope of this particular issue.

@ashmaroli
Copy link
Member Author

there is the general issue of how to actually find these files in case you want to copy/tweak them

That is not specific to Minima.
Besides, its already covered by Jekyll Documentation here

Copy link

@joeydong joeydong left a comment

Choose a reason for hiding this comment

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

I'm mostly nitpicking. Overall really great contribution! 👍


## Contents At-A-Glance

Choose a reason for hiding this comment

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

I wonder if we should put this after the "Customization" section https://github.com/ashmaroli/minima/blob/e00fa9508ffbf46f7c69626a5db8d13b495e34c1/README.md#customization

As a new user, I don't think I was concerned with the files and directories until I wanted to customize something specific.

Copy link
Member Author

Choose a reason for hiding this comment

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

As a new user, I don't think I was concerned with the files and directories until I wanted to customize something specific.

That's true.. but I don't feel it's right to move it 'after' the Customization section.. Start with the basics, know what's what.. then proceed to customize..


## Contents At-A-Glance

Minima has been scaffolded by the `jekyll new-theme` command and therefore has all the necessary files and directories to have a new Jekyll site up and running with zero-configuration.

Choose a reason for hiding this comment

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

What about: "Minima is scaffolded by the jekyll new-theme command"

Copy link
Member Author

Choose a reason for hiding this comment

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

Minima is scaffolded sounds like its continuously scaffolded.. like e.g. "The President is supported by his ministers.."
has been scaffolded makes it an event in the near past. e.g. "The Asset has been compromised.."


Refers to files within the `_layouts` directory, these files define the markup for your theme.

- `default.html` — The base layout that lays the foundation for subsequent layouts. The derived layouts inject their contents into this file at the line that says ` {{ content }} ` and are linked to this file via FrontMatter declaration

Choose a reason for hiding this comment

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

Maybe we can link to the FrontMatter documentation the first time we use the term: https://jekyllrb.com/docs/frontmatter/


### Includes

Refers snippets of code within the `_includes` directory that can be inserted in multiple templates within the same theme-gem

Choose a reason for hiding this comment

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

What about using the "layout" vocabulary instead of introducing "templates":

"Refers snippets of code within the _includes directory that can be inserted in multiple layouts within the same theme-gem"

Copy link
Member Author

Choose a reason for hiding this comment

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

includes can be inserted into another include as well..

- `page.html` — The layout for your documents that contain FrontMatter, but are not posts.
- `post.html` — The layout for your posts.

### Includes

Choose a reason for hiding this comment

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

Might not make sense logically but should we order "Includes" above "Layouts" to keep it alphabetical like you did for the directory contents?


Refers snippets of code within the `_includes` directory that can be inserted in multiple templates within the same theme-gem

- `disqus_comments.html` — code to markup disqus comment box.

Choose a reason for hiding this comment

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

We should stick to capitalizing the first letter (and keeping the starting dash and ending with the periods). It's a nice format.


Refers to `.scss` files within the `_sass` directory that define the theme's styles.

- `minima.scss` — the core file imported by the pre-processed `main.scss`. It defines the defaults for the theme and further imports sass partials to supplement itself.

Choose a reason for hiding this comment

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

"The core file imported by the preprocessed main.scss. This defines the variable defaults for the theme and further imports sass partials to supplement itself."

### Assets

Refers to various asset files within the `assets` directory.
Contains the `main.scss` that imports sass files from within the `_sass` directory. This `main.scss` is what gets processed into the theme's main stylesheet `main.css` called by `_layouts/default.html` via `_includes/head.html`.

Choose a reason for hiding this comment

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

Maybe we should stick to the bulleted list here in case more structural content shows up later on and just for consistency.

Copy link
Member Author

Choose a reason for hiding this comment

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

leaving as is, because assets/ in Minima contains only one file. Future additions will have to update this section as required.

@ashmaroli
Copy link
Member Author

Thank you for your feedback @joeydong. Pushed a couple of changes. 😃

@ashmaroli
Copy link
Member Author

Requesting a review from @DirtyF and anyone in @jekyll/documentation.

@parkr
Copy link
Member

parkr commented Jan 17, 2017

LGTM. @benbalter any thoughts?

@benbalter
Copy link
Contributor

Wow. Thanks for this @ashmaroli. Especially for a theme targeted at new Jekyll users, this is extremely helpful to giving them a starting point to grow, not just a website. Nice work.

@jellybot: merge +docs.

@jekyllbot jekyllbot merged commit 21d83fa into jekyll:master Apr 7, 2017
jekyllbot added a commit that referenced this pull request Apr 7, 2017
domingohui pushed a commit to domingohui/minima that referenced this pull request Apr 14, 2017
domingohui pushed a commit to domingohui/minima that referenced this pull request Apr 14, 2017
@ashmaroli ashmaroli deleted the docs branch January 29, 2018 17:43
@jekyll jekyll locked and limited conversation to collaborators Apr 29, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants