.info.ymlãã¡ã¤ã«ãä½æãã
æçµæ´æ°æ¥ 2020 å¹´ 11 æ 23 æ¥
ãã¼ããã©ã«ãã®ã«ã¼ãã« .info.yml ãã¡ã¤ã«ãä½æãã¾ãããã¼ããã©ã«ãå㯠.info.yml ãã¡ã¤ã«ã®ãã¡ã¤ã«åã¨åãååã«ããå¿ è¦ãããã¾ãããããã¼ãåã "Fluffiness" ã®å ´åããã¼ããã©ã«ãå㯠"fluffiness / " ã§ã.info.yml ãã¡ã¤ã«å㯠"fluffiness / fluffiness.info.yml" ã§ãããã® .info.yml ãã¡ã¤ã«ãåå¨ããå ´åããã®ãã¼ãã¯ã管çç»é¢ã® 管ç â>â ãã¼ãã«è¡¨ç¤ºããã¾ããã¢ã¸ã¥ã¼ã«ãå¥ã®ãã¼ãã§ã使ç¨ããã¦ããªããã¼ãåãã¤ããããã«ãã¦ãã ããããã¼ãåã¯ã1ã¤ã® Drupal ã»ããã¢ããã®ä¸ã§ãåºæã®ååã§ãªããã°ãªãã¾ãããããã§ãªãå ´åããã¼ãã³ã³ãã¼ãã³ããæ£ããèªã¿è¾¼ã¾ãã¾ããã
ãã©ã«ãåï¼ããã³ .info.yml ãã¡ã¤ã«åï¼ã«ã¹ãã¼ã¹ãããå ´åã¯ããã¼ãåã®ã¹ãã¼ã¹ãã¢ã³ãã¼ã¹ã³ã¢ã«ç½®ãæãã¾ãã
YAMLãã¡ã¤ã«ã®æ§é ã«è©³ãããªãå ´åã¯ãYAMLãã¡ã¤ã«ãã©ã¼ãããã®ç°¡åãªç´¹ä»ãèªãã§ãã ããã
- ã¿ãã¯ä½¿ç¨ã§ãã¾ãããã¹ãã¼ã¹ã®ã¿ã使ç¨ãã¦ãã ããã
- ããããã£ã¨ãªã¹ãã®ã¤ã³ãã³ãã¯ã 2 ã¹ãã¼ã¹ã«ããå¿ è¦ãããã¾ãã
ä¾ï¼
name: Fluffiness
type: theme
description: 'A cuddly theme that offers extra fluffiness.'
core: 8.x
core_version_requirement: ^8 || ^9
libraries:
- fluffiness/global-styling
base theme: classy
regions:
header: Header
content: Content
sidebar_first: 'Sidebar first'
footer: Footer
Drupalãµã¤ãå ã§ã¯ãã³ã¢ãæä¾ãããã¾ãã¾ãª .info.ymlãã¡ã¤ã«ã®ãµã³ãã«ãè¦ã¤ãããã¨ãã§ãã¾ããä¾ã¨ãã¦ã¯ãcore/themes/starkãã©ã«ãå ã® stark.info.yml ãã¡ã¤ã«ãªã©ã§ãã
ãã¼ã¨å¤ã®ãã¢
次ã®ãã¼ã¨å¤ã®ãã¢ã¯ããã¼ãã®ã¡ã¿ãã¼ã¿ãããã¤ãã®åºæ¬çãªæ©è½ãå®ç¾©ãã¾ããï¼\Drupal\Core\Extension\InfoParserInterface::parse() åç §ï¼
- name ï¼å¿ é ï¼
- type ï¼å¿ é ï¼
- description ï¼ãªãã·ã§ã³ï¼
- dependenciesï¼ãªãã·ã§ã³ï¼
- package ï¼ãªãã·ã§ã³ï¼
- core ï¼å¿ é ããã ã core_version_requirement ãå«ããå ´åã¯ãªãã·ã§ã³ï¼
- php ï¼ãªãã·ã§ã³ï¼
- version ï¼ãªãã·ã§ã³ï¼
- libraries ï¼ãªãã·ã§ã³ï¼
- libraries-override ï¼ãªãã·ã§ã³ï¼
- libraries-extend ï¼ãªãã·ã§ã³ï¼
- base theme ï¼Drupal 9 ã§å¿ é ãDrupal 8 ã§ãªãã·ã§ã³ï¼
- hidden ï¼ãªãã·ã§ã³ï¼
- engine ï¼ãªãã·ã§ã³ï¼
- logo ï¼ãªãã·ã§ã³ï¼
- screenshot ï¼ãªãã·ã§ã³ï¼
- regions ï¼ãªãã·ã§ã³ï¼
- regions_hidden ï¼ãªãã·ã§ã³ï¼
- features ï¼ãªãã·ã§ã³ï¼
- stylesheets-remove ï¼å»æ¢äºå®ï¼
- ckeditor_stylesheets ï¼ãªãã·ã§ã³ï¼
nameï¼å¿ é ï¼
ãã¥ã¼ãã³ãªã¼ããã«ãªãã¼ãã®ååãè¨å®ãã¾ããããã¯ããã¼ãããã¼ã¸ã«è¡¨ç¤ºããã¾ãã
name: Fluffiness
type ï¼å¿ é ï¼
ãã¡ã¤ã«ã§æ¡å¼µæ©è½ã®ã¿ã¤ããè¨å®ãã¾ãï¼"module", "theme", "profile" ãªã©ï¼ããã¼ãã®å ´åã¯"theme"ã«è¨å®ããå¿ è¦ãããã¾ãã
type: theme
description ï¼ãªãã·ã§ã³ï¼
ããã¼ãããã¼ã¸ã«è¡¨ç¤ºããããã¼ãã®èª¬æã§ãã
description: An extra cuddly Drupal theme available in grey and blue.
dependencies ï¼ãªãã·ã§ã³ï¼
Drupal 8.9 ã§å°å ¥ããã¾ãã
å¤æ´å±¥æ´ï¼https://www.drupal.org/node/2937955
ä¾åé¢ä¿ãè¨ããæååã®é å
dependencies:
- drupal:views
- paragraphs:paragraphs
- components:components (>=8.x-2.x)
package ï¼ãªãã·ã§ã³ï¼
ãã¼ããã°ã«ã¼ãåããããã±ã¼ã¸ãæå®ãã¾ãã
package: Core
core ï¼å¿ é ï¼
ãã¼ãã¨äºææ§ã®ããDrupal coreã®ãã¼ã¸ã§ã³ãæå®ãã¾ãã
core: 8.x
core_version_requirement ãæå®ããå ´åã¯çç¥å¯è½ã§ããã¾ããDrupal 8.7.7 ããã³ãã以ä¸ã¯ãµãã¼ããã¾ãããå¤æ´å±¥æ´ãåç §ãã¦ãã ããã
php ï¼ãªãã·ã§ã³ï¼
æä½éå¿ è¦ã¨ãããPHPã®ãã¼ã¸ã§ã³ã ããã©ã«ãã¯ãDRUPAL_MINIMUM_PHP constant ã®å¤ã«ãªãã¾ãã
php: 5.5.9
version ï¼ãªãã·ã§ã³ï¼
ãã¼ã¸ã§ã³ãæå®ãã¾ããdrupal.orgã§æä¾ããã¦ãããã¼ãã®å ´åã¯ããã¼ã¸ã§ã³çªå·ã¯ããã±ã¼ã¸ã³ã°ã¹ã¯ãªããã«ãã£ã¦èªåçã«è¨å ¥ããã¾ãã®ã§ãæåã§è¨å®ããã«ãversion ã®è¡èªä½ãå®å ¨ã«çç¥ãã¦ãã ããã
version: 8.x-1.0
ã¾ãã¯
version: '1.0'
libraries ï¼ãªãã·ã§ã³ï¼
ãã®ãã¼ããæå¹ãªãã¹ã¦ã®ãã¼ã¸ã«è¿½å ããã©ã¤ãã©ãªã®ä¸è¦§ãè¨å®ãã¾ããCSSã¢ã»ããã¨JavaScriptã¢ã»ããã®ä¸¡æ¹ãå«ããã¨ãå¯è½ã§ãã
詳ããã¯ããã¼ãã¨ã©ã¤ãã©ãªã¢ã»ããã«ã¤ãã¦ãã®ãã¼ã¸åç §ã
libraries:
- fluffiness/global-styling
libraries-override ï¼ãªãã·ã§ã³ï¼
ãªã¼ãã¼ã©ã¤ãããã©ã¤ãã©ãªã¨ã¢ã»ãããè¨å®ãã¾ãã
詳ããã¯ãã©ã¤ãã©ãªã®ãªã¼ãã¼ã©ã¤ãã¨æ¡å¼µãã®ãã¼ã¸åç §ã
libraries-override: contextual/drupal.contextual-links: css: component: /core/themes/stable/css/contextual/contextual.module.css: false
libraries-extend ï¼ãªãã·ã§ã³ï¼
ã©ã¤ãã©ãªã¼ãå ããéã®ãã©ã¤ãã©ãªã¼ãã¢ã»ããã®ä¸è¦§ã詳ããã¯ãã©ã¤ãã©ãªã¼ã®ãªã¼ãã¼ã©ã¤ãã¨æ¡å¼µãã®ãã¼ã¸ãåç §ã
libraries-extend:
core/drupal.user:
- classy/user1
- classy/user2
base theme ï¼å¿ é ï¼
ãã¼ã¹ãã¼ããæå®ããã¨ãå¥ã®ãã¼ããããªã½ã¼ã¹ãç¶æ¿ã§ãã¾ããclassy ãã¼ããã¾ã㯠stableãã¼ã ï¼ãã¼ãæå®ããã¦ããªãå ´åã¯ããã©ã«ãã§stableãã¼ããé©ç¨ããã¾ããï¼ã使ãã®ããå§ãã§ãããã¼ã¹ãã¼ããè¨å®ãããã¨ã§ããã¼ããå°æ¥ã®ã³ã¢ãã¼ãã®å¤æ´ãç¶æ¿ãããããªãã¾ãã
base theme: classy
hidden ï¼ãªãã·ã§ã³ï¼
管çç»é¢ããã®ãã¼ãã®æå¹/ç¡å¹ã®è¨å®ãã§ããªãããã«ãããã¼ãããã¼ã¸ãããã¼ããé表示ã«ãããã©ãããè¨å®ãã¾ãã
hidden: true
engine ï¼ãªãã·ã§ã³ï¼
ãã¼ãã®ãã³ãã¬ã¼ãã¨ã³ã¸ã³ãè¨å®ãã¾ããããã©ã«ã㯠"twig"ã§ãã
engine: twig
logo ï¼ãªãã·ã§ã³ï¼
8.6.xã§å°å ¥ããã¾ãã |
---|
å¤æ´å±¥æ´ï¼https://www.drupal.org/node/2939152 |
ãã¼ãã®ãã¡ã¤ã«ã«å¯¾ãããã´ã®ãã¹ãããã©ã«ãã§ã¯ãDrupalã¯ãã¼ããã©ã«ãã®ã«ã¼ãã«ãã "logo.svg"ã¨ããååã®ãã¡ã¤ã«ãæ¢ããããããã¼ãã®ãã´ã¨ãã¦ä½¿ç¨ãã¾ãã
logo: images/logo.png
screenshot ï¼ãªãã·ã§ã³ï¼
.info.ymlãã¡ã¤ã«ãåºæºã«ããã¹ã¯ãªã¼ã³ã·ã§ããç»åãã¡ã¤ã«ã¸ã®ãã¹ãè¨å®ãã¾ããã¹ã¯ãªã¼ã³ã·ã§ããç»åãã¡ã¤ã«ã¯ãå¹ ã588pixelãé«ãã438pixelã§ããã表示æã«ã¯ãå°ãããµã¤ãºã«ãªãã¾ãã ããã©ã«ãã§ã¯ããã¼ããã©ã«ãã«ã¼ãã® "screenshot.png"ãã¡ã¤ã«ã ããã¼ãããã¼ã¸ã®ãã¼ãã¤ã¡ã¼ã¸ã¨ãã¦ä½¿ç¨ãã¾ãã
screenshot: fluffiness.png
regions ï¼ãªãã·ã§ã³ï¼
ãªã¼ã¸ã§ã³ã®ãªã¹ãï¼æ³¨æï¼ãªã¼ã¸ã§ã³ãã¼ã®åã«ãããã·ã¥ â - âã¯ã¤ãã¾ããï¼ãcontentãªã¼ã¸ã§ã³ã¯å¿ é ã§ãã 詳ããã¯ãããã¼ãã«ãªã¼ã¸ã§ã³ã追å ããããã¼ã¸ãåç §ã
regions:
header: Header
content: Content
sidebar_first: 'First sidebar'
regions_hidden ï¼ãªãã·ã§ã³ï¼
ãã¼ã¹ãã¼ãããç¶æ¿ãããªã¼ã¸ã§ã³ã§ãåé¤ãããªã¼ã¸ã§ã³ããªã¹ãã§è¨å®ãã¾ãã
regions_hidden:
- sidebar_last
features ï¼ãªãã·ã§ã³ï¼
ãã¼ãã®ãè¨å®ããã¼ã¸ã§å ¬éããæ©è½ããªã¹ãã§è¨å®ãã¾ãã
features:
- comment_user_verification
- comment_user_picture
- favicon
- logo
- node_user_picture
stylesheets-remove ï¼å»æ¢äºå®ï¼
ãã®ãã¼ããæå¹ãªãã¹ã¦ã®ãã¼ã¸ã«ããã¦åé¤ãããä»ã®ãã¼ããã¢ã¸ã¥ã¼ã«ã«ç±æ¥ã®ã¹ã¿ã¤ã«ã·ã¼ãã®ä¸è¦§ãè¨å®ãã¾ããåãååãæã¤ãã¡ã¤ã«ãåå¨ããå ´åãããã®ã§ãã«ã¼ããåºæºã«ãã絶対ãã¹ã§è¨å®ãã¾ãã ãã¡ã¤ã«ããã¢ã¸ã¥ã¼ã«ã¾ãã¯ãã¼ãã§ä½¿ç¨ããã©ã¤ãã©ãªã®ä¸é¨ã®å ´åã絶対ãã¹ã§ã¯ãªããâ@â ã®å¾ã«ãã¢ã¸ã¥ã¼ã«åã¾ãã¯ã©ã¤ãã©ãªåãæ¸ãï¼ã¢ã¸ã¥ã¼ã«ã¾ãã¯ã©ã¤ãã©ãªãèªã¿è¾¼ã¿ã¾ãï¼ãã¢ã¸ã¥ã¼ã«ã¾ãã¯ã©ã¤ãã©ãªå ã®ãã¹ãè¨è¼ãã¾ãã "@"ã¯YAMLã®äºç´æ¸ã¿ã¤ã³ã¸ã±ã¼ã¿ã®ãããå¤ãå¼ç¨ç¬¦ã§å²ãå¿ è¦ãããã¾ãã
注ï¼ãã®ãã¼ã¯æ¨å¥¨ããã¦ããããDrupal 9 ã§åé¤ããã¾ããã»ã¨ãã©ã®å ´åãlibraries-override ã§è¨å®ãå¯è½ã§ãã
ckeditor_stylesheets ï¼ãªãã·ã§ã³ï¼
CKEditorã®ãã¬ã¼ã å ã«è¿½å ããã¹ã¿ã¤ã«ã·ã¼ãããªã¹ãã§è¨å®ãã¾ãã
ckeditor_stylesheets:
- https://fonts.googleapis.com/css?family=Open+Sans
- css/base/elements.css
詳ããã¯
- .Drupal ãã¼ãã«ã¹ã¿ã¤ã«ã·ã¼ãï¼CSSï¼ã¨JavaScriptï¼JSï¼ã追å ãã
- * .info.ymlãã¡ã¤ã«ã§å©ç¨å¯è½ãªãã¹ã¦ã®ãã¼ã«é¢ãã説æï¼Let Drupal 8 know about your module with a .info.yml file