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

Hint the origin of the theme #84

Open
wants to merge 9 commits into
base: master
Choose a base branch
from

Conversation

devanshijoshi9
Copy link
Contributor

@devanshijoshi9 devanshijoshi9 commented Aug 19, 2022

Description

  • Added some description/hint regarding the theme in read me and style css file as per my understanding.

Checklist

  • Add some details in readme file
  • Add table of content in style.css file

To-do

  • Let me know if any point is missing to add in readme file.

Fixes/Covers issue

Fixes #82

@devanshijoshi9 devanshijoshi9 marked this pull request as ready for review August 24, 2022 12:18
@RahiDroid RahiDroid changed the title #82 Hint the origin of the theme Hint the origin of the theme Aug 30, 2022
robicse11127
robicse11127 previously approved these changes Dec 29, 2022
Copy link
Contributor

@robicse11127 robicse11127 left a comment

Choose a reason for hiding this comment

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

Looks Good

style.css Outdated Show resolved Hide resolved
@@ -239,6 +242,11 @@ const getAllFiles = (dir) => {
*/
const replaceFileContent = (files, chunksToReplace, newChunk) => {
files.forEach((file) => {

if(path.basename(file) === 'init.js' && (chunksToReplace === 'Blank theme' || chunksToReplace === 'underscore theme' || chunksToReplace === 'blankTheme')) {
Copy link
Contributor

Choose a reason for hiding this comment

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

If we are not supposed to make any replacement in init.js, other checks are not needed.

Suggested change
if(path.basename(file) === 'init.js' && (chunksToReplace === 'Blank theme' || chunksToReplace === 'underscore theme' || chunksToReplace === 'blankTheme')) {
if(path.basename(file) === 'init.js') {

@@ -1,4 +1,4 @@
# Copyright (C) 2021 Blank Theme
# Copyright (C) 2022 Blank Theme
Copy link
Contributor

Choose a reason for hiding this comment

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

Is this auto generated?

@@ -14,8 +14,7 @@ This theme, like WordPress, is licensed under the GPL.
Use it to make something cool, have fun, and share what
you've learned with others.

Blank Theme is based on Underscores http://underscores.me/, (C) 2012-2015 Automattic, Inc.
Underscores is distributed under the terms of the GNU GPL v2 or later.
Blank Theme is based on Blank theme https://github.com/rtCamp/blankTheme
Copy link
Contributor

Choose a reason for hiding this comment

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

Blank Theme is also distributed under the same license, want to retain the license string.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Hint the origin of the theme
4 participants