forked from mirror/_s
commit
58de244dfb
|
@ -27,8 +27,8 @@ By contributing code to `_s`, you grant its use under the [GNU General Public Li
|
||||||
|
|
||||||
## Underscores.me
|
## Underscores.me
|
||||||
|
|
||||||
If your issue is specific to the [Underscores.me](http://underscores.me) website, the [Underscores.me GitHub repo](https://github.com/Automattic/underscores.me) is the right place for you.
|
If your issue is specific to the [Underscores.me](https://underscores.me) website, the [Underscores.me GitHub repo](https://github.com/Automattic/underscores.me) is the right place for you.
|
||||||
|
|
||||||
The preferred method of generating a new theme based on `_s` is the [Underscores.me](http://underscores.me) website. If you have an alternative method, such as a shell script, write a blog post about it or host it in a separate repo -- and make sure to mention [@underscoresme](https://twitter.com/underscoresme) in your tweets!
|
The preferred method of generating a new theme based on `_s` is the [Underscores.me](https://underscores.me) website. If you have an alternative method, such as a shell script, write a blog post about it or host it in a separate repo -- and make sure to mention [@underscoresme](https://twitter.com/underscoresme) in your tweets!
|
||||||
|
|
||||||
Want to have your avatar listed as one of the `_s` contributors [here](http://underscores.me/#contribute)? Just make sure you have an email address added to both GitHub and your local Git installation.
|
Want to have your avatar listed as one of the `_s` contributors [here](https://underscores.me/#contribute)? Just make sure you have an email address added to both GitHub and your local Git installation.
|
12
.travis.yml
12
.travis.yml
|
@ -5,17 +5,17 @@
|
||||||
# @link https://github.com/Automattic/_s
|
# @link https://github.com/Automattic/_s
|
||||||
|
|
||||||
# Ditch sudo and use containers.
|
# Ditch sudo and use containers.
|
||||||
# @link http://docs.travis-ci.com/user/migrating-from-legacy/#Why-migrate-to-container-based-infrastructure%3F
|
# @link https://docs.travis-ci.com/user/migrating-from-legacy/#Why-migrate-to-container-based-infrastructure%3F
|
||||||
# @link http://docs.travis-ci.com/user/workers/container-based-infrastructure/#Routing-your-build-to-container-based-infrastructure
|
# @link https://docs.travis-ci.com/user/workers/container-based-infrastructure/#Routing-your-build-to-container-based-infrastructure
|
||||||
sudo: false
|
sudo: false
|
||||||
dist: trusty
|
dist: trusty
|
||||||
|
|
||||||
# Declare project language.
|
# Declare project language.
|
||||||
# @link http://about.travis-ci.org/docs/user/languages/php/
|
# @link https://about.travis-ci.org/docs/user/languages/php/
|
||||||
language: php
|
language: php
|
||||||
|
|
||||||
# Declare versions of PHP to use. Use one decimal max.
|
# Declare versions of PHP to use. Use one decimal max.
|
||||||
# @link http://docs.travis-ci.com/user/build-configuration/
|
# @link https://docs.travis-ci.com/user/build-configuration/
|
||||||
matrix:
|
matrix:
|
||||||
fast_finish: true
|
fast_finish: true
|
||||||
|
|
||||||
|
@ -80,12 +80,12 @@ script:
|
||||||
- if [[ "$SNIFF" == "1" ]]; then jscs .; fi
|
- if [[ "$SNIFF" == "1" ]]; then jscs .; fi
|
||||||
# WordPress Coding Standards.
|
# WordPress Coding Standards.
|
||||||
# @link https://github.com/WordPress-Coding-Standards/WordPress-Coding-Standards
|
# @link https://github.com/WordPress-Coding-Standards/WordPress-Coding-Standards
|
||||||
# @link http://pear.php.net/package/PHP_CodeSniffer/
|
# @link https://pear.php.net/package/PHP_CodeSniffer/
|
||||||
# Uses a custom ruleset based on WordPress. This ruleset is automatically
|
# Uses a custom ruleset based on WordPress. This ruleset is automatically
|
||||||
# picked up by PHPCS as it's named `phpcs.xml(.dist)`.
|
# picked up by PHPCS as it's named `phpcs.xml(.dist)`.
|
||||||
- if [[ "$SNIFF" == "1" ]]; then $PHPCS_DIR/scripts/phpcs; fi
|
- if [[ "$SNIFF" == "1" ]]; then $PHPCS_DIR/scripts/phpcs; fi
|
||||||
|
|
||||||
# Receive notifications for build results.
|
# Receive notifications for build results.
|
||||||
# @link http://docs.travis-ci.com/user/notifications/#Email-notifications
|
# @link https://docs.travis-ci.com/user/notifications/#Email-notifications
|
||||||
notifications:
|
notifications:
|
||||||
email: false
|
email: false
|
||||||
|
|
|
@ -20,13 +20,13 @@ My ultra-minimal CSS might make me look like theme tartare but that means less s
|
||||||
Getting Started
|
Getting Started
|
||||||
---------------
|
---------------
|
||||||
|
|
||||||
If you want to keep it simple, head over to http://underscores.me and generate your `_s` based theme from there. You just input the name of the theme you want to create, click the "Generate" button, and you get your ready-to-awesomize starter theme.
|
If you want to keep it simple, head over to https://underscores.me and generate your `_s` based theme from there. You just input the name of the theme you want to create, click the "Generate" button, and you get your ready-to-awesomize starter theme.
|
||||||
|
|
||||||
If you want to set things up manually, download `_s` from GitHub. The first thing you want to do is copy the `_s` directory and change the name to something else (like, say, `megatherium-is-awesome`), and then you'll need to do a five-step find and replace on the name in all the templates.
|
If you want to set things up manually, download `_s` from GitHub. The first thing you want to do is copy the `_s` directory and change the name to something else (like, say, `megatherium-is-awesome`), and then you'll need to do a five-step find and replace on the name in all the templates.
|
||||||
|
|
||||||
1. Search for `'_s'` (inside single quotations) to capture the text domain.
|
1. Search for `'_s'` (inside single quotations) to capture the text domain.
|
||||||
2. Search for `_s_` to capture all the function names.
|
2. Search for `_s_` to capture all the function names.
|
||||||
3. Search for `Text Domain: _s` in style.css.
|
3. Search for `Text Domain: _s` in `style.css`.
|
||||||
4. Search for <code> _s</code> (with a space before it) to capture DocBlocks.
|
4. Search for <code> _s</code> (with a space before it) to capture DocBlocks.
|
||||||
5. Search for `_s-` to capture prefixed handles.
|
5. Search for `_s-` to capture prefixed handles.
|
||||||
|
|
||||||
|
@ -34,7 +34,7 @@ OR
|
||||||
|
|
||||||
1. Search for: `'_s'` and replace with: `'megatherium-is-awesome'`
|
1. Search for: `'_s'` and replace with: `'megatherium-is-awesome'`
|
||||||
2. Search for: `_s_` and replace with: `megatherium_is_awesome_`
|
2. Search for: `_s_` and replace with: `megatherium_is_awesome_`
|
||||||
3. Search for: `Text Domain: _s` and replace with: `Text Domain: megatherium-is-awesome` in style.css.
|
3. Search for: `Text Domain: _s` and replace with: `Text Domain: megatherium-is-awesome` in `style.css`.
|
||||||
4. Search for: <code> _s</code> and replace with: <code> Megatherium_is_Awesome</code>
|
4. Search for: <code> _s</code> and replace with: <code> Megatherium_is_Awesome</code>
|
||||||
5. Search for: `_s-` and replace with: `megatherium-is-awesome-`
|
5. Search for: `_s-` and replace with: `megatherium-is-awesome-`
|
||||||
|
|
||||||
|
|
|
@ -140,7 +140,7 @@ msgid "_s"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#. Theme URI of the plugin/theme
|
#. Theme URI of the plugin/theme
|
||||||
msgid "http://underscores.me/"
|
msgid "https://underscores.me/"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#. Description of the plugin/theme
|
#. Description of the plugin/theme
|
||||||
|
@ -156,7 +156,7 @@ msgid "Automattic"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#. Author URI of the plugin/theme
|
#. Author URI of the plugin/theme
|
||||||
msgid "http://automattic.com/"
|
msgid "https://automattic.com/"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: comments.php:40
|
#: comments.php:40
|
||||||
|
|
|
@ -34,5 +34,5 @@ _s includes support for Infinite Scroll in Jetpack.
|
||||||
|
|
||||||
== Credits ==
|
== Credits ==
|
||||||
|
|
||||||
* Based on Underscores http://underscores.me/, (C) 2012-2017 Automattic, Inc., [GPLv2 or later](https://www.gnu.org/licenses/gpl-2.0.html)
|
* Based on Underscores https://underscores.me/, (C) 2012-2017 Automattic, Inc., [GPLv2 or later](https://www.gnu.org/licenses/gpl-2.0.html)
|
||||||
* normalize.css http://necolas.github.io/normalize.css/, (C) 2012-2016 Nicolas Gallagher and Jonathan Neal, [MIT](http://opensource.org/licenses/MIT)
|
* normalize.css https://necolas.github.io/normalize.css/, (C) 2012-2016 Nicolas Gallagher and Jonathan Neal, [MIT](https://opensource.org/licenses/MIT)
|
||||||
|
|
|
@ -4,7 +4,7 @@ html {
|
||||||
|
|
||||||
*,
|
*,
|
||||||
*:before,
|
*:before,
|
||||||
*:after { /* Inherit box-sizing to make it easier to change the property for components that leverage other behavior; see http://css-tricks.com/inheriting-box-sizing-probably-slightly-better-best-practice/ */
|
*:after { /* Inherit box-sizing to make it easier to change the property for components that leverage other behavior; see https://css-tricks.com/inheriting-box-sizing-probably-slightly-better-best-practice/ */
|
||||||
box-sizing: inherit;
|
box-sizing: inherit;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -1,8 +1,8 @@
|
||||||
/*!
|
/*!
|
||||||
Theme Name: _s
|
Theme Name: _s
|
||||||
Theme URI: http://underscores.me/
|
Theme URI: https://underscores.me/
|
||||||
Author: Automattic
|
Author: Automattic
|
||||||
Author URI: http://automattic.com/
|
Author URI: https://automattic.com/
|
||||||
Description: Hi. I'm a starter theme called <code>_s</code>, or <em>underscores</em>, if you like. I'm a theme meant for hacking so don't use me as a <em>Parent Theme</em>. Instead try turning me into the next, most awesome, WordPress theme out there. That's what I'm here for.
|
Description: Hi. I'm a starter theme called <code>_s</code>, or <em>underscores</em>, if you like. I'm a theme meant for hacking so don't use me as a <em>Parent Theme</em>. Instead try turning me into the next, most awesome, WordPress theme out there. That's what I'm here for.
|
||||||
Version: 1.0.0
|
Version: 1.0.0
|
||||||
License: GNU General Public License v2 or later
|
License: GNU General Public License v2 or later
|
||||||
|
@ -13,11 +13,11 @@ Tags: custom-background, custom-logo, custom-menu, featured-images, threaded-com
|
||||||
This theme, like WordPress, is licensed under the GPL.
|
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.
|
Use it to make something cool, have fun, and share what you've learned with others.
|
||||||
|
|
||||||
_s is based on Underscores http://underscores.me/, (C) 2012-2016 Automattic, Inc.
|
_s is based on Underscores https://underscores.me/, (C) 2012-2016 Automattic, Inc.
|
||||||
Underscores is distributed under the terms of the GNU GPL v2 or later.
|
Underscores is distributed under the terms of the GNU GPL v2 or later.
|
||||||
|
|
||||||
Normalizing styles have been helped along thanks to the fine work of
|
Normalizing styles have been helped along thanks to the fine work of
|
||||||
Nicolas Gallagher and Jonathan Neal http://necolas.github.io/normalize.css/
|
Nicolas Gallagher and Jonathan Neal https://necolas.github.io/normalize.css/
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/*--------------------------------------------------------------
|
/*--------------------------------------------------------------
|
||||||
|
|
10
style.css
10
style.css
|
@ -1,8 +1,8 @@
|
||||||
/*!
|
/*!
|
||||||
Theme Name: _s
|
Theme Name: _s
|
||||||
Theme URI: http://underscores.me/
|
Theme URI: https://underscores.me/
|
||||||
Author: Automattic
|
Author: Automattic
|
||||||
Author URI: http://automattic.com/
|
Author URI: https://automattic.com/
|
||||||
Description: Hi. I'm a starter theme called <code>_s</code>, or <em>underscores</em>, if you like. I'm a theme meant for hacking so don't use me as a <em>Parent Theme</em>. Instead try turning me into the next, most awesome, WordPress theme out there. That's what I'm here for.
|
Description: Hi. I'm a starter theme called <code>_s</code>, or <em>underscores</em>, if you like. I'm a theme meant for hacking so don't use me as a <em>Parent Theme</em>. Instead try turning me into the next, most awesome, WordPress theme out there. That's what I'm here for.
|
||||||
Version: 1.0.0
|
Version: 1.0.0
|
||||||
License: GNU General Public License v2 or later
|
License: GNU General Public License v2 or later
|
||||||
|
@ -13,11 +13,11 @@ Tags: custom-background, custom-logo, custom-menu, featured-images, threaded-com
|
||||||
This theme, like WordPress, is licensed under the GPL.
|
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.
|
Use it to make something cool, have fun, and share what you've learned with others.
|
||||||
|
|
||||||
_s is based on Underscores http://underscores.me/, (C) 2012-2016 Automattic, Inc.
|
_s is based on Underscores https://underscores.me/, (C) 2012-2016 Automattic, Inc.
|
||||||
Underscores is distributed under the terms of the GNU GPL v2 or later.
|
Underscores is distributed under the terms of the GNU GPL v2 or later.
|
||||||
|
|
||||||
Normalizing styles have been helped along thanks to the fine work of
|
Normalizing styles have been helped along thanks to the fine work of
|
||||||
Nicolas Gallagher and Jonathan Neal http://necolas.github.io/normalize.css/
|
Nicolas Gallagher and Jonathan Neal https://necolas.github.io/normalize.css/
|
||||||
*/
|
*/
|
||||||
/*--------------------------------------------------------------
|
/*--------------------------------------------------------------
|
||||||
>>> TABLE OF CONTENTS:
|
>>> TABLE OF CONTENTS:
|
||||||
|
@ -333,7 +333,7 @@ html {
|
||||||
*,
|
*,
|
||||||
*:before,
|
*:before,
|
||||||
*:after {
|
*:after {
|
||||||
/* Inherit box-sizing to make it easier to change the property for components that leverage other behavior; see http://css-tricks.com/inheriting-box-sizing-probably-slightly-better-best-practice/ */
|
/* Inherit box-sizing to make it easier to change the property for components that leverage other behavior; see https://css-tricks.com/inheriting-box-sizing-probably-slightly-better-best-practice/ */
|
||||||
box-sizing: inherit;
|
box-sizing: inherit;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Reference in New Issue