├── .gitignore ├── book ├── api │ ├── react-children.html │ ├── react-element.html │ ├── react-structure.html │ └── react.html ├── commit-phase │ ├── commit-all-host-effects.html │ ├── commit-all-lifecycles.html │ ├── commit-root.html │ ├── commitBeforeMutationLifecycles.html │ ├── host-effects │ │ ├── CommitDeletion.html │ │ ├── CommitPlacement.html │ │ └── CommitWork.html │ └── invokeGuardedCallback.html ├── features │ ├── Suspense-component.html │ ├── context.html │ ├── event-bind.html │ ├── event-create-event-object.html │ ├── event-dispatch.html │ ├── event-injection.html │ ├── hydrate.html │ ├── ref.html │ ├── suspense-lazy.html │ └── suspense.html ├── flow │ ├── begin-work.html │ ├── begin-work │ │ ├── mount-indeterminate-component.html │ │ ├── mount-lazy-component.html │ │ ├── update-class-component.html │ │ ├── update-context-consumer.html │ │ ├── update-context-provider.html │ │ ├── update-forward-ref.html │ │ ├── update-fragment.html │ │ ├── update-functional-component.html │ │ ├── update-host-component.html │ │ ├── update-host-root.html │ │ ├── update-host-text.html │ │ ├── update-mode.html │ │ ├── update-portal-component.html │ │ └── update-profiler.html │ ├── perform-unit-of-work.html │ ├── perform-work.html │ ├── reconcile-children.html │ ├── reconcile-children │ │ ├── array.html │ │ └── single.html │ ├── render-root.html │ ├── render-root │ │ └── throw-exception.html │ ├── schedule-work.html │ ├── scheduler-global.html │ └── scheduler-pkg.html ├── hooks │ ├── hooks-common.html │ ├── hooks-others.html │ ├── hooks-start.html │ ├── hooks-use-effect.html │ └── hooks-use-state.html └── update │ ├── expiration-time.html │ ├── react-dom-render.html │ └── set-state.html ├── gitbook ├── fonts │ └── fontawesome │ │ ├── FontAwesome.otf │ │ ├── fontawesome-webfont.eot │ │ ├── fontawesome-webfont.svg │ │ ├── fontawesome-webfont.ttf │ │ ├── fontawesome-webfont.woff │ │ └── fontawesome-webfont.woff2 ├── gitbook-plugin-fontsettings │ ├── fontsettings.js │ └── website.css ├── gitbook-plugin-highlight │ ├── ebook.css │ └── website.css ├── gitbook-plugin-lunr │ ├── lunr.min.js │ └── search-lunr.js ├── gitbook-plugin-search │ ├── lunr.min.js │ ├── search-engine.js │ ├── search.css │ └── search.js ├── gitbook-plugin-sharing │ └── buttons.js ├── gitbook-plugin-theme-api │ ├── theme-api.css │ └── theme-api.js ├── gitbook.js ├── images │ ├── apple-touch-icon-precomposed-152.png │ ├── batchedUpdates.png │ ├── element-fiber-update-ReactElementTree.png │ ├── favicon.ico │ ├── fiber-tree.png │ ├── finalizeInitialChidren.png │ ├── finalizeInitialChildren.png │ ├── hooks-struct.png │ ├── placeholder.png │ ├── react-children-map.png │ ├── react-commit-deletion.png │ ├── react-expiration-time-demo-simple.png │ ├── react-hooks.png │ ├── react-scheduler-frame-Page-1.png │ ├── scheduler-fiber-scheduler.png │ └── work-loop.png ├── style.css └── theme.js ├── google06a3a8e2d08a4bf2.html ├── index.html ├── publish.sh ├── search_index.json └── styles └── website.css /.gitignore: -------------------------------------------------------------------------------- 1 | node_modules 2 | _book 3 | .vscode -------------------------------------------------------------------------------- /book/flow/begin-work/update-forward-ref.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | updateForwardRef · React源码解析 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | 46 | 47 | 48 | 49 | 50 | 51 | 52 | 53 | 54 | 55 | 56 | 57 | 58 | 59 | 60 | 61 | 62 | 63 | 64 | 65 | 66 | 67 | 68 | 69 | 70 | 71 | 72 | 76 | 85 | 86 | 87 | 88 | 89 |
90 |
91 | 92 | 93 | 96 | 97 | 98 | 1015 | 1016 | 1017 |
1018 | 1019 |
1020 | 1021 |
1022 | 1023 | 1024 | 1025 | 1034 | 1035 | 1036 | 1037 | 1038 |
1039 |
1040 | 1041 | 1042 |
1043 |
1044 | 1045 |
1046 | 1047 |

updateForwardRef

1048 |

ForwardRef是通过React.forwardRef创建的,详细的请看forwardRef

1049 |
function updateForwardRef(
1050 |   current: Fiber | null,
1051 |   workInProgress: Fiber,
1052 |   type: any,
1053 |   nextProps: any,
1054 |   renderExpirationTime: ExpirationTime,
1055 | ) {
1056 |   const render = type.render;
1057 |   const ref = workInProgress.ref;
1058 |   if (hasLegacyContextChanged()) {
1059 |     // Normally we can bail out on props equality but if context has changed
1060 |     // we don't do the bailout and we have to reuse existing props instead.
1061 |   } else if (workInProgress.memoizedProps === nextProps) {
1062 |     const currentRef = current !== null ? current.ref : null;
1063 |     if (ref === currentRef) {
1064 |       return bailoutOnAlreadyFinishedWork(
1065 |         current,
1066 |         workInProgress,
1067 |         renderExpirationTime,
1068 |       );
1069 |     }
1070 |   }
1071 | 
1072 |   let nextChildren;
1073 |   if (__DEV__) {
1074 |     ReactCurrentOwner.current = workInProgress;
1075 |     ReactCurrentFiber.setCurrentPhase('render');
1076 |     nextChildren = render(nextProps, ref);
1077 |     ReactCurrentFiber.setCurrentPhase(null);
1078 |   } else {
1079 |     nextChildren = render(nextProps, ref);
1080 |   }
1081 | 
1082 |   reconcileChildren(
1083 |     current,
1084 |     workInProgress,
1085 |     nextChildren,
1086 |     renderExpirationTime,
1087 |   );
1088 |   memoizeProps(workInProgress, nextProps);
1089 |   return workInProgress.child;
1090 | }
1091 | 
1092 |
1093 | 1094 |
1095 | 1096 |
1097 |
1098 |
1099 | 1100 |

results matching ""

1101 |
    1102 | 1103 |
    1104 |
    1105 | 1106 |

    No results matching ""

    1107 | 1108 |
    1109 |
    1110 |
    1111 | 1112 |
    1113 | Jokcy的二维码 1118 |

    1119 | 扫码添加Jokcy,更多更新更优质的前端学习内容不断更新中,期待与你一起成长! 1120 |

    1121 |
    1122 |
    1123 | 1126 | Jokcy的二维码 1131 |
    1132 | 1133 | 1152 | 1153 |
    1154 |
    1155 | 1156 |
    1157 | 1176 | 1182 | 1183 |
    1184 | 1185 | 1186 | 1187 | 1188 |
    1189 | 1190 | 1196 |
    1197 | 1198 | 1199 | 1200 | 1201 | 1202 | 1203 | 1204 | 1205 | 1206 | 1207 | 1208 | 1209 | 1210 | 1211 | 1212 | 1213 | 1214 | 1215 | 1216 | 1217 | 1218 | 1219 | 1220 | 1221 | 1222 | 1223 | 1224 | 1225 | 1226 | 1227 | 1228 | 1229 | 1230 | 1231 | 1232 | 1233 | 1234 | -------------------------------------------------------------------------------- /book/flow/begin-work/update-host-text.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | updateHostText · React源码解析 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | 46 | 47 | 48 | 49 | 50 | 51 | 52 | 53 | 54 | 55 | 56 | 57 | 58 | 59 | 60 | 61 | 62 | 63 | 64 | 65 | 66 | 67 | 68 | 69 | 70 | 71 | 72 | 76 | 85 | 86 | 87 | 88 | 89 |
    90 |
    91 | 92 | 93 | 96 | 97 | 98 | 1015 | 1016 | 1017 |
    1018 | 1019 |
    1020 | 1021 |
    1022 | 1023 | 1024 | 1025 | 1034 | 1035 | 1036 | 1037 | 1038 |
    1039 |
    1040 | 1041 | 1042 |
    1043 |
    1044 | 1045 |
    1046 | 1047 |

    updateHostText

    1048 |

    这个就简单了

    1049 |

    tryToClaimNextHydratableInstance是进行hydrate的操作,也就是复用原本存在的root的内部的DOM节点,详细可以看这里

    1050 |

    因为是文字节点,也就不需要reconcileChildren

    1051 |
    function updateHostText(current, workInProgress) {
    1052 |   if (current === null) {
    1053 |     tryToClaimNextHydratableInstance(workInProgress);
    1054 |   }
    1055 |   const nextProps = workInProgress.pendingProps;
    1056 |   memoizeProps(workInProgress, nextProps);
    1057 |   // Nothing to do here. This is terminal. We'll do the completion step
    1058 |   // immediately after.
    1059 |   return null;
    1060 | }
    1061 | 
    1062 |
    1063 | 1064 |
    1065 | 1066 |
    1067 |
    1068 |
    1069 | 1070 |

    results matching ""

    1071 |
      1072 | 1073 |
      1074 |
      1075 | 1076 |

      No results matching ""

      1077 | 1078 |
      1079 |
      1080 |
      1081 | 1082 |
      1083 | Jokcy的二维码 1088 |

      1089 | 扫码添加Jokcy,更多更新更优质的前端学习内容不断更新中,期待与你一起成长! 1090 |

      1091 |
      1092 |
      1093 | 1096 | Jokcy的二维码 1101 |
      1102 | 1103 | 1122 | 1123 |
      1124 |
      1125 | 1126 |
      1127 | 1146 | 1152 | 1153 |
      1154 | 1155 | 1156 | 1157 | 1158 |
      1159 | 1160 | 1166 |
      1167 | 1168 | 1169 | 1170 | 1171 | 1172 | 1173 | 1174 | 1175 | 1176 | 1177 | 1178 | 1179 | 1180 | 1181 | 1182 | 1183 | 1184 | 1185 | 1186 | 1187 | 1188 | 1189 | 1190 | 1191 | 1192 | 1193 | 1194 | 1195 | 1196 | 1197 | 1198 | 1199 | 1200 | 1201 | 1202 | 1203 | 1204 | -------------------------------------------------------------------------------- /book/flow/begin-work/update-profiler.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | updateProfiler · React源码解析 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | 46 | 47 | 48 | 49 | 50 | 51 | 52 | 53 | 54 | 55 | 56 | 57 | 58 | 59 | 60 | 61 | 62 | 63 | 64 | 65 | 66 | 67 | 68 | 69 | 70 | 71 | 72 | 76 | 85 | 86 | 87 | 88 | 89 |
      90 |
      91 | 92 | 93 | 96 | 97 | 98 | 1015 | 1016 | 1017 |
      1018 | 1019 |
      1020 | 1021 |
      1022 | 1023 | 1024 | 1025 | 1034 | 1035 | 1036 | 1037 | 1038 |
      1039 |
      1040 | 1041 | 1042 |
      1043 |
      1044 | 1045 |
      1046 | 1047 |

      updateProfiler

      1048 |

      应该跟timeoutComponent一样是下个版本的功能,目前看不出有什么作用

      1049 |
      function updateProfiler(current, workInProgress) {
      1050 |   const nextProps = workInProgress.pendingProps;
      1051 |   if (enableProfilerTimer) {
      1052 |     workInProgress.effectTag |= Update;
      1053 |   }
      1054 |   if (workInProgress.memoizedProps === nextProps) {
      1055 |     return bailoutOnAlreadyFinishedWork(current, workInProgress);
      1056 |   }
      1057 |   const nextChildren = nextProps.children;
      1058 |   reconcileChildren(current, workInProgress, nextChildren);
      1059 |   memoizeProps(workInProgress, nextProps);
      1060 |   return workInProgress.child;
      1061 | }
      1062 | 
      1063 |
      1064 | 1065 |
      1066 | 1067 |
      1068 |
      1069 |
      1070 | 1071 |

      results matching ""

      1072 |
        1073 | 1074 |
        1075 |
        1076 | 1077 |

        No results matching ""

        1078 | 1079 |
        1080 |
        1081 |
        1082 | 1083 |
        1084 | Jokcy的二维码 1089 |

        1090 | 扫码添加Jokcy,更多更新更优质的前端学习内容不断更新中,期待与你一起成长! 1091 |

        1092 |
        1093 |
        1094 | 1097 | Jokcy的二维码 1102 |
        1103 | 1104 | 1123 | 1124 |
        1125 |
        1126 | 1127 |
        1128 | 1147 | 1153 | 1154 |
        1155 | 1156 | 1157 | 1158 | 1159 |
        1160 | 1161 | 1167 |
        1168 | 1169 | 1170 | 1171 | 1172 | 1173 | 1174 | 1175 | 1176 | 1177 | 1178 | 1179 | 1180 | 1181 | 1182 | 1183 | 1184 | 1185 | 1186 | 1187 | 1188 | 1189 | 1190 | 1191 | 1192 | 1193 | 1194 | 1195 | 1196 | 1197 | 1198 | 1199 | 1200 | 1201 | 1202 | 1203 | 1204 | 1205 | -------------------------------------------------------------------------------- /gitbook/fonts/fontawesome/FontAwesome.otf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Jokcy/react-book/f8603324852a2a304b825e6b36b7a5c28b6f20e5/gitbook/fonts/fontawesome/FontAwesome.otf -------------------------------------------------------------------------------- /gitbook/fonts/fontawesome/fontawesome-webfont.eot: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Jokcy/react-book/f8603324852a2a304b825e6b36b7a5c28b6f20e5/gitbook/fonts/fontawesome/fontawesome-webfont.eot -------------------------------------------------------------------------------- /gitbook/fonts/fontawesome/fontawesome-webfont.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Jokcy/react-book/f8603324852a2a304b825e6b36b7a5c28b6f20e5/gitbook/fonts/fontawesome/fontawesome-webfont.ttf -------------------------------------------------------------------------------- /gitbook/fonts/fontawesome/fontawesome-webfont.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Jokcy/react-book/f8603324852a2a304b825e6b36b7a5c28b6f20e5/gitbook/fonts/fontawesome/fontawesome-webfont.woff -------------------------------------------------------------------------------- /gitbook/fonts/fontawesome/fontawesome-webfont.woff2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Jokcy/react-book/f8603324852a2a304b825e6b36b7a5c28b6f20e5/gitbook/fonts/fontawesome/fontawesome-webfont.woff2 -------------------------------------------------------------------------------- /gitbook/gitbook-plugin-fontsettings/fontsettings.js: -------------------------------------------------------------------------------- 1 | require(['gitbook', 'jquery'], function(gitbook, $) { 2 | // Configuration 3 | var MAX_SIZE = 4, 4 | MIN_SIZE = 0, 5 | BUTTON_ID; 6 | 7 | // Current fontsettings state 8 | var fontState; 9 | 10 | // Default themes 11 | var THEMES = [ 12 | { 13 | config: 'white', 14 | text: 'White', 15 | id: 0 16 | }, 17 | { 18 | config: 'sepia', 19 | text: 'Sepia', 20 | id: 1 21 | }, 22 | { 23 | config: 'night', 24 | text: 'Night', 25 | id: 2 26 | } 27 | ]; 28 | 29 | // Default font families 30 | var FAMILIES = [ 31 | { 32 | config: 'serif', 33 | text: 'Serif', 34 | id: 0 35 | }, 36 | { 37 | config: 'sans', 38 | text: 'Sans', 39 | id: 1 40 | } 41 | ]; 42 | 43 | // Return configured themes 44 | function getThemes() { 45 | return THEMES; 46 | } 47 | 48 | // Modify configured themes 49 | function setThemes(themes) { 50 | THEMES = themes; 51 | updateButtons(); 52 | } 53 | 54 | // Return configured font families 55 | function getFamilies() { 56 | return FAMILIES; 57 | } 58 | 59 | // Modify configured font families 60 | function setFamilies(families) { 61 | FAMILIES = families; 62 | updateButtons(); 63 | } 64 | 65 | // Save current font settings 66 | function saveFontSettings() { 67 | gitbook.storage.set('fontState', fontState); 68 | update(); 69 | } 70 | 71 | // Increase font size 72 | function enlargeFontSize(e) { 73 | e.preventDefault(); 74 | if (fontState.size >= MAX_SIZE) return; 75 | 76 | fontState.size++; 77 | saveFontSettings(); 78 | } 79 | 80 | // Decrease font size 81 | function reduceFontSize(e) { 82 | e.preventDefault(); 83 | if (fontState.size <= MIN_SIZE) return; 84 | 85 | fontState.size--; 86 | saveFontSettings(); 87 | } 88 | 89 | // Change font family 90 | function changeFontFamily(configName, e) { 91 | if (e && e instanceof Event) { 92 | e.preventDefault(); 93 | } 94 | 95 | var familyId = getFontFamilyId(configName); 96 | fontState.family = familyId; 97 | saveFontSettings(); 98 | } 99 | 100 | // Change type of color theme 101 | function changeColorTheme(configName, e) { 102 | if (e && e instanceof Event) { 103 | e.preventDefault(); 104 | } 105 | 106 | var $book = gitbook.state.$book; 107 | 108 | // Remove currently applied color theme 109 | if (fontState.theme !== 0) 110 | $book.removeClass('color-theme-'+fontState.theme); 111 | 112 | // Set new color theme 113 | var themeId = getThemeId(configName); 114 | fontState.theme = themeId; 115 | if (fontState.theme !== 0) 116 | $book.addClass('color-theme-'+fontState.theme); 117 | 118 | saveFontSettings(); 119 | } 120 | 121 | // Return the correct id for a font-family config key 122 | // Default to first font-family 123 | function getFontFamilyId(configName) { 124 | // Search for plugin configured font family 125 | var configFamily = $.grep(FAMILIES, function(family) { 126 | return family.config == configName; 127 | })[0]; 128 | // Fallback to default font family 129 | return (!!configFamily)? configFamily.id : 0; 130 | } 131 | 132 | // Return the correct id for a theme config key 133 | // Default to first theme 134 | function getThemeId(configName) { 135 | // Search for plugin configured theme 136 | var configTheme = $.grep(THEMES, function(theme) { 137 | return theme.config == configName; 138 | })[0]; 139 | // Fallback to default theme 140 | return (!!configTheme)? configTheme.id : 0; 141 | } 142 | 143 | function update() { 144 | var $book = gitbook.state.$book; 145 | 146 | $('.font-settings .font-family-list li').removeClass('active'); 147 | $('.font-settings .font-family-list li:nth-child('+(fontState.family+1)+')').addClass('active'); 148 | 149 | $book[0].className = $book[0].className.replace(/\bfont-\S+/g, ''); 150 | $book.addClass('font-size-'+fontState.size); 151 | $book.addClass('font-family-'+fontState.family); 152 | 153 | if(fontState.theme !== 0) { 154 | $book[0].className = $book[0].className.replace(/\bcolor-theme-\S+/g, ''); 155 | $book.addClass('color-theme-'+fontState.theme); 156 | } 157 | } 158 | 159 | function init(config) { 160 | // Search for plugin configured font family 161 | var configFamily = getFontFamilyId(config.family), 162 | configTheme = getThemeId(config.theme); 163 | 164 | // Instantiate font state object 165 | fontState = gitbook.storage.get('fontState', { 166 | size: config.size || 2, 167 | family: configFamily, 168 | theme: configTheme 169 | }); 170 | 171 | update(); 172 | } 173 | 174 | function updateButtons() { 175 | // Remove existing fontsettings buttons 176 | if (!!BUTTON_ID) { 177 | gitbook.toolbar.removeButton(BUTTON_ID); 178 | } 179 | 180 | // Create buttons in toolbar 181 | BUTTON_ID = gitbook.toolbar.createButton({ 182 | icon: 'fa fa-font', 183 | label: 'Font Settings', 184 | className: 'font-settings', 185 | dropdown: [ 186 | [ 187 | { 188 | text: 'A', 189 | className: 'font-reduce', 190 | onClick: reduceFontSize 191 | }, 192 | { 193 | text: 'A', 194 | className: 'font-enlarge', 195 | onClick: enlargeFontSize 196 | } 197 | ], 198 | $.map(FAMILIES, function(family) { 199 | family.onClick = function(e) { 200 | return changeFontFamily(family.config, e); 201 | }; 202 | 203 | return family; 204 | }), 205 | $.map(THEMES, function(theme) { 206 | theme.onClick = function(e) { 207 | return changeColorTheme(theme.config, e); 208 | }; 209 | 210 | return theme; 211 | }) 212 | ] 213 | }); 214 | } 215 | 216 | // Init configuration at start 217 | gitbook.events.bind('start', function(e, config) { 218 | var opts = config.fontsettings; 219 | 220 | // Generate buttons at start 221 | updateButtons(); 222 | 223 | // Init current settings 224 | init(opts); 225 | }); 226 | 227 | // Expose API 228 | gitbook.fontsettings = { 229 | enlargeFontSize: enlargeFontSize, 230 | reduceFontSize: reduceFontSize, 231 | setTheme: changeColorTheme, 232 | setFamily: changeFontFamily, 233 | getThemes: getThemes, 234 | setThemes: setThemes, 235 | getFamilies: getFamilies, 236 | setFamilies: setFamilies 237 | }; 238 | }); 239 | 240 | 241 | -------------------------------------------------------------------------------- /gitbook/gitbook-plugin-fontsettings/website.css: -------------------------------------------------------------------------------- 1 | /* 2 | * Theme 1 3 | */ 4 | .color-theme-1 .dropdown-menu { 5 | background-color: #111111; 6 | border-color: #7e888b; 7 | } 8 | .color-theme-1 .dropdown-menu .dropdown-caret .caret-inner { 9 | border-bottom: 9px solid #111111; 10 | } 11 | .color-theme-1 .dropdown-menu .buttons { 12 | border-color: #7e888b; 13 | } 14 | .color-theme-1 .dropdown-menu .button { 15 | color: #afa790; 16 | } 17 | .color-theme-1 .dropdown-menu .button:hover { 18 | color: #73553c; 19 | } 20 | /* 21 | * Theme 2 22 | */ 23 | .color-theme-2 .dropdown-menu { 24 | background-color: #2d3143; 25 | border-color: #272a3a; 26 | } 27 | .color-theme-2 .dropdown-menu .dropdown-caret .caret-inner { 28 | border-bottom: 9px solid #2d3143; 29 | } 30 | .color-theme-2 .dropdown-menu .buttons { 31 | border-color: #272a3a; 32 | } 33 | .color-theme-2 .dropdown-menu .button { 34 | color: #62677f; 35 | } 36 | .color-theme-2 .dropdown-menu .button:hover { 37 | color: #f4f4f5; 38 | } 39 | .book .book-header .font-settings .font-enlarge { 40 | line-height: 30px; 41 | font-size: 1.4em; 42 | } 43 | .book .book-header .font-settings .font-reduce { 44 | line-height: 30px; 45 | font-size: 1em; 46 | } 47 | .book.color-theme-1 .book-body { 48 | color: #704214; 49 | background: #f3eacb; 50 | } 51 | .book.color-theme-1 .book-body .page-wrapper .page-inner section { 52 | background: #f3eacb; 53 | } 54 | .book.color-theme-2 .book-body { 55 | color: #bdcadb; 56 | background: #1c1f2b; 57 | } 58 | .book.color-theme-2 .book-body .page-wrapper .page-inner section { 59 | background: #1c1f2b; 60 | } 61 | .book.font-size-0 .book-body .page-inner section { 62 | font-size: 1.2rem; 63 | } 64 | .book.font-size-1 .book-body .page-inner section { 65 | font-size: 1.4rem; 66 | } 67 | .book.font-size-2 .book-body .page-inner section { 68 | font-size: 1.6rem; 69 | } 70 | .book.font-size-3 .book-body .page-inner section { 71 | font-size: 2.2rem; 72 | } 73 | .book.font-size-4 .book-body .page-inner section { 74 | font-size: 4rem; 75 | } 76 | .book.font-family-0 { 77 | font-family: Georgia, serif; 78 | } 79 | .book.font-family-1 { 80 | font-family: "Helvetica Neue", Helvetica, Arial, sans-serif; 81 | } 82 | .book.color-theme-1 .book-body .page-wrapper .page-inner section.normal { 83 | color: #704214; 84 | } 85 | .book.color-theme-1 .book-body .page-wrapper .page-inner section.normal a { 86 | color: inherit; 87 | } 88 | .book.color-theme-1 .book-body .page-wrapper .page-inner section.normal h1, 89 | .book.color-theme-1 .book-body .page-wrapper .page-inner section.normal h2, 90 | .book.color-theme-1 .book-body .page-wrapper .page-inner section.normal h3, 91 | .book.color-theme-1 .book-body .page-wrapper .page-inner section.normal h4, 92 | .book.color-theme-1 .book-body .page-wrapper .page-inner section.normal h5, 93 | .book.color-theme-1 .book-body .page-wrapper .page-inner section.normal h6 { 94 | color: inherit; 95 | } 96 | .book.color-theme-1 .book-body .page-wrapper .page-inner section.normal h1, 97 | .book.color-theme-1 .book-body .page-wrapper .page-inner section.normal h2 { 98 | border-color: inherit; 99 | } 100 | .book.color-theme-1 .book-body .page-wrapper .page-inner section.normal h6 { 101 | color: inherit; 102 | } 103 | .book.color-theme-1 .book-body .page-wrapper .page-inner section.normal hr { 104 | background-color: inherit; 105 | } 106 | .book.color-theme-1 .book-body .page-wrapper .page-inner section.normal blockquote { 107 | border-color: inherit; 108 | } 109 | .book.color-theme-1 .book-body .page-wrapper .page-inner section.normal pre, 110 | .book.color-theme-1 .book-body .page-wrapper .page-inner section.normal code { 111 | background: #fdf6e3; 112 | color: #657b83; 113 | border-color: #f8df9c; 114 | } 115 | .book.color-theme-1 .book-body .page-wrapper .page-inner section.normal .highlight { 116 | background-color: inherit; 117 | } 118 | .book.color-theme-1 .book-body .page-wrapper .page-inner section.normal table th, 119 | .book.color-theme-1 .book-body .page-wrapper .page-inner section.normal table td { 120 | border-color: #f5d06c; 121 | } 122 | .book.color-theme-1 .book-body .page-wrapper .page-inner section.normal table tr { 123 | color: inherit; 124 | background-color: #fdf6e3; 125 | border-color: #444444; 126 | } 127 | .book.color-theme-1 .book-body .page-wrapper .page-inner section.normal table tr:nth-child(2n) { 128 | background-color: #fbeecb; 129 | } 130 | .book.color-theme-2 .book-body .page-wrapper .page-inner section.normal { 131 | color: #bdcadb; 132 | } 133 | .book.color-theme-2 .book-body .page-wrapper .page-inner section.normal a { 134 | color: #3eb1d0; 135 | } 136 | .book.color-theme-2 .book-body .page-wrapper .page-inner section.normal h1, 137 | .book.color-theme-2 .book-body .page-wrapper .page-inner section.normal h2, 138 | .book.color-theme-2 .book-body .page-wrapper .page-inner section.normal h3, 139 | .book.color-theme-2 .book-body .page-wrapper .page-inner section.normal h4, 140 | .book.color-theme-2 .book-body .page-wrapper .page-inner section.normal h5, 141 | .book.color-theme-2 .book-body .page-wrapper .page-inner section.normal h6 { 142 | color: #fffffa; 143 | } 144 | .book.color-theme-2 .book-body .page-wrapper .page-inner section.normal h1, 145 | .book.color-theme-2 .book-body .page-wrapper .page-inner section.normal h2 { 146 | border-color: #373b4e; 147 | } 148 | .book.color-theme-2 .book-body .page-wrapper .page-inner section.normal h6 { 149 | color: #373b4e; 150 | } 151 | .book.color-theme-2 .book-body .page-wrapper .page-inner section.normal hr { 152 | background-color: #373b4e; 153 | } 154 | .book.color-theme-2 .book-body .page-wrapper .page-inner section.normal blockquote { 155 | border-color: #373b4e; 156 | } 157 | .book.color-theme-2 .book-body .page-wrapper .page-inner section.normal pre, 158 | .book.color-theme-2 .book-body .page-wrapper .page-inner section.normal code { 159 | color: #9dbed8; 160 | background: #2d3143; 161 | border-color: #2d3143; 162 | } 163 | .book.color-theme-2 .book-body .page-wrapper .page-inner section.normal .highlight { 164 | background-color: #282a39; 165 | } 166 | .book.color-theme-2 .book-body .page-wrapper .page-inner section.normal table th, 167 | .book.color-theme-2 .book-body .page-wrapper .page-inner section.normal table td { 168 | border-color: #3b3f54; 169 | } 170 | .book.color-theme-2 .book-body .page-wrapper .page-inner section.normal table tr { 171 | color: #b6c2d2; 172 | background-color: #2d3143; 173 | border-color: #3b3f54; 174 | } 175 | .book.color-theme-2 .book-body .page-wrapper .page-inner section.normal table tr:nth-child(2n) { 176 | background-color: #35394b; 177 | } 178 | .book.color-theme-1 .book-header { 179 | color: #afa790; 180 | background: transparent; 181 | } 182 | .book.color-theme-1 .book-header .btn { 183 | color: #afa790; 184 | } 185 | .book.color-theme-1 .book-header .btn:hover { 186 | color: #73553c; 187 | background: none; 188 | } 189 | .book.color-theme-1 .book-header h1 { 190 | color: #704214; 191 | } 192 | .book.color-theme-2 .book-header { 193 | color: #7e888b; 194 | background: transparent; 195 | } 196 | .book.color-theme-2 .book-header .btn { 197 | color: #3b3f54; 198 | } 199 | .book.color-theme-2 .book-header .btn:hover { 200 | color: #fffff5; 201 | background: none; 202 | } 203 | .book.color-theme-2 .book-header h1 { 204 | color: #bdcadb; 205 | } 206 | .book.color-theme-1 .book-body .navigation { 207 | color: #afa790; 208 | } 209 | .book.color-theme-1 .book-body .navigation:hover { 210 | color: #73553c; 211 | } 212 | .book.color-theme-2 .book-body .navigation { 213 | color: #383f52; 214 | } 215 | .book.color-theme-2 .book-body .navigation:hover { 216 | color: #fffff5; 217 | } 218 | /* 219 | * Theme 1 220 | */ 221 | .book.color-theme-1 .book-summary { 222 | color: #afa790; 223 | background: #111111; 224 | border-right: 1px solid rgba(0, 0, 0, 0.07); 225 | } 226 | .book.color-theme-1 .book-summary .book-search { 227 | background: transparent; 228 | } 229 | .book.color-theme-1 .book-summary .book-search input, 230 | .book.color-theme-1 .book-summary .book-search input:focus { 231 | border: 1px solid transparent; 232 | } 233 | .book.color-theme-1 .book-summary ul.summary li.divider { 234 | background: #7e888b; 235 | box-shadow: none; 236 | } 237 | .book.color-theme-1 .book-summary ul.summary li i.fa-check { 238 | color: #33cc33; 239 | } 240 | .book.color-theme-1 .book-summary ul.summary li.done > a { 241 | color: #877f6a; 242 | } 243 | .book.color-theme-1 .book-summary ul.summary li a, 244 | .book.color-theme-1 .book-summary ul.summary li span { 245 | color: #877f6a; 246 | background: transparent; 247 | font-weight: normal; 248 | } 249 | .book.color-theme-1 .book-summary ul.summary li.active > a, 250 | .book.color-theme-1 .book-summary ul.summary li a:hover { 251 | color: #704214; 252 | background: transparent; 253 | font-weight: normal; 254 | } 255 | /* 256 | * Theme 2 257 | */ 258 | .book.color-theme-2 .book-summary { 259 | color: #bcc1d2; 260 | background: #2d3143; 261 | border-right: none; 262 | } 263 | .book.color-theme-2 .book-summary .book-search { 264 | background: transparent; 265 | } 266 | .book.color-theme-2 .book-summary .book-search input, 267 | .book.color-theme-2 .book-summary .book-search input:focus { 268 | border: 1px solid transparent; 269 | } 270 | .book.color-theme-2 .book-summary ul.summary li.divider { 271 | background: #272a3a; 272 | box-shadow: none; 273 | } 274 | .book.color-theme-2 .book-summary ul.summary li i.fa-check { 275 | color: #33cc33; 276 | } 277 | .book.color-theme-2 .book-summary ul.summary li.done > a { 278 | color: #62687f; 279 | } 280 | .book.color-theme-2 .book-summary ul.summary li a, 281 | .book.color-theme-2 .book-summary ul.summary li span { 282 | color: #c1c6d7; 283 | background: transparent; 284 | font-weight: 600; 285 | } 286 | .book.color-theme-2 .book-summary ul.summary li.active > a, 287 | .book.color-theme-2 .book-summary ul.summary li a:hover { 288 | color: #f4f4f5; 289 | background: #252737; 290 | font-weight: 600; 291 | } 292 | -------------------------------------------------------------------------------- /gitbook/gitbook-plugin-highlight/ebook.css: -------------------------------------------------------------------------------- 1 | pre, 2 | code { 3 | /* http://jmblog.github.io/color-themes-for-highlightjs */ 4 | /* Tomorrow Comment */ 5 | /* Tomorrow Red */ 6 | /* Tomorrow Orange */ 7 | /* Tomorrow Yellow */ 8 | /* Tomorrow Green */ 9 | /* Tomorrow Aqua */ 10 | /* Tomorrow Blue */ 11 | /* Tomorrow Purple */ 12 | } 13 | pre .hljs-comment, 14 | code .hljs-comment, 15 | pre .hljs-title, 16 | code .hljs-title { 17 | color: #8e908c; 18 | } 19 | pre .hljs-variable, 20 | code .hljs-variable, 21 | pre .hljs-attribute, 22 | code .hljs-attribute, 23 | pre .hljs-tag, 24 | code .hljs-tag, 25 | pre .hljs-regexp, 26 | code .hljs-regexp, 27 | pre .hljs-deletion, 28 | code .hljs-deletion, 29 | pre .ruby .hljs-constant, 30 | code .ruby .hljs-constant, 31 | pre .xml .hljs-tag .hljs-title, 32 | code .xml .hljs-tag .hljs-title, 33 | pre .xml .hljs-pi, 34 | code .xml .hljs-pi, 35 | pre .xml .hljs-doctype, 36 | code .xml .hljs-doctype, 37 | pre .html .hljs-doctype, 38 | code .html .hljs-doctype, 39 | pre .css .hljs-id, 40 | code .css .hljs-id, 41 | pre .css .hljs-class, 42 | code .css .hljs-class, 43 | pre .css .hljs-pseudo, 44 | code .css .hljs-pseudo { 45 | color: #c82829; 46 | } 47 | pre .hljs-number, 48 | code .hljs-number, 49 | pre .hljs-preprocessor, 50 | code .hljs-preprocessor, 51 | pre .hljs-pragma, 52 | code .hljs-pragma, 53 | pre .hljs-built_in, 54 | code .hljs-built_in, 55 | pre .hljs-literal, 56 | code .hljs-literal, 57 | pre .hljs-params, 58 | code .hljs-params, 59 | pre .hljs-constant, 60 | code .hljs-constant { 61 | color: #f5871f; 62 | } 63 | pre .ruby .hljs-class .hljs-title, 64 | code .ruby .hljs-class .hljs-title, 65 | pre .css .hljs-rules .hljs-attribute, 66 | code .css .hljs-rules .hljs-attribute { 67 | color: #eab700; 68 | } 69 | pre .hljs-string, 70 | code .hljs-string, 71 | pre .hljs-value, 72 | code .hljs-value, 73 | pre .hljs-inheritance, 74 | code .hljs-inheritance, 75 | pre .hljs-header, 76 | code .hljs-header, 77 | pre .hljs-addition, 78 | code .hljs-addition, 79 | pre .ruby .hljs-symbol, 80 | code .ruby .hljs-symbol, 81 | pre .xml .hljs-cdata, 82 | code .xml .hljs-cdata { 83 | color: #718c00; 84 | } 85 | pre .css .hljs-hexcolor, 86 | code .css .hljs-hexcolor { 87 | color: #3e999f; 88 | } 89 | pre .hljs-function, 90 | code .hljs-function, 91 | pre .python .hljs-decorator, 92 | code .python .hljs-decorator, 93 | pre .python .hljs-title, 94 | code .python .hljs-title, 95 | pre .ruby .hljs-function .hljs-title, 96 | code .ruby .hljs-function .hljs-title, 97 | pre .ruby .hljs-title .hljs-keyword, 98 | code .ruby .hljs-title .hljs-keyword, 99 | pre .perl .hljs-sub, 100 | code .perl .hljs-sub, 101 | pre .javascript .hljs-title, 102 | code .javascript .hljs-title, 103 | pre .coffeescript .hljs-title, 104 | code .coffeescript .hljs-title { 105 | color: #4271ae; 106 | } 107 | pre .hljs-keyword, 108 | code .hljs-keyword, 109 | pre .javascript .hljs-function, 110 | code .javascript .hljs-function { 111 | color: #8959a8; 112 | } 113 | pre .hljs, 114 | code .hljs { 115 | display: block; 116 | background: white; 117 | color: #4d4d4c; 118 | padding: 0.5em; 119 | } 120 | pre .coffeescript .javascript, 121 | code .coffeescript .javascript, 122 | pre .javascript .xml, 123 | code .javascript .xml, 124 | pre .tex .hljs-formula, 125 | code .tex .hljs-formula, 126 | pre .xml .javascript, 127 | code .xml .javascript, 128 | pre .xml .vbscript, 129 | code .xml .vbscript, 130 | pre .xml .css, 131 | code .xml .css, 132 | pre .xml .hljs-cdata, 133 | code .xml .hljs-cdata { 134 | opacity: 0.5; 135 | } 136 | -------------------------------------------------------------------------------- /gitbook/gitbook-plugin-highlight/website.css: -------------------------------------------------------------------------------- 1 | .book .book-body .page-wrapper .page-inner section.normal pre, 2 | .book .book-body .page-wrapper .page-inner section.normal code { 3 | /* http://jmblog.github.com/color-themes-for-google-code-highlightjs */ 4 | /* Tomorrow Comment */ 5 | /* Tomorrow Red */ 6 | /* Tomorrow Orange */ 7 | /* Tomorrow Yellow */ 8 | /* Tomorrow Green */ 9 | /* Tomorrow Aqua */ 10 | /* Tomorrow Blue */ 11 | /* Tomorrow Purple */ 12 | } 13 | .book .book-body .page-wrapper .page-inner section.normal pre .hljs-comment, 14 | .book .book-body .page-wrapper .page-inner section.normal code .hljs-comment, 15 | .book .book-body .page-wrapper .page-inner section.normal pre .hljs-title, 16 | .book .book-body .page-wrapper .page-inner section.normal code .hljs-title { 17 | color: #8e908c; 18 | } 19 | .book .book-body .page-wrapper .page-inner section.normal pre .hljs-variable, 20 | .book .book-body .page-wrapper .page-inner section.normal code .hljs-variable, 21 | .book .book-body .page-wrapper .page-inner section.normal pre .hljs-attribute, 22 | .book .book-body .page-wrapper .page-inner section.normal code .hljs-attribute, 23 | .book .book-body .page-wrapper .page-inner section.normal pre .hljs-tag, 24 | .book .book-body .page-wrapper .page-inner section.normal code .hljs-tag, 25 | .book .book-body .page-wrapper .page-inner section.normal pre .hljs-regexp, 26 | .book .book-body .page-wrapper .page-inner section.normal code .hljs-regexp, 27 | .book .book-body .page-wrapper .page-inner section.normal pre .hljs-deletion, 28 | .book .book-body .page-wrapper .page-inner section.normal code .hljs-deletion, 29 | .book .book-body .page-wrapper .page-inner section.normal pre .ruby .hljs-constant, 30 | .book .book-body .page-wrapper .page-inner section.normal code .ruby .hljs-constant, 31 | .book .book-body .page-wrapper .page-inner section.normal pre .xml .hljs-tag .hljs-title, 32 | .book .book-body .page-wrapper .page-inner section.normal code .xml .hljs-tag .hljs-title, 33 | .book .book-body .page-wrapper .page-inner section.normal pre .xml .hljs-pi, 34 | .book .book-body .page-wrapper .page-inner section.normal code .xml .hljs-pi, 35 | .book .book-body .page-wrapper .page-inner section.normal pre .xml .hljs-doctype, 36 | .book .book-body .page-wrapper .page-inner section.normal code .xml .hljs-doctype, 37 | .book .book-body .page-wrapper .page-inner section.normal pre .html .hljs-doctype, 38 | .book .book-body .page-wrapper .page-inner section.normal code .html .hljs-doctype, 39 | .book .book-body .page-wrapper .page-inner section.normal pre .css .hljs-id, 40 | .book .book-body .page-wrapper .page-inner section.normal code .css .hljs-id, 41 | .book .book-body .page-wrapper .page-inner section.normal pre .css .hljs-class, 42 | .book .book-body .page-wrapper .page-inner section.normal code .css .hljs-class, 43 | .book .book-body .page-wrapper .page-inner section.normal pre .css .hljs-pseudo, 44 | .book .book-body .page-wrapper .page-inner section.normal code .css .hljs-pseudo { 45 | color: #c82829; 46 | } 47 | .book .book-body .page-wrapper .page-inner section.normal pre .hljs-number, 48 | .book .book-body .page-wrapper .page-inner section.normal code .hljs-number, 49 | .book .book-body .page-wrapper .page-inner section.normal pre .hljs-preprocessor, 50 | .book .book-body .page-wrapper .page-inner section.normal code .hljs-preprocessor, 51 | .book .book-body .page-wrapper .page-inner section.normal pre .hljs-pragma, 52 | .book .book-body .page-wrapper .page-inner section.normal code .hljs-pragma, 53 | .book .book-body .page-wrapper .page-inner section.normal pre .hljs-built_in, 54 | .book .book-body .page-wrapper .page-inner section.normal code .hljs-built_in, 55 | .book .book-body .page-wrapper .page-inner section.normal pre .hljs-literal, 56 | .book .book-body .page-wrapper .page-inner section.normal code .hljs-literal, 57 | .book .book-body .page-wrapper .page-inner section.normal pre .hljs-params, 58 | .book .book-body .page-wrapper .page-inner section.normal code .hljs-params, 59 | .book .book-body .page-wrapper .page-inner section.normal pre .hljs-constant, 60 | .book .book-body .page-wrapper .page-inner section.normal code .hljs-constant { 61 | color: #f5871f; 62 | } 63 | .book .book-body .page-wrapper .page-inner section.normal pre .ruby .hljs-class .hljs-title, 64 | .book .book-body .page-wrapper .page-inner section.normal code .ruby .hljs-class .hljs-title, 65 | .book .book-body .page-wrapper .page-inner section.normal pre .css .hljs-rules .hljs-attribute, 66 | .book .book-body .page-wrapper .page-inner section.normal code .css .hljs-rules .hljs-attribute { 67 | color: #eab700; 68 | } 69 | .book .book-body .page-wrapper .page-inner section.normal pre .hljs-string, 70 | .book .book-body .page-wrapper .page-inner section.normal code .hljs-string, 71 | .book .book-body .page-wrapper .page-inner section.normal pre .hljs-value, 72 | .book .book-body .page-wrapper .page-inner section.normal code .hljs-value, 73 | .book .book-body .page-wrapper .page-inner section.normal pre .hljs-inheritance, 74 | .book .book-body .page-wrapper .page-inner section.normal code .hljs-inheritance, 75 | .book .book-body .page-wrapper .page-inner section.normal pre .hljs-header, 76 | .book .book-body .page-wrapper .page-inner section.normal code .hljs-header, 77 | .book .book-body .page-wrapper .page-inner section.normal pre .hljs-addition, 78 | .book .book-body .page-wrapper .page-inner section.normal code .hljs-addition, 79 | .book .book-body .page-wrapper .page-inner section.normal pre .ruby .hljs-symbol, 80 | .book .book-body .page-wrapper .page-inner section.normal code .ruby .hljs-symbol, 81 | .book .book-body .page-wrapper .page-inner section.normal pre .xml .hljs-cdata, 82 | .book .book-body .page-wrapper .page-inner section.normal code .xml .hljs-cdata { 83 | color: #718c00; 84 | } 85 | .book .book-body .page-wrapper .page-inner section.normal pre .css .hljs-hexcolor, 86 | .book .book-body .page-wrapper .page-inner section.normal code .css .hljs-hexcolor { 87 | color: #3e999f; 88 | } 89 | .book .book-body .page-wrapper .page-inner section.normal pre .hljs-function, 90 | .book .book-body .page-wrapper .page-inner section.normal code .hljs-function, 91 | .book .book-body .page-wrapper .page-inner section.normal pre .python .hljs-decorator, 92 | .book .book-body .page-wrapper .page-inner section.normal code .python .hljs-decorator, 93 | .book .book-body .page-wrapper .page-inner section.normal pre .python .hljs-title, 94 | .book .book-body .page-wrapper .page-inner section.normal code .python .hljs-title, 95 | .book .book-body .page-wrapper .page-inner section.normal pre .ruby .hljs-function .hljs-title, 96 | .book .book-body .page-wrapper .page-inner section.normal code .ruby .hljs-function .hljs-title, 97 | .book .book-body .page-wrapper .page-inner section.normal pre .ruby .hljs-title .hljs-keyword, 98 | .book .book-body .page-wrapper .page-inner section.normal code .ruby .hljs-title .hljs-keyword, 99 | .book .book-body .page-wrapper .page-inner section.normal pre .perl .hljs-sub, 100 | .book .book-body .page-wrapper .page-inner section.normal code .perl .hljs-sub, 101 | .book .book-body .page-wrapper .page-inner section.normal pre .javascript .hljs-title, 102 | .book .book-body .page-wrapper .page-inner section.normal code .javascript .hljs-title, 103 | .book .book-body .page-wrapper .page-inner section.normal pre .coffeescript .hljs-title, 104 | .book .book-body .page-wrapper .page-inner section.normal code .coffeescript .hljs-title { 105 | color: #4271ae; 106 | } 107 | .book .book-body .page-wrapper .page-inner section.normal pre .hljs-keyword, 108 | .book .book-body .page-wrapper .page-inner section.normal code .hljs-keyword, 109 | .book .book-body .page-wrapper .page-inner section.normal pre .javascript .hljs-function, 110 | .book .book-body .page-wrapper .page-inner section.normal code .javascript .hljs-function { 111 | color: #8959a8; 112 | } 113 | .book .book-body .page-wrapper .page-inner section.normal pre .hljs, 114 | .book .book-body .page-wrapper .page-inner section.normal code .hljs { 115 | display: block; 116 | background: white; 117 | color: #4d4d4c; 118 | padding: 0.5em; 119 | } 120 | .book .book-body .page-wrapper .page-inner section.normal pre .coffeescript .javascript, 121 | .book .book-body .page-wrapper .page-inner section.normal code .coffeescript .javascript, 122 | .book .book-body .page-wrapper .page-inner section.normal pre .javascript .xml, 123 | .book .book-body .page-wrapper .page-inner section.normal code .javascript .xml, 124 | .book .book-body .page-wrapper .page-inner section.normal pre .tex .hljs-formula, 125 | .book .book-body .page-wrapper .page-inner section.normal code .tex .hljs-formula, 126 | .book .book-body .page-wrapper .page-inner section.normal pre .xml .javascript, 127 | .book .book-body .page-wrapper .page-inner section.normal code .xml .javascript, 128 | .book .book-body .page-wrapper .page-inner section.normal pre .xml .vbscript, 129 | .book .book-body .page-wrapper .page-inner section.normal code .xml .vbscript, 130 | .book .book-body .page-wrapper .page-inner section.normal pre .xml .css, 131 | .book .book-body .page-wrapper .page-inner section.normal code .xml .css, 132 | .book .book-body .page-wrapper .page-inner section.normal pre .xml .hljs-cdata, 133 | .book .book-body .page-wrapper .page-inner section.normal code .xml .hljs-cdata { 134 | opacity: 0.5; 135 | } 136 | .book.color-theme-1 .book-body .page-wrapper .page-inner section.normal pre, 137 | .book.color-theme-1 .book-body .page-wrapper .page-inner section.normal code { 138 | /* 139 | 140 | Orginal Style from ethanschoonover.com/solarized (c) Jeremy Hull 141 | 142 | */ 143 | /* Solarized Green */ 144 | /* Solarized Cyan */ 145 | /* Solarized Blue */ 146 | /* Solarized Yellow */ 147 | /* Solarized Orange */ 148 | /* Solarized Red */ 149 | /* Solarized Violet */ 150 | } 151 | .book.color-theme-1 .book-body .page-wrapper .page-inner section.normal pre .hljs, 152 | .book.color-theme-1 .book-body .page-wrapper .page-inner section.normal code .hljs { 153 | display: block; 154 | padding: 0.5em; 155 | background: #fdf6e3; 156 | color: #657b83; 157 | } 158 | .book.color-theme-1 .book-body .page-wrapper .page-inner section.normal pre .hljs-comment, 159 | .book.color-theme-1 .book-body .page-wrapper .page-inner section.normal code .hljs-comment, 160 | .book.color-theme-1 .book-body .page-wrapper .page-inner section.normal pre .hljs-template_comment, 161 | .book.color-theme-1 .book-body .page-wrapper .page-inner section.normal code .hljs-template_comment, 162 | .book.color-theme-1 .book-body .page-wrapper .page-inner section.normal pre .diff .hljs-header, 163 | .book.color-theme-1 .book-body .page-wrapper .page-inner section.normal code .diff .hljs-header, 164 | .book.color-theme-1 .book-body .page-wrapper .page-inner section.normal pre .hljs-doctype, 165 | .book.color-theme-1 .book-body .page-wrapper .page-inner section.normal code .hljs-doctype, 166 | .book.color-theme-1 .book-body .page-wrapper .page-inner section.normal pre .hljs-pi, 167 | .book.color-theme-1 .book-body .page-wrapper .page-inner section.normal code .hljs-pi, 168 | .book.color-theme-1 .book-body .page-wrapper .page-inner section.normal pre .lisp .hljs-string, 169 | .book.color-theme-1 .book-body .page-wrapper .page-inner section.normal code .lisp .hljs-string, 170 | .book.color-theme-1 .book-body .page-wrapper .page-inner section.normal pre .hljs-javadoc, 171 | .book.color-theme-1 .book-body .page-wrapper .page-inner section.normal code .hljs-javadoc { 172 | color: #93a1a1; 173 | } 174 | .book.color-theme-1 .book-body .page-wrapper .page-inner section.normal pre .hljs-keyword, 175 | .book.color-theme-1 .book-body .page-wrapper .page-inner section.normal code .hljs-keyword, 176 | .book.color-theme-1 .book-body .page-wrapper .page-inner section.normal pre .hljs-winutils, 177 | .book.color-theme-1 .book-body .page-wrapper .page-inner section.normal code .hljs-winutils, 178 | .book.color-theme-1 .book-body .page-wrapper .page-inner section.normal pre .method, 179 | .book.color-theme-1 .book-body .page-wrapper .page-inner section.normal code .method, 180 | .book.color-theme-1 .book-body .page-wrapper .page-inner section.normal pre .hljs-addition, 181 | .book.color-theme-1 .book-body .page-wrapper .page-inner section.normal code .hljs-addition, 182 | .book.color-theme-1 .book-body .page-wrapper .page-inner section.normal pre .css .hljs-tag, 183 | .book.color-theme-1 .book-body .page-wrapper .page-inner section.normal code .css .hljs-tag, 184 | .book.color-theme-1 .book-body .page-wrapper .page-inner section.normal pre .hljs-request, 185 | .book.color-theme-1 .book-body .page-wrapper .page-inner section.normal code .hljs-request, 186 | .book.color-theme-1 .book-body .page-wrapper .page-inner section.normal pre .hljs-status, 187 | .book.color-theme-1 .book-body .page-wrapper .page-inner section.normal code .hljs-status, 188 | .book.color-theme-1 .book-body .page-wrapper .page-inner section.normal pre .nginx .hljs-title, 189 | .book.color-theme-1 .book-body .page-wrapper .page-inner section.normal code .nginx .hljs-title { 190 | color: #859900; 191 | } 192 | .book.color-theme-1 .book-body .page-wrapper .page-inner section.normal pre .hljs-number, 193 | .book.color-theme-1 .book-body .page-wrapper .page-inner section.normal code .hljs-number, 194 | .book.color-theme-1 .book-body .page-wrapper .page-inner section.normal pre .hljs-command, 195 | .book.color-theme-1 .book-body .page-wrapper .page-inner section.normal code .hljs-command, 196 | .book.color-theme-1 .book-body .page-wrapper .page-inner section.normal pre .hljs-string, 197 | .book.color-theme-1 .book-body .page-wrapper .page-inner section.normal code .hljs-string, 198 | .book.color-theme-1 .book-body .page-wrapper .page-inner section.normal pre .hljs-tag .hljs-value, 199 | .book.color-theme-1 .book-body .page-wrapper .page-inner section.normal code .hljs-tag .hljs-value, 200 | .book.color-theme-1 .book-body .page-wrapper .page-inner section.normal pre .hljs-rules .hljs-value, 201 | .book.color-theme-1 .book-body .page-wrapper .page-inner section.normal code .hljs-rules .hljs-value, 202 | .book.color-theme-1 .book-body .page-wrapper .page-inner section.normal pre .hljs-phpdoc, 203 | .book.color-theme-1 .book-body .page-wrapper .page-inner section.normal code .hljs-phpdoc, 204 | .book.color-theme-1 .book-body .page-wrapper .page-inner section.normal pre .tex .hljs-formula, 205 | .book.color-theme-1 .book-body .page-wrapper .page-inner section.normal code .tex .hljs-formula, 206 | .book.color-theme-1 .book-body .page-wrapper .page-inner section.normal pre .hljs-regexp, 207 | .book.color-theme-1 .book-body .page-wrapper .page-inner section.normal code .hljs-regexp, 208 | .book.color-theme-1 .book-body .page-wrapper .page-inner section.normal pre .hljs-hexcolor, 209 | .book.color-theme-1 .book-body .page-wrapper .page-inner section.normal code .hljs-hexcolor, 210 | .book.color-theme-1 .book-body .page-wrapper .page-inner section.normal pre .hljs-link_url, 211 | .book.color-theme-1 .book-body .page-wrapper .page-inner section.normal code .hljs-link_url { 212 | color: #2aa198; 213 | } 214 | .book.color-theme-1 .book-body .page-wrapper .page-inner section.normal pre .hljs-title, 215 | .book.color-theme-1 .book-body .page-wrapper .page-inner section.normal code .hljs-title, 216 | .book.color-theme-1 .book-body .page-wrapper .page-inner section.normal pre .hljs-localvars, 217 | .book.color-theme-1 .book-body .page-wrapper .page-inner section.normal code .hljs-localvars, 218 | .book.color-theme-1 .book-body .page-wrapper .page-inner section.normal pre .hljs-chunk, 219 | .book.color-theme-1 .book-body .page-wrapper .page-inner section.normal code .hljs-chunk, 220 | .book.color-theme-1 .book-body .page-wrapper .page-inner section.normal pre .hljs-decorator, 221 | .book.color-theme-1 .book-body .page-wrapper .page-inner section.normal code .hljs-decorator, 222 | .book.color-theme-1 .book-body .page-wrapper .page-inner section.normal pre .hljs-built_in, 223 | .book.color-theme-1 .book-body .page-wrapper .page-inner section.normal code .hljs-built_in, 224 | .book.color-theme-1 .book-body .page-wrapper .page-inner section.normal pre .hljs-identifier, 225 | .book.color-theme-1 .book-body .page-wrapper .page-inner section.normal code .hljs-identifier, 226 | .book.color-theme-1 .book-body .page-wrapper .page-inner section.normal pre .vhdl .hljs-literal, 227 | .book.color-theme-1 .book-body .page-wrapper .page-inner section.normal code .vhdl .hljs-literal, 228 | .book.color-theme-1 .book-body .page-wrapper .page-inner section.normal pre .hljs-id, 229 | .book.color-theme-1 .book-body .page-wrapper .page-inner section.normal code .hljs-id, 230 | .book.color-theme-1 .book-body .page-wrapper .page-inner section.normal pre .css .hljs-function, 231 | .book.color-theme-1 .book-body .page-wrapper .page-inner section.normal code .css .hljs-function { 232 | color: #268bd2; 233 | } 234 | .book.color-theme-1 .book-body .page-wrapper .page-inner section.normal pre .hljs-attribute, 235 | .book.color-theme-1 .book-body .page-wrapper .page-inner section.normal code .hljs-attribute, 236 | .book.color-theme-1 .book-body .page-wrapper .page-inner section.normal pre .hljs-variable, 237 | .book.color-theme-1 .book-body .page-wrapper .page-inner section.normal code .hljs-variable, 238 | .book.color-theme-1 .book-body .page-wrapper .page-inner section.normal pre .lisp .hljs-body, 239 | .book.color-theme-1 .book-body .page-wrapper .page-inner section.normal code .lisp .hljs-body, 240 | .book.color-theme-1 .book-body .page-wrapper .page-inner section.normal pre .smalltalk .hljs-number, 241 | .book.color-theme-1 .book-body .page-wrapper .page-inner section.normal code .smalltalk .hljs-number, 242 | .book.color-theme-1 .book-body .page-wrapper .page-inner section.normal pre .hljs-constant, 243 | .book.color-theme-1 .book-body .page-wrapper .page-inner section.normal code .hljs-constant, 244 | .book.color-theme-1 .book-body .page-wrapper .page-inner section.normal pre .hljs-class .hljs-title, 245 | .book.color-theme-1 .book-body .page-wrapper .page-inner section.normal code .hljs-class .hljs-title, 246 | .book.color-theme-1 .book-body .page-wrapper .page-inner section.normal pre .hljs-parent, 247 | .book.color-theme-1 .book-body .page-wrapper .page-inner section.normal code .hljs-parent, 248 | .book.color-theme-1 .book-body .page-wrapper .page-inner section.normal pre .haskell .hljs-type, 249 | .book.color-theme-1 .book-body .page-wrapper .page-inner section.normal code .haskell .hljs-type, 250 | .book.color-theme-1 .book-body .page-wrapper .page-inner section.normal pre .hljs-link_reference, 251 | .book.color-theme-1 .book-body .page-wrapper .page-inner section.normal code .hljs-link_reference { 252 | color: #b58900; 253 | } 254 | .book.color-theme-1 .book-body .page-wrapper .page-inner section.normal pre .hljs-preprocessor, 255 | .book.color-theme-1 .book-body .page-wrapper .page-inner section.normal code .hljs-preprocessor, 256 | .book.color-theme-1 .book-body .page-wrapper .page-inner section.normal pre .hljs-preprocessor .hljs-keyword, 257 | .book.color-theme-1 .book-body .page-wrapper .page-inner section.normal code .hljs-preprocessor .hljs-keyword, 258 | .book.color-theme-1 .book-body .page-wrapper .page-inner section.normal pre .hljs-pragma, 259 | .book.color-theme-1 .book-body .page-wrapper .page-inner section.normal code .hljs-pragma, 260 | .book.color-theme-1 .book-body .page-wrapper .page-inner section.normal pre .hljs-shebang, 261 | .book.color-theme-1 .book-body .page-wrapper .page-inner section.normal code .hljs-shebang, 262 | .book.color-theme-1 .book-body .page-wrapper .page-inner section.normal pre .hljs-symbol, 263 | .book.color-theme-1 .book-body .page-wrapper .page-inner section.normal code .hljs-symbol, 264 | .book.color-theme-1 .book-body .page-wrapper .page-inner section.normal pre .hljs-symbol .hljs-string, 265 | .book.color-theme-1 .book-body .page-wrapper .page-inner section.normal code .hljs-symbol .hljs-string, 266 | .book.color-theme-1 .book-body .page-wrapper .page-inner section.normal pre .diff .hljs-change, 267 | .book.color-theme-1 .book-body .page-wrapper .page-inner section.normal code .diff .hljs-change, 268 | .book.color-theme-1 .book-body .page-wrapper .page-inner section.normal pre .hljs-special, 269 | .book.color-theme-1 .book-body .page-wrapper .page-inner section.normal code .hljs-special, 270 | .book.color-theme-1 .book-body .page-wrapper .page-inner section.normal pre .hljs-attr_selector, 271 | .book.color-theme-1 .book-body .page-wrapper .page-inner section.normal code .hljs-attr_selector, 272 | .book.color-theme-1 .book-body .page-wrapper .page-inner section.normal pre .hljs-subst, 273 | .book.color-theme-1 .book-body .page-wrapper .page-inner section.normal code .hljs-subst, 274 | .book.color-theme-1 .book-body .page-wrapper .page-inner section.normal pre .hljs-cdata, 275 | .book.color-theme-1 .book-body .page-wrapper .page-inner section.normal code .hljs-cdata, 276 | .book.color-theme-1 .book-body .page-wrapper .page-inner section.normal pre .clojure .hljs-title, 277 | .book.color-theme-1 .book-body .page-wrapper .page-inner section.normal code .clojure .hljs-title, 278 | .book.color-theme-1 .book-body .page-wrapper .page-inner section.normal pre .css .hljs-pseudo, 279 | .book.color-theme-1 .book-body .page-wrapper .page-inner section.normal code .css .hljs-pseudo, 280 | .book.color-theme-1 .book-body .page-wrapper .page-inner section.normal pre .hljs-header, 281 | .book.color-theme-1 .book-body .page-wrapper .page-inner section.normal code .hljs-header { 282 | color: #cb4b16; 283 | } 284 | .book.color-theme-1 .book-body .page-wrapper .page-inner section.normal pre .hljs-deletion, 285 | .book.color-theme-1 .book-body .page-wrapper .page-inner section.normal code .hljs-deletion, 286 | .book.color-theme-1 .book-body .page-wrapper .page-inner section.normal pre .hljs-important, 287 | .book.color-theme-1 .book-body .page-wrapper .page-inner section.normal code .hljs-important { 288 | color: #dc322f; 289 | } 290 | .book.color-theme-1 .book-body .page-wrapper .page-inner section.normal pre .hljs-link_label, 291 | .book.color-theme-1 .book-body .page-wrapper .page-inner section.normal code .hljs-link_label { 292 | color: #6c71c4; 293 | } 294 | .book.color-theme-1 .book-body .page-wrapper .page-inner section.normal pre .tex .hljs-formula, 295 | .book.color-theme-1 .book-body .page-wrapper .page-inner section.normal code .tex .hljs-formula { 296 | background: #eee8d5; 297 | } 298 | .book.color-theme-2 .book-body .page-wrapper .page-inner section.normal pre, 299 | .book.color-theme-2 .book-body .page-wrapper .page-inner section.normal code { 300 | /* Tomorrow Night Bright Theme */ 301 | /* Original theme - https://github.com/chriskempson/tomorrow-theme */ 302 | /* http://jmblog.github.com/color-themes-for-google-code-highlightjs */ 303 | /* Tomorrow Comment */ 304 | /* Tomorrow Red */ 305 | /* Tomorrow Orange */ 306 | /* Tomorrow Yellow */ 307 | /* Tomorrow Green */ 308 | /* Tomorrow Aqua */ 309 | /* Tomorrow Blue */ 310 | /* Tomorrow Purple */ 311 | } 312 | .book.color-theme-2 .book-body .page-wrapper .page-inner section.normal pre .hljs-comment, 313 | .book.color-theme-2 .book-body .page-wrapper .page-inner section.normal code .hljs-comment, 314 | .book.color-theme-2 .book-body .page-wrapper .page-inner section.normal pre .hljs-title, 315 | .book.color-theme-2 .book-body .page-wrapper .page-inner section.normal code .hljs-title { 316 | color: #969896; 317 | } 318 | .book.color-theme-2 .book-body .page-wrapper .page-inner section.normal pre .hljs-variable, 319 | .book.color-theme-2 .book-body .page-wrapper .page-inner section.normal code .hljs-variable, 320 | .book.color-theme-2 .book-body .page-wrapper .page-inner section.normal pre .hljs-attribute, 321 | .book.color-theme-2 .book-body .page-wrapper .page-inner section.normal code .hljs-attribute, 322 | .book.color-theme-2 .book-body .page-wrapper .page-inner section.normal pre .hljs-tag, 323 | .book.color-theme-2 .book-body .page-wrapper .page-inner section.normal code .hljs-tag, 324 | .book.color-theme-2 .book-body .page-wrapper .page-inner section.normal pre .hljs-regexp, 325 | .book.color-theme-2 .book-body .page-wrapper .page-inner section.normal code .hljs-regexp, 326 | .book.color-theme-2 .book-body .page-wrapper .page-inner section.normal pre .hljs-deletion, 327 | .book.color-theme-2 .book-body .page-wrapper .page-inner section.normal code .hljs-deletion, 328 | .book.color-theme-2 .book-body .page-wrapper .page-inner section.normal pre .ruby .hljs-constant, 329 | .book.color-theme-2 .book-body .page-wrapper .page-inner section.normal code .ruby .hljs-constant, 330 | .book.color-theme-2 .book-body .page-wrapper .page-inner section.normal pre .xml .hljs-tag .hljs-title, 331 | .book.color-theme-2 .book-body .page-wrapper .page-inner section.normal code .xml .hljs-tag .hljs-title, 332 | .book.color-theme-2 .book-body .page-wrapper .page-inner section.normal pre .xml .hljs-pi, 333 | .book.color-theme-2 .book-body .page-wrapper .page-inner section.normal code .xml .hljs-pi, 334 | .book.color-theme-2 .book-body .page-wrapper .page-inner section.normal pre .xml .hljs-doctype, 335 | .book.color-theme-2 .book-body .page-wrapper .page-inner section.normal code .xml .hljs-doctype, 336 | .book.color-theme-2 .book-body .page-wrapper .page-inner section.normal pre .html .hljs-doctype, 337 | .book.color-theme-2 .book-body .page-wrapper .page-inner section.normal code .html .hljs-doctype, 338 | .book.color-theme-2 .book-body .page-wrapper .page-inner section.normal pre .css .hljs-id, 339 | .book.color-theme-2 .book-body .page-wrapper .page-inner section.normal code .css .hljs-id, 340 | .book.color-theme-2 .book-body .page-wrapper .page-inner section.normal pre .css .hljs-class, 341 | .book.color-theme-2 .book-body .page-wrapper .page-inner section.normal code .css .hljs-class, 342 | .book.color-theme-2 .book-body .page-wrapper .page-inner section.normal pre .css .hljs-pseudo, 343 | .book.color-theme-2 .book-body .page-wrapper .page-inner section.normal code .css .hljs-pseudo { 344 | color: #d54e53; 345 | } 346 | .book.color-theme-2 .book-body .page-wrapper .page-inner section.normal pre .hljs-number, 347 | .book.color-theme-2 .book-body .page-wrapper .page-inner section.normal code .hljs-number, 348 | .book.color-theme-2 .book-body .page-wrapper .page-inner section.normal pre .hljs-preprocessor, 349 | .book.color-theme-2 .book-body .page-wrapper .page-inner section.normal code .hljs-preprocessor, 350 | .book.color-theme-2 .book-body .page-wrapper .page-inner section.normal pre .hljs-pragma, 351 | .book.color-theme-2 .book-body .page-wrapper .page-inner section.normal code .hljs-pragma, 352 | .book.color-theme-2 .book-body .page-wrapper .page-inner section.normal pre .hljs-built_in, 353 | .book.color-theme-2 .book-body .page-wrapper .page-inner section.normal code .hljs-built_in, 354 | .book.color-theme-2 .book-body .page-wrapper .page-inner section.normal pre .hljs-literal, 355 | .book.color-theme-2 .book-body .page-wrapper .page-inner section.normal code .hljs-literal, 356 | .book.color-theme-2 .book-body .page-wrapper .page-inner section.normal pre .hljs-params, 357 | .book.color-theme-2 .book-body .page-wrapper .page-inner section.normal code .hljs-params, 358 | .book.color-theme-2 .book-body .page-wrapper .page-inner section.normal pre .hljs-constant, 359 | .book.color-theme-2 .book-body .page-wrapper .page-inner section.normal code .hljs-constant { 360 | color: #e78c45; 361 | } 362 | .book.color-theme-2 .book-body .page-wrapper .page-inner section.normal pre .ruby .hljs-class .hljs-title, 363 | .book.color-theme-2 .book-body .page-wrapper .page-inner section.normal code .ruby .hljs-class .hljs-title, 364 | .book.color-theme-2 .book-body .page-wrapper .page-inner section.normal pre .css .hljs-rules .hljs-attribute, 365 | .book.color-theme-2 .book-body .page-wrapper .page-inner section.normal code .css .hljs-rules .hljs-attribute { 366 | color: #e7c547; 367 | } 368 | .book.color-theme-2 .book-body .page-wrapper .page-inner section.normal pre .hljs-string, 369 | .book.color-theme-2 .book-body .page-wrapper .page-inner section.normal code .hljs-string, 370 | .book.color-theme-2 .book-body .page-wrapper .page-inner section.normal pre .hljs-value, 371 | .book.color-theme-2 .book-body .page-wrapper .page-inner section.normal code .hljs-value, 372 | .book.color-theme-2 .book-body .page-wrapper .page-inner section.normal pre .hljs-inheritance, 373 | .book.color-theme-2 .book-body .page-wrapper .page-inner section.normal code .hljs-inheritance, 374 | .book.color-theme-2 .book-body .page-wrapper .page-inner section.normal pre .hljs-header, 375 | .book.color-theme-2 .book-body .page-wrapper .page-inner section.normal code .hljs-header, 376 | .book.color-theme-2 .book-body .page-wrapper .page-inner section.normal pre .hljs-addition, 377 | .book.color-theme-2 .book-body .page-wrapper .page-inner section.normal code .hljs-addition, 378 | .book.color-theme-2 .book-body .page-wrapper .page-inner section.normal pre .ruby .hljs-symbol, 379 | .book.color-theme-2 .book-body .page-wrapper .page-inner section.normal code .ruby .hljs-symbol, 380 | .book.color-theme-2 .book-body .page-wrapper .page-inner section.normal pre .xml .hljs-cdata, 381 | .book.color-theme-2 .book-body .page-wrapper .page-inner section.normal code .xml .hljs-cdata { 382 | color: #b9ca4a; 383 | } 384 | .book.color-theme-2 .book-body .page-wrapper .page-inner section.normal pre .css .hljs-hexcolor, 385 | .book.color-theme-2 .book-body .page-wrapper .page-inner section.normal code .css .hljs-hexcolor { 386 | color: #70c0b1; 387 | } 388 | .book.color-theme-2 .book-body .page-wrapper .page-inner section.normal pre .hljs-function, 389 | .book.color-theme-2 .book-body .page-wrapper .page-inner section.normal code .hljs-function, 390 | .book.color-theme-2 .book-body .page-wrapper .page-inner section.normal pre .python .hljs-decorator, 391 | .book.color-theme-2 .book-body .page-wrapper .page-inner section.normal code .python .hljs-decorator, 392 | .book.color-theme-2 .book-body .page-wrapper .page-inner section.normal pre .python .hljs-title, 393 | .book.color-theme-2 .book-body .page-wrapper .page-inner section.normal code .python .hljs-title, 394 | .book.color-theme-2 .book-body .page-wrapper .page-inner section.normal pre .ruby .hljs-function .hljs-title, 395 | .book.color-theme-2 .book-body .page-wrapper .page-inner section.normal code .ruby .hljs-function .hljs-title, 396 | .book.color-theme-2 .book-body .page-wrapper .page-inner section.normal pre .ruby .hljs-title .hljs-keyword, 397 | .book.color-theme-2 .book-body .page-wrapper .page-inner section.normal code .ruby .hljs-title .hljs-keyword, 398 | .book.color-theme-2 .book-body .page-wrapper .page-inner section.normal pre .perl .hljs-sub, 399 | .book.color-theme-2 .book-body .page-wrapper .page-inner section.normal code .perl .hljs-sub, 400 | .book.color-theme-2 .book-body .page-wrapper .page-inner section.normal pre .javascript .hljs-title, 401 | .book.color-theme-2 .book-body .page-wrapper .page-inner section.normal code .javascript .hljs-title, 402 | .book.color-theme-2 .book-body .page-wrapper .page-inner section.normal pre .coffeescript .hljs-title, 403 | .book.color-theme-2 .book-body .page-wrapper .page-inner section.normal code .coffeescript .hljs-title { 404 | color: #7aa6da; 405 | } 406 | .book.color-theme-2 .book-body .page-wrapper .page-inner section.normal pre .hljs-keyword, 407 | .book.color-theme-2 .book-body .page-wrapper .page-inner section.normal code .hljs-keyword, 408 | .book.color-theme-2 .book-body .page-wrapper .page-inner section.normal pre .javascript .hljs-function, 409 | .book.color-theme-2 .book-body .page-wrapper .page-inner section.normal code .javascript .hljs-function { 410 | color: #c397d8; 411 | } 412 | .book.color-theme-2 .book-body .page-wrapper .page-inner section.normal pre .hljs, 413 | .book.color-theme-2 .book-body .page-wrapper .page-inner section.normal code .hljs { 414 | display: block; 415 | background: black; 416 | color: #eaeaea; 417 | padding: 0.5em; 418 | } 419 | .book.color-theme-2 .book-body .page-wrapper .page-inner section.normal pre .coffeescript .javascript, 420 | .book.color-theme-2 .book-body .page-wrapper .page-inner section.normal code .coffeescript .javascript, 421 | .book.color-theme-2 .book-body .page-wrapper .page-inner section.normal pre .javascript .xml, 422 | .book.color-theme-2 .book-body .page-wrapper .page-inner section.normal code .javascript .xml, 423 | .book.color-theme-2 .book-body .page-wrapper .page-inner section.normal pre .tex .hljs-formula, 424 | .book.color-theme-2 .book-body .page-wrapper .page-inner section.normal code .tex .hljs-formula, 425 | .book.color-theme-2 .book-body .page-wrapper .page-inner section.normal pre .xml .javascript, 426 | .book.color-theme-2 .book-body .page-wrapper .page-inner section.normal code .xml .javascript, 427 | .book.color-theme-2 .book-body .page-wrapper .page-inner section.normal pre .xml .vbscript, 428 | .book.color-theme-2 .book-body .page-wrapper .page-inner section.normal code .xml .vbscript, 429 | .book.color-theme-2 .book-body .page-wrapper .page-inner section.normal pre .xml .css, 430 | .book.color-theme-2 .book-body .page-wrapper .page-inner section.normal code .xml .css, 431 | .book.color-theme-2 .book-body .page-wrapper .page-inner section.normal pre .xml .hljs-cdata, 432 | .book.color-theme-2 .book-body .page-wrapper .page-inner section.normal code .xml .hljs-cdata { 433 | opacity: 0.5; 434 | } 435 | -------------------------------------------------------------------------------- /gitbook/gitbook-plugin-lunr/lunr.min.js: -------------------------------------------------------------------------------- 1 | /** 2 | * lunr - http://lunrjs.com - A bit like Solr, but much smaller and not as bright - 0.5.12 3 | * Copyright (C) 2015 Oliver Nightingale 4 | * MIT Licensed 5 | * @license 6 | */ 7 | !function(){var t=function(e){var n=new t.Index;return n.pipeline.add(t.trimmer,t.stopWordFilter,t.stemmer),e&&e.call(n,n),n};t.version="0.5.12",t.utils={},t.utils.warn=function(t){return function(e){t.console&&console.warn&&console.warn(e)}}(this),t.EventEmitter=function(){this.events={}},t.EventEmitter.prototype.addListener=function(){var t=Array.prototype.slice.call(arguments),e=t.pop(),n=t;if("function"!=typeof e)throw new TypeError("last argument must be a function");n.forEach(function(t){this.hasHandler(t)||(this.events[t]=[]),this.events[t].push(e)},this)},t.EventEmitter.prototype.removeListener=function(t,e){if(this.hasHandler(t)){var n=this.events[t].indexOf(e);this.events[t].splice(n,1),this.events[t].length||delete this.events[t]}},t.EventEmitter.prototype.emit=function(t){if(this.hasHandler(t)){var e=Array.prototype.slice.call(arguments,1);this.events[t].forEach(function(t){t.apply(void 0,e)})}},t.EventEmitter.prototype.hasHandler=function(t){return t in this.events},t.tokenizer=function(t){return arguments.length&&null!=t&&void 0!=t?Array.isArray(t)?t.map(function(t){return t.toLowerCase()}):t.toString().trim().toLowerCase().split(/[\s\-]+/):[]},t.Pipeline=function(){this._stack=[]},t.Pipeline.registeredFunctions={},t.Pipeline.registerFunction=function(e,n){n in this.registeredFunctions&&t.utils.warn("Overwriting existing registered function: "+n),e.label=n,t.Pipeline.registeredFunctions[e.label]=e},t.Pipeline.warnIfFunctionNotRegistered=function(e){var n=e.label&&e.label in this.registeredFunctions;n||t.utils.warn("Function is not registered with pipeline. This may cause problems when serialising the index.\n",e)},t.Pipeline.load=function(e){var n=new t.Pipeline;return e.forEach(function(e){var i=t.Pipeline.registeredFunctions[e];if(!i)throw new Error("Cannot load un-registered function: "+e);n.add(i)}),n},t.Pipeline.prototype.add=function(){var e=Array.prototype.slice.call(arguments);e.forEach(function(e){t.Pipeline.warnIfFunctionNotRegistered(e),this._stack.push(e)},this)},t.Pipeline.prototype.after=function(e,n){t.Pipeline.warnIfFunctionNotRegistered(n);var i=this._stack.indexOf(e);if(-1==i)throw new Error("Cannot find existingFn");i+=1,this._stack.splice(i,0,n)},t.Pipeline.prototype.before=function(e,n){t.Pipeline.warnIfFunctionNotRegistered(n);var i=this._stack.indexOf(e);if(-1==i)throw new Error("Cannot find existingFn");this._stack.splice(i,0,n)},t.Pipeline.prototype.remove=function(t){var e=this._stack.indexOf(t);-1!=e&&this._stack.splice(e,1)},t.Pipeline.prototype.run=function(t){for(var e=[],n=t.length,i=this._stack.length,o=0;n>o;o++){for(var r=t[o],s=0;i>s&&(r=this._stack[s](r,o,t),void 0!==r);s++);void 0!==r&&e.push(r)}return e},t.Pipeline.prototype.reset=function(){this._stack=[]},t.Pipeline.prototype.toJSON=function(){return this._stack.map(function(e){return t.Pipeline.warnIfFunctionNotRegistered(e),e.label})},t.Vector=function(){this._magnitude=null,this.list=void 0,this.length=0},t.Vector.Node=function(t,e,n){this.idx=t,this.val=e,this.next=n},t.Vector.prototype.insert=function(e,n){this._magnitude=void 0;var i=this.list;if(!i)return this.list=new t.Vector.Node(e,n,i),this.length++;if(en.idx?n=n.next:(i+=e.val*n.val,e=e.next,n=n.next);return i},t.Vector.prototype.similarity=function(t){return this.dot(t)/(this.magnitude()*t.magnitude())},t.SortedSet=function(){this.length=0,this.elements=[]},t.SortedSet.load=function(t){var e=new this;return e.elements=t,e.length=t.length,e},t.SortedSet.prototype.add=function(){var t,e;for(t=0;t1;){if(r===t)return o;t>r&&(e=o),r>t&&(n=o),i=n-e,o=e+Math.floor(i/2),r=this.elements[o]}return r===t?o:-1},t.SortedSet.prototype.locationFor=function(t){for(var e=0,n=this.elements.length,i=n-e,o=e+Math.floor(i/2),r=this.elements[o];i>1;)t>r&&(e=o),r>t&&(n=o),i=n-e,o=e+Math.floor(i/2),r=this.elements[o];return r>t?o:t>r?o+1:void 0},t.SortedSet.prototype.intersect=function(e){for(var n=new t.SortedSet,i=0,o=0,r=this.length,s=e.length,a=this.elements,h=e.elements;;){if(i>r-1||o>s-1)break;a[i]!==h[o]?a[i]h[o]&&o++:(n.add(a[i]),i++,o++)}return n},t.SortedSet.prototype.clone=function(){var e=new t.SortedSet;return e.elements=this.toArray(),e.length=e.elements.length,e},t.SortedSet.prototype.union=function(t){var e,n,i;return this.length>=t.length?(e=this,n=t):(e=t,n=this),i=e.clone(),i.add.apply(i,n.toArray()),i},t.SortedSet.prototype.toJSON=function(){return this.toArray()},t.Index=function(){this._fields=[],this._ref="id",this.pipeline=new t.Pipeline,this.documentStore=new t.Store,this.tokenStore=new t.TokenStore,this.corpusTokens=new t.SortedSet,this.eventEmitter=new t.EventEmitter,this._idfCache={},this.on("add","remove","update",function(){this._idfCache={}}.bind(this))},t.Index.prototype.on=function(){var t=Array.prototype.slice.call(arguments);return this.eventEmitter.addListener.apply(this.eventEmitter,t)},t.Index.prototype.off=function(t,e){return this.eventEmitter.removeListener(t,e)},t.Index.load=function(e){e.version!==t.version&&t.utils.warn("version mismatch: current "+t.version+" importing "+e.version);var n=new this;return n._fields=e.fields,n._ref=e.ref,n.documentStore=t.Store.load(e.documentStore),n.tokenStore=t.TokenStore.load(e.tokenStore),n.corpusTokens=t.SortedSet.load(e.corpusTokens),n.pipeline=t.Pipeline.load(e.pipeline),n},t.Index.prototype.field=function(t,e){var e=e||{},n={name:t,boost:e.boost||1};return this._fields.push(n),this},t.Index.prototype.ref=function(t){return this._ref=t,this},t.Index.prototype.add=function(e,n){var i={},o=new t.SortedSet,r=e[this._ref],n=void 0===n?!0:n;this._fields.forEach(function(n){var r=this.pipeline.run(t.tokenizer(e[n.name]));i[n.name]=r,t.SortedSet.prototype.add.apply(o,r)},this),this.documentStore.set(r,o),t.SortedSet.prototype.add.apply(this.corpusTokens,o.toArray());for(var s=0;s0&&(i=1+Math.log(this.documentStore.length/n)),this._idfCache[e]=i},t.Index.prototype.search=function(e){var n=this.pipeline.run(t.tokenizer(e)),i=new t.Vector,o=[],r=this._fields.reduce(function(t,e){return t+e.boost},0),s=n.some(function(t){return this.tokenStore.has(t)},this);if(!s)return[];n.forEach(function(e,n,s){var a=1/s.length*this._fields.length*r,h=this,l=this.tokenStore.expand(e).reduce(function(n,o){var r=h.corpusTokens.indexOf(o),s=h.idf(o),l=1,u=new t.SortedSet;if(o!==e){var c=Math.max(3,o.length-e.length);l=1/Math.log(c)}return r>-1&&i.insert(r,a*s*l),Object.keys(h.tokenStore.get(o)).forEach(function(t){u.add(t)}),n.union(u)},new t.SortedSet);o.push(l)},this);var a=o.reduce(function(t,e){return t.intersect(e)});return a.map(function(t){return{ref:t,score:i.similarity(this.documentVector(t))}},this).sort(function(t,e){return e.score-t.score})},t.Index.prototype.documentVector=function(e){for(var n=this.documentStore.get(e),i=n.length,o=new t.Vector,r=0;i>r;r++){var s=n.elements[r],a=this.tokenStore.get(s)[e].tf,h=this.idf(s);o.insert(this.corpusTokens.indexOf(s),a*h)}return o},t.Index.prototype.toJSON=function(){return{version:t.version,fields:this._fields,ref:this._ref,documentStore:this.documentStore.toJSON(),tokenStore:this.tokenStore.toJSON(),corpusTokens:this.corpusTokens.toJSON(),pipeline:this.pipeline.toJSON()}},t.Index.prototype.use=function(t){var e=Array.prototype.slice.call(arguments,1);e.unshift(this),t.apply(this,e)},t.Store=function(){this.store={},this.length=0},t.Store.load=function(e){var n=new this;return n.length=e.length,n.store=Object.keys(e.store).reduce(function(n,i){return n[i]=t.SortedSet.load(e.store[i]),n},{}),n},t.Store.prototype.set=function(t,e){this.has(t)||this.length++,this.store[t]=e},t.Store.prototype.get=function(t){return this.store[t]},t.Store.prototype.has=function(t){return t in this.store},t.Store.prototype.remove=function(t){this.has(t)&&(delete this.store[t],this.length--)},t.Store.prototype.toJSON=function(){return{store:this.store,length:this.length}},t.stemmer=function(){var t={ational:"ate",tional:"tion",enci:"ence",anci:"ance",izer:"ize",bli:"ble",alli:"al",entli:"ent",eli:"e",ousli:"ous",ization:"ize",ation:"ate",ator:"ate",alism:"al",iveness:"ive",fulness:"ful",ousness:"ous",aliti:"al",iviti:"ive",biliti:"ble",logi:"log"},e={icate:"ic",ative:"",alize:"al",iciti:"ic",ical:"ic",ful:"",ness:""},n="[^aeiou]",i="[aeiouy]",o=n+"[^aeiouy]*",r=i+"[aeiou]*",s="^("+o+")?"+r+o,a="^("+o+")?"+r+o+"("+r+")?$",h="^("+o+")?"+r+o+r+o,l="^("+o+")?"+i,u=new RegExp(s),c=new RegExp(h),f=new RegExp(a),d=new RegExp(l),p=/^(.+?)(ss|i)es$/,m=/^(.+?)([^s])s$/,v=/^(.+?)eed$/,y=/^(.+?)(ed|ing)$/,g=/.$/,S=/(at|bl|iz)$/,w=new RegExp("([^aeiouylsz])\\1$"),x=new RegExp("^"+o+i+"[^aeiouwxy]$"),k=/^(.+?[^aeiou])y$/,b=/^(.+?)(ational|tional|enci|anci|izer|bli|alli|entli|eli|ousli|ization|ation|ator|alism|iveness|fulness|ousness|aliti|iviti|biliti|logi)$/,E=/^(.+?)(icate|ative|alize|iciti|ical|ful|ness)$/,_=/^(.+?)(al|ance|ence|er|ic|able|ible|ant|ement|ment|ent|ou|ism|ate|iti|ous|ive|ize)$/,F=/^(.+?)(s|t)(ion)$/,O=/^(.+?)e$/,P=/ll$/,N=new RegExp("^"+o+i+"[^aeiouwxy]$"),T=function(n){var i,o,r,s,a,h,l;if(n.length<3)return n;if(r=n.substr(0,1),"y"==r&&(n=r.toUpperCase()+n.substr(1)),s=p,a=m,s.test(n)?n=n.replace(s,"$1$2"):a.test(n)&&(n=n.replace(a,"$1$2")),s=v,a=y,s.test(n)){var T=s.exec(n);s=u,s.test(T[1])&&(s=g,n=n.replace(s,""))}else if(a.test(n)){var T=a.exec(n);i=T[1],a=d,a.test(i)&&(n=i,a=S,h=w,l=x,a.test(n)?n+="e":h.test(n)?(s=g,n=n.replace(s,"")):l.test(n)&&(n+="e"))}if(s=k,s.test(n)){var T=s.exec(n);i=T[1],n=i+"i"}if(s=b,s.test(n)){var T=s.exec(n);i=T[1],o=T[2],s=u,s.test(i)&&(n=i+t[o])}if(s=E,s.test(n)){var T=s.exec(n);i=T[1],o=T[2],s=u,s.test(i)&&(n=i+e[o])}if(s=_,a=F,s.test(n)){var T=s.exec(n);i=T[1],s=c,s.test(i)&&(n=i)}else if(a.test(n)){var T=a.exec(n);i=T[1]+T[2],a=c,a.test(i)&&(n=i)}if(s=O,s.test(n)){var T=s.exec(n);i=T[1],s=c,a=f,h=N,(s.test(i)||a.test(i)&&!h.test(i))&&(n=i)}return s=P,a=c,s.test(n)&&a.test(n)&&(s=g,n=n.replace(s,"")),"y"==r&&(n=r.toLowerCase()+n.substr(1)),n};return T}(),t.Pipeline.registerFunction(t.stemmer,"stemmer"),t.stopWordFilter=function(e){return e&&t.stopWordFilter.stopWords[e]!==e?e:void 0},t.stopWordFilter.stopWords={a:"a",able:"able",about:"about",across:"across",after:"after",all:"all",almost:"almost",also:"also",am:"am",among:"among",an:"an",and:"and",any:"any",are:"are",as:"as",at:"at",be:"be",because:"because",been:"been",but:"but",by:"by",can:"can",cannot:"cannot",could:"could",dear:"dear",did:"did","do":"do",does:"does",either:"either","else":"else",ever:"ever",every:"every","for":"for",from:"from",get:"get",got:"got",had:"had",has:"has",have:"have",he:"he",her:"her",hers:"hers",him:"him",his:"his",how:"how",however:"however",i:"i","if":"if","in":"in",into:"into",is:"is",it:"it",its:"its",just:"just",least:"least",let:"let",like:"like",likely:"likely",may:"may",me:"me",might:"might",most:"most",must:"must",my:"my",neither:"neither",no:"no",nor:"nor",not:"not",of:"of",off:"off",often:"often",on:"on",only:"only",or:"or",other:"other",our:"our",own:"own",rather:"rather",said:"said",say:"say",says:"says",she:"she",should:"should",since:"since",so:"so",some:"some",than:"than",that:"that",the:"the",their:"their",them:"them",then:"then",there:"there",these:"these",they:"they","this":"this",tis:"tis",to:"to",too:"too",twas:"twas",us:"us",wants:"wants",was:"was",we:"we",were:"were",what:"what",when:"when",where:"where",which:"which","while":"while",who:"who",whom:"whom",why:"why",will:"will","with":"with",would:"would",yet:"yet",you:"you",your:"your"},t.Pipeline.registerFunction(t.stopWordFilter,"stopWordFilter"),t.trimmer=function(t){var e=t.replace(/^\W+/,"").replace(/\W+$/,"");return""===e?void 0:e},t.Pipeline.registerFunction(t.trimmer,"trimmer"),t.TokenStore=function(){this.root={docs:{}},this.length=0},t.TokenStore.load=function(t){var e=new this;return e.root=t.root,e.length=t.length,e},t.TokenStore.prototype.add=function(t,e,n){var n=n||this.root,i=t[0],o=t.slice(1);return i in n||(n[i]={docs:{}}),0===o.length?(n[i].docs[e.ref]=e,void(this.length+=1)):this.add(o,e,n[i])},t.TokenStore.prototype.has=function(t){if(!t)return!1;for(var e=this.root,n=0;no;o++){for(var r=t[o],s=0;i>s&&(r=this._stack[s](r,o,t),void 0!==r);s++);void 0!==r&&e.push(r)}return e},t.Pipeline.prototype.reset=function(){this._stack=[]},t.Pipeline.prototype.toJSON=function(){return this._stack.map(function(e){return t.Pipeline.warnIfFunctionNotRegistered(e),e.label})},t.Vector=function(){this._magnitude=null,this.list=void 0,this.length=0},t.Vector.Node=function(t,e,n){this.idx=t,this.val=e,this.next=n},t.Vector.prototype.insert=function(e,n){this._magnitude=void 0;var i=this.list;if(!i)return this.list=new t.Vector.Node(e,n,i),this.length++;if(en.idx?n=n.next:(i+=e.val*n.val,e=e.next,n=n.next);return i},t.Vector.prototype.similarity=function(t){return this.dot(t)/(this.magnitude()*t.magnitude())},t.SortedSet=function(){this.length=0,this.elements=[]},t.SortedSet.load=function(t){var e=new this;return e.elements=t,e.length=t.length,e},t.SortedSet.prototype.add=function(){var t,e;for(t=0;t1;){if(r===t)return o;t>r&&(e=o),r>t&&(n=o),i=n-e,o=e+Math.floor(i/2),r=this.elements[o]}return r===t?o:-1},t.SortedSet.prototype.locationFor=function(t){for(var e=0,n=this.elements.length,i=n-e,o=e+Math.floor(i/2),r=this.elements[o];i>1;)t>r&&(e=o),r>t&&(n=o),i=n-e,o=e+Math.floor(i/2),r=this.elements[o];return r>t?o:t>r?o+1:void 0},t.SortedSet.prototype.intersect=function(e){for(var n=new t.SortedSet,i=0,o=0,r=this.length,s=e.length,a=this.elements,h=e.elements;;){if(i>r-1||o>s-1)break;a[i]!==h[o]?a[i]h[o]&&o++:(n.add(a[i]),i++,o++)}return n},t.SortedSet.prototype.clone=function(){var e=new t.SortedSet;return e.elements=this.toArray(),e.length=e.elements.length,e},t.SortedSet.prototype.union=function(t){var e,n,i;return this.length>=t.length?(e=this,n=t):(e=t,n=this),i=e.clone(),i.add.apply(i,n.toArray()),i},t.SortedSet.prototype.toJSON=function(){return this.toArray()},t.Index=function(){this._fields=[],this._ref="id",this.pipeline=new t.Pipeline,this.documentStore=new t.Store,this.tokenStore=new t.TokenStore,this.corpusTokens=new t.SortedSet,this.eventEmitter=new t.EventEmitter,this._idfCache={},this.on("add","remove","update",function(){this._idfCache={}}.bind(this))},t.Index.prototype.on=function(){var t=Array.prototype.slice.call(arguments);return this.eventEmitter.addListener.apply(this.eventEmitter,t)},t.Index.prototype.off=function(t,e){return this.eventEmitter.removeListener(t,e)},t.Index.load=function(e){e.version!==t.version&&t.utils.warn("version mismatch: current "+t.version+" importing "+e.version);var n=new this;return n._fields=e.fields,n._ref=e.ref,n.documentStore=t.Store.load(e.documentStore),n.tokenStore=t.TokenStore.load(e.tokenStore),n.corpusTokens=t.SortedSet.load(e.corpusTokens),n.pipeline=t.Pipeline.load(e.pipeline),n},t.Index.prototype.field=function(t,e){var e=e||{},n={name:t,boost:e.boost||1};return this._fields.push(n),this},t.Index.prototype.ref=function(t){return this._ref=t,this},t.Index.prototype.add=function(e,n){var i={},o=new t.SortedSet,r=e[this._ref],n=void 0===n?!0:n;this._fields.forEach(function(n){var r=this.pipeline.run(t.tokenizer(e[n.name]));i[n.name]=r,t.SortedSet.prototype.add.apply(o,r)},this),this.documentStore.set(r,o),t.SortedSet.prototype.add.apply(this.corpusTokens,o.toArray());for(var s=0;s0&&(i=1+Math.log(this.documentStore.length/n)),this._idfCache[e]=i},t.Index.prototype.search=function(e){var n=this.pipeline.run(t.tokenizer(e)),i=new t.Vector,o=[],r=this._fields.reduce(function(t,e){return t+e.boost},0),s=n.some(function(t){return this.tokenStore.has(t)},this);if(!s)return[];n.forEach(function(e,n,s){var a=1/s.length*this._fields.length*r,h=this,l=this.tokenStore.expand(e).reduce(function(n,o){var r=h.corpusTokens.indexOf(o),s=h.idf(o),l=1,u=new t.SortedSet;if(o!==e){var c=Math.max(3,o.length-e.length);l=1/Math.log(c)}return r>-1&&i.insert(r,a*s*l),Object.keys(h.tokenStore.get(o)).forEach(function(t){u.add(t)}),n.union(u)},new t.SortedSet);o.push(l)},this);var a=o.reduce(function(t,e){return t.intersect(e)});return a.map(function(t){return{ref:t,score:i.similarity(this.documentVector(t))}},this).sort(function(t,e){return e.score-t.score})},t.Index.prototype.documentVector=function(e){for(var n=this.documentStore.get(e),i=n.length,o=new t.Vector,r=0;i>r;r++){var s=n.elements[r],a=this.tokenStore.get(s)[e].tf,h=this.idf(s);o.insert(this.corpusTokens.indexOf(s),a*h)}return o},t.Index.prototype.toJSON=function(){return{version:t.version,fields:this._fields,ref:this._ref,documentStore:this.documentStore.toJSON(),tokenStore:this.tokenStore.toJSON(),corpusTokens:this.corpusTokens.toJSON(),pipeline:this.pipeline.toJSON()}},t.Index.prototype.use=function(t){var e=Array.prototype.slice.call(arguments,1);e.unshift(this),t.apply(this,e)},t.Store=function(){this.store={},this.length=0},t.Store.load=function(e){var n=new this;return n.length=e.length,n.store=Object.keys(e.store).reduce(function(n,i){return n[i]=t.SortedSet.load(e.store[i]),n},{}),n},t.Store.prototype.set=function(t,e){this.has(t)||this.length++,this.store[t]=e},t.Store.prototype.get=function(t){return this.store[t]},t.Store.prototype.has=function(t){return t in this.store},t.Store.prototype.remove=function(t){this.has(t)&&(delete this.store[t],this.length--)},t.Store.prototype.toJSON=function(){return{store:this.store,length:this.length}},t.stemmer=function(){var t={ational:"ate",tional:"tion",enci:"ence",anci:"ance",izer:"ize",bli:"ble",alli:"al",entli:"ent",eli:"e",ousli:"ous",ization:"ize",ation:"ate",ator:"ate",alism:"al",iveness:"ive",fulness:"ful",ousness:"ous",aliti:"al",iviti:"ive",biliti:"ble",logi:"log"},e={icate:"ic",ative:"",alize:"al",iciti:"ic",ical:"ic",ful:"",ness:""},n="[^aeiou]",i="[aeiouy]",o=n+"[^aeiouy]*",r=i+"[aeiou]*",s="^("+o+")?"+r+o,a="^("+o+")?"+r+o+"("+r+")?$",h="^("+o+")?"+r+o+r+o,l="^("+o+")?"+i,u=new RegExp(s),c=new RegExp(h),f=new RegExp(a),d=new RegExp(l),p=/^(.+?)(ss|i)es$/,m=/^(.+?)([^s])s$/,v=/^(.+?)eed$/,y=/^(.+?)(ed|ing)$/,g=/.$/,S=/(at|bl|iz)$/,w=new RegExp("([^aeiouylsz])\\1$"),x=new RegExp("^"+o+i+"[^aeiouwxy]$"),k=/^(.+?[^aeiou])y$/,b=/^(.+?)(ational|tional|enci|anci|izer|bli|alli|entli|eli|ousli|ization|ation|ator|alism|iveness|fulness|ousness|aliti|iviti|biliti|logi)$/,E=/^(.+?)(icate|ative|alize|iciti|ical|ful|ness)$/,_=/^(.+?)(al|ance|ence|er|ic|able|ible|ant|ement|ment|ent|ou|ism|ate|iti|ous|ive|ize)$/,F=/^(.+?)(s|t)(ion)$/,O=/^(.+?)e$/,P=/ll$/,N=new RegExp("^"+o+i+"[^aeiouwxy]$"),T=function(n){var i,o,r,s,a,h,l;if(n.length<3)return n;if(r=n.substr(0,1),"y"==r&&(n=r.toUpperCase()+n.substr(1)),s=p,a=m,s.test(n)?n=n.replace(s,"$1$2"):a.test(n)&&(n=n.replace(a,"$1$2")),s=v,a=y,s.test(n)){var T=s.exec(n);s=u,s.test(T[1])&&(s=g,n=n.replace(s,""))}else if(a.test(n)){var T=a.exec(n);i=T[1],a=d,a.test(i)&&(n=i,a=S,h=w,l=x,a.test(n)?n+="e":h.test(n)?(s=g,n=n.replace(s,"")):l.test(n)&&(n+="e"))}if(s=k,s.test(n)){var T=s.exec(n);i=T[1],n=i+"i"}if(s=b,s.test(n)){var T=s.exec(n);i=T[1],o=T[2],s=u,s.test(i)&&(n=i+t[o])}if(s=E,s.test(n)){var T=s.exec(n);i=T[1],o=T[2],s=u,s.test(i)&&(n=i+e[o])}if(s=_,a=F,s.test(n)){var T=s.exec(n);i=T[1],s=c,s.test(i)&&(n=i)}else if(a.test(n)){var T=a.exec(n);i=T[1]+T[2],a=c,a.test(i)&&(n=i)}if(s=O,s.test(n)){var T=s.exec(n);i=T[1],s=c,a=f,h=N,(s.test(i)||a.test(i)&&!h.test(i))&&(n=i)}return s=P,a=c,s.test(n)&&a.test(n)&&(s=g,n=n.replace(s,"")),"y"==r&&(n=r.toLowerCase()+n.substr(1)),n};return T}(),t.Pipeline.registerFunction(t.stemmer,"stemmer"),t.stopWordFilter=function(e){return e&&t.stopWordFilter.stopWords[e]!==e?e:void 0},t.stopWordFilter.stopWords={a:"a",able:"able",about:"about",across:"across",after:"after",all:"all",almost:"almost",also:"also",am:"am",among:"among",an:"an",and:"and",any:"any",are:"are",as:"as",at:"at",be:"be",because:"because",been:"been",but:"but",by:"by",can:"can",cannot:"cannot",could:"could",dear:"dear",did:"did","do":"do",does:"does",either:"either","else":"else",ever:"ever",every:"every","for":"for",from:"from",get:"get",got:"got",had:"had",has:"has",have:"have",he:"he",her:"her",hers:"hers",him:"him",his:"his",how:"how",however:"however",i:"i","if":"if","in":"in",into:"into",is:"is",it:"it",its:"its",just:"just",least:"least",let:"let",like:"like",likely:"likely",may:"may",me:"me",might:"might",most:"most",must:"must",my:"my",neither:"neither",no:"no",nor:"nor",not:"not",of:"of",off:"off",often:"often",on:"on",only:"only",or:"or",other:"other",our:"our",own:"own",rather:"rather",said:"said",say:"say",says:"says",she:"she",should:"should",since:"since",so:"so",some:"some",than:"than",that:"that",the:"the",their:"their",them:"them",then:"then",there:"there",these:"these",they:"they","this":"this",tis:"tis",to:"to",too:"too",twas:"twas",us:"us",wants:"wants",was:"was",we:"we",were:"were",what:"what",when:"when",where:"where",which:"which","while":"while",who:"who",whom:"whom",why:"why",will:"will","with":"with",would:"would",yet:"yet",you:"you",your:"your"},t.Pipeline.registerFunction(t.stopWordFilter,"stopWordFilter"),t.trimmer=function(t){var e=t.replace(/^\W+/,"").replace(/\W+$/,"");return""===e?void 0:e},t.Pipeline.registerFunction(t.trimmer,"trimmer"),t.TokenStore=function(){this.root={docs:{}},this.length=0},t.TokenStore.load=function(t){var e=new this;return e.root=t.root,e.length=t.length,e},t.TokenStore.prototype.add=function(t,e,n){var n=n||this.root,i=t[0],o=t.slice(1);return i in n||(n[i]={docs:{}}),0===o.length?(n[i].docs[e.ref]=e,void(this.length+=1)):this.add(o,e,n[i])},t.TokenStore.prototype.has=function(t){if(!t)return!1;for(var e=this.root,n=0;n element for each result 48 | res.results.forEach(function(res) { 49 | var $li = $('
      • ', { 50 | 'class': 'search-results-item' 51 | }); 52 | 53 | var $title = $('

        '); 54 | 55 | var $link = $('', { 56 | 'href': gitbook.state.basePath + '/' + res.url, 57 | 'text': res.title 58 | }); 59 | 60 | var content = res.body.trim(); 61 | if (content.length > MAX_DESCRIPTION_SIZE) { 62 | content = content.slice(0, MAX_DESCRIPTION_SIZE).trim()+'...'; 63 | } 64 | var $content = $('

        ').html(content); 65 | 66 | $link.appendTo($title); 67 | $title.appendTo($li); 68 | $content.appendTo($li); 69 | $li.appendTo($searchList); 70 | }); 71 | } 72 | 73 | function launchSearch(q) { 74 | // Add class for loading 75 | $body.addClass('with-search'); 76 | $body.addClass('search-loading'); 77 | 78 | // Launch search query 79 | throttle(gitbook.search.query(q, 0, MAX_RESULTS) 80 | .then(function(results) { 81 | displayResults(results); 82 | }) 83 | .always(function() { 84 | $body.removeClass('search-loading'); 85 | }), 1000); 86 | } 87 | 88 | function closeSearch() { 89 | $body.removeClass('with-search'); 90 | $bookSearchResults.removeClass('open'); 91 | } 92 | 93 | function launchSearchFromQueryString() { 94 | var q = getParameterByName('q'); 95 | if (q && q.length > 0) { 96 | // Update search input 97 | $searchInput.val(q); 98 | 99 | // Launch search 100 | launchSearch(q); 101 | } 102 | } 103 | 104 | function bindSearch() { 105 | // Bind DOM 106 | $searchInput = $('#book-search-input input'); 107 | $bookSearchResults = $('#book-search-results'); 108 | $searchList = $bookSearchResults.find('.search-results-list'); 109 | $searchTitle = $bookSearchResults.find('.search-results-title'); 110 | $searchResultsCount = $searchTitle.find('.search-results-count'); 111 | $searchQuery = $searchTitle.find('.search-query'); 112 | 113 | // Launch query based on input content 114 | function handleUpdate() { 115 | var q = $searchInput.val(); 116 | 117 | if (q.length == 0) { 118 | closeSearch(); 119 | } 120 | else { 121 | launchSearch(q); 122 | } 123 | } 124 | 125 | // Detect true content change in search input 126 | // Workaround for IE < 9 127 | var propertyChangeUnbound = false; 128 | $searchInput.on('propertychange', function(e) { 129 | if (e.originalEvent.propertyName == 'value') { 130 | handleUpdate(); 131 | } 132 | }); 133 | 134 | // HTML5 (IE9 & others) 135 | $searchInput.on('input', function(e) { 136 | // Unbind propertychange event for IE9+ 137 | if (!propertyChangeUnbound) { 138 | $(this).unbind('propertychange'); 139 | propertyChangeUnbound = true; 140 | } 141 | 142 | handleUpdate(); 143 | }); 144 | 145 | // Push to history on blur 146 | $searchInput.on('blur', function(e) { 147 | // Update history state 148 | if (usePushState) { 149 | var uri = updateQueryString('q', $(this).val()); 150 | history.pushState({ path: uri }, null, uri); 151 | } 152 | }); 153 | } 154 | 155 | gitbook.events.on('page.change', function() { 156 | bindSearch(); 157 | closeSearch(); 158 | 159 | // Launch search based on query parameter 160 | if (gitbook.search.isInitialized()) { 161 | launchSearchFromQueryString(); 162 | } 163 | }); 164 | 165 | gitbook.events.on('search.ready', function() { 166 | bindSearch(); 167 | 168 | // Launch search from query param at start 169 | launchSearchFromQueryString(); 170 | }); 171 | 172 | function getParameterByName(name) { 173 | var url = window.location.href; 174 | name = name.replace(/[\[\]]/g, '\\$&'); 175 | var regex = new RegExp('[?&]' + name + '(=([^&#]*)|&|#|$)', 'i'), 176 | results = regex.exec(url); 177 | if (!results) return null; 178 | if (!results[2]) return ''; 179 | return decodeURIComponent(results[2].replace(/\+/g, ' ')); 180 | } 181 | 182 | function updateQueryString(key, value) { 183 | value = encodeURIComponent(value); 184 | 185 | var url = window.location.href; 186 | var re = new RegExp('([?&])' + key + '=.*?(&|#|$)(.*)', 'gi'), 187 | hash; 188 | 189 | if (re.test(url)) { 190 | if (typeof value !== 'undefined' && value !== null) 191 | return url.replace(re, '$1' + key + '=' + value + '$2$3'); 192 | else { 193 | hash = url.split('#'); 194 | url = hash[0].replace(re, '$1$3').replace(/(&|\?)$/, ''); 195 | if (typeof hash[1] !== 'undefined' && hash[1] !== null) 196 | url += '#' + hash[1]; 197 | return url; 198 | } 199 | } 200 | else { 201 | if (typeof value !== 'undefined' && value !== null) { 202 | var separator = url.indexOf('?') !== -1 ? '&' : '?'; 203 | hash = url.split('#'); 204 | url = hash[0] + separator + key + '=' + value; 205 | if (typeof hash[1] !== 'undefined' && hash[1] !== null) 206 | url += '#' + hash[1]; 207 | return url; 208 | } 209 | else 210 | return url; 211 | } 212 | } 213 | }); 214 | -------------------------------------------------------------------------------- /gitbook/gitbook-plugin-sharing/buttons.js: -------------------------------------------------------------------------------- 1 | require(['gitbook', 'jquery'], function(gitbook, $) { 2 | var SITES = { 3 | 'facebook': { 4 | 'label': 'Facebook', 5 | 'icon': 'fa fa-facebook', 6 | 'onClick': function(e) { 7 | e.preventDefault(); 8 | window.open('http://www.facebook.com/sharer/sharer.php?s=100&p[url]='+encodeURIComponent(location.href)); 9 | } 10 | }, 11 | 'twitter': { 12 | 'label': 'Twitter', 13 | 'icon': 'fa fa-twitter', 14 | 'onClick': function(e) { 15 | e.preventDefault(); 16 | window.open('http://twitter.com/home?status='+encodeURIComponent(document.title+' '+location.href)); 17 | } 18 | }, 19 | 'google': { 20 | 'label': 'Google+', 21 | 'icon': 'fa fa-google-plus', 22 | 'onClick': function(e) { 23 | e.preventDefault(); 24 | window.open('https://plus.google.com/share?url='+encodeURIComponent(location.href)); 25 | } 26 | }, 27 | 'weibo': { 28 | 'label': 'Weibo', 29 | 'icon': 'fa fa-weibo', 30 | 'onClick': function(e) { 31 | e.preventDefault(); 32 | window.open('http://service.weibo.com/share/share.php?content=utf-8&url='+encodeURIComponent(location.href)+'&title='+encodeURIComponent(document.title)); 33 | } 34 | }, 35 | 'instapaper': { 36 | 'label': 'Instapaper', 37 | 'icon': 'fa fa-instapaper', 38 | 'onClick': function(e) { 39 | e.preventDefault(); 40 | window.open('http://www.instapaper.com/text?u='+encodeURIComponent(location.href)); 41 | } 42 | }, 43 | 'vk': { 44 | 'label': 'VK', 45 | 'icon': 'fa fa-vk', 46 | 'onClick': function(e) { 47 | e.preventDefault(); 48 | window.open('http://vkontakte.ru/share.php?url='+encodeURIComponent(location.href)); 49 | } 50 | } 51 | }; 52 | 53 | 54 | 55 | gitbook.events.bind('start', function(e, config) { 56 | var opts = config.sharing; 57 | 58 | // Create dropdown menu 59 | var menu = $.map(opts.all, function(id) { 60 | var site = SITES[id]; 61 | 62 | return { 63 | text: site.label, 64 | onClick: site.onClick 65 | }; 66 | }); 67 | 68 | // Create main button with dropdown 69 | if (menu.length > 0) { 70 | gitbook.toolbar.createButton({ 71 | icon: 'fa fa-share-alt', 72 | label: 'Share', 73 | position: 'right', 74 | dropdown: [menu] 75 | }); 76 | } 77 | 78 | // Direct actions to share 79 | $.each(SITES, function(sideId, site) { 80 | if (!opts[sideId]) return; 81 | 82 | gitbook.toolbar.createButton({ 83 | icon: site.icon, 84 | label: site.text, 85 | position: 'right', 86 | onClick: site.onClick 87 | }); 88 | }); 89 | }); 90 | }); 91 | -------------------------------------------------------------------------------- /gitbook/gitbook-plugin-theme-api/theme-api.css: -------------------------------------------------------------------------------- 1 | /*! 2 | * Preboot v2 3 | * 4 | * Open sourced under MIT license by @mdo. 5 | * Some variables and mixins from Bootstrap (Apache 2 license). 6 | */.api-method{margin:30px -30px}.api-method:last-of-type{margin-bottom:0}.api-method .api-method-definition{padding:0 30px}.api-method .api-method-code{padding:30px 30px 15px;background-color:#FEFEFE;border-top:1px solid #F1EFEF;border-bottom:1px solid #F1EFEF}.api-method .api-method-code pre>code{white-space:pre-wrap;white-space:-moz- pre-wrap;white-space:- pre-wrap;white-space:-o- pre-wrap;word-wrap:break-word}.api-method:after{clear:both}.book.two-columns .api-method{position:relative;width:calc(100% + 60px)}.book.two-columns .api-method:after{content:" ";display:block;visibility:hidden;clear:both}.book.two-columns .api-method .api-method-title{margin-top:0}.book.two-columns .api-method .api-method-definition{float:left;width:50%}.book.two-columns .api-method .api-method-code{position:relative;float:left;width:50%;padding:30px 30px 15px;border-left:1px solid #F1EFEF;border-top:none;border-bottom:none;transition:opacity .3s ease}.book.two-columns .page-wrapper.comments-open-from-definition .api-method-code{opacity:.1}.book-header{padding:0;position:fixed;top:0;left:0;right:0;background-color:#FFF;border-bottom:1px solid rgba(0,0,0,.07);-webkit-transition:left 250ms ease;-moz-transition:left 250ms ease;-o-transition:left 250ms ease;transition:left 250ms ease}.book.with-summary .book-header{left:300px}@media (max-width:600px){.book.with-summary .book-header{left:0}}.book-header .btn.lang-switcher{text-transform:none;font-weight:500;border-radius:0}.book-header .btn.lang-switcher.active{background-color:#03677D;color:#FFF}#book-search-results .search-results{padding:20px 30px 0}#book-search-input{padding:5px;margin-top:0}.book .book-body .page-wrapper .page-inner .comments-section{max-width:calc(100% - 40px)}.book .book-body .page-wrapper .page-inner .comments-section .comments-area{z-index:1}.book .book-body .page-wrapper.comments-open-from-definition .page-inner{left:0!important}.color-theme-3 .dropdown-menu{background-color:#2D3134;border-color:#373B3E}.color-theme-3 .dropdown-menu .dropdown-caret .caret-inner{border-bottom:9px solid #2D3134}.color-theme-3 .dropdown-menu .buttons{border-color:#373B3E}.color-theme-3 .dropdown-menu .button{color:#D0D4D7}.color-theme-3 .dropdown-menu .button:hover{color:#EEE}.book.color-theme-3 .book-header{color:#D0D4D7;background:#272B2D}.book.color-theme-3 .book-header .btn{color:#D0D4D7}.book.color-theme-3 .book-header .btn:hover{color:#EEE;background:0 0}.book.color-theme-3 .book-header .btn.lang-switcher.active{background-color:#186469}.book.color-theme-3 .book-header .btn.lang-switcher.active:hover{background-color:#186469}.book.color-theme-3 .book-header h1{color:#EEE}.book.color-theme-3 .book-body section a{color:#3EAAB1}.book.color-theme-3 .book-body section .api-method-code{color:#EEE;background-color:#272B2D}.book.color-theme-3 .book-body section .api-method-code h1,.book.color-theme-3 .book-body section .api-method-code h2,.book.color-theme-3 .book-body section .api-method-code h3,.book.color-theme-3 .book-body section .api-method-code h4,.book.color-theme-3 .book-body section .api-method-code h5,.book.color-theme-3 .book-body section .api-method-code h6{color:#fff}.book.color-theme-3 .book-body section .api-method-code h6{color:#D0D4D7}.book.color-theme-3 .book-body section .api-method-code hr{background-color:#373B3E}.book.color-theme-3 .book-body section .api-method-code blockquote{border-color:#373B3E}.book.color-theme-3 .book-body section .api-method-code code,.book.color-theme-3 .book-body section .api-method-code pre{color:#EEE;background-color:#2D3134;border-radius:3px}.book.color-theme-3 .book-body section .api-method-code table{border-collapse:separate;border:1px solid #373B3E;border-radius:3px}.book.color-theme-3 .book-body section .api-method-code table td,.book.color-theme-3 .book-body section .api-method-code table th{border:none}.book.color-theme-3 .book-body section .api-method-code table th{border-bottom:1px solid #373B3E}.book.color-theme-3 .book-body section .api-method-code table tr{color:#EEE;background-color:transparent}.book.color-theme-3 .book-body section .api-method-code table tr:nth-child(2n){background-color:#2D3134}.book.color-theme-3 .book-body .page-wrapper .page-inner section.normal .api-method-code code .hljs,.book.color-theme-3 .book-body .page-wrapper .page-inner section.normal .api-method-code pre .hljs{display:block;overflow-x:auto;padding:.5em;background:#474949;color:#d1d9e1}.book.color-theme-3 .book-body .page-wrapper .page-inner section.normal .api-method-code code .hljs-comment,.book.color-theme-3 .book-body .page-wrapper .page-inner section.normal .api-method-code code .hljs-quote,.book.color-theme-3 .book-body .page-wrapper .page-inner section.normal .api-method-code pre .hljs-comment,.book.color-theme-3 .book-body .page-wrapper .page-inner section.normal .api-method-code pre .hljs-quote{color:#969896;font-style:italic}.book.color-theme-3 .book-body .page-wrapper .page-inner section.normal .api-method-code code .hljs-addition,.book.color-theme-3 .book-body .page-wrapper .page-inner section.normal .api-method-code code .hljs-keyword,.book.color-theme-3 .book-body .page-wrapper .page-inner section.normal .api-method-code code .hljs-literal,.book.color-theme-3 .book-body .page-wrapper .page-inner section.normal .api-method-code code .hljs-selector-tag,.book.color-theme-3 .book-body .page-wrapper .page-inner section.normal .api-method-code code .hljs-type,.book.color-theme-3 .book-body .page-wrapper .page-inner section.normal .api-method-code pre .hljs-addition,.book.color-theme-3 .book-body .page-wrapper .page-inner section.normal .api-method-code pre .hljs-keyword,.book.color-theme-3 .book-body .page-wrapper .page-inner section.normal .api-method-code pre .hljs-literal,.book.color-theme-3 .book-body .page-wrapper .page-inner section.normal .api-method-code pre .hljs-selector-tag,.book.color-theme-3 .book-body .page-wrapper .page-inner section.normal .api-method-code pre .hljs-type{color:#c9c}.book.color-theme-3 .book-body .page-wrapper .page-inner section.normal .api-method-code code .hljs-number,.book.color-theme-3 .book-body .page-wrapper .page-inner section.normal .api-method-code code .hljs-selector-attr,.book.color-theme-3 .book-body .page-wrapper .page-inner section.normal .api-method-code code .hljs-selector-pseudo,.book.color-theme-3 .book-body .page-wrapper .page-inner section.normal .api-method-code pre .hljs-number,.book.color-theme-3 .book-body .page-wrapper .page-inner section.normal .api-method-code pre .hljs-selector-attr,.book.color-theme-3 .book-body .page-wrapper .page-inner section.normal .api-method-code pre .hljs-selector-pseudo{color:#f99157}.book.color-theme-3 .book-body .page-wrapper .page-inner section.normal .api-method-code code .hljs-doctag,.book.color-theme-3 .book-body .page-wrapper .page-inner section.normal .api-method-code code .hljs-regexp,.book.color-theme-3 .book-body .page-wrapper .page-inner section.normal .api-method-code code .hljs-string,.book.color-theme-3 .book-body .page-wrapper .page-inner section.normal .api-method-code pre .hljs-doctag,.book.color-theme-3 .book-body .page-wrapper .page-inner section.normal .api-method-code pre .hljs-regexp,.book.color-theme-3 .book-body .page-wrapper .page-inner section.normal .api-method-code pre .hljs-string{color:#8abeb7}.book.color-theme-3 .book-body .page-wrapper .page-inner section.normal .api-method-code code .hljs-built_in,.book.color-theme-3 .book-body .page-wrapper .page-inner section.normal .api-method-code code .hljs-name,.book.color-theme-3 .book-body .page-wrapper .page-inner section.normal .api-method-code code .hljs-section,.book.color-theme-3 .book-body .page-wrapper .page-inner section.normal .api-method-code code .hljs-title,.book.color-theme-3 .book-body .page-wrapper .page-inner section.normal .api-method-code pre .hljs-built_in,.book.color-theme-3 .book-body .page-wrapper .page-inner section.normal .api-method-code pre .hljs-name,.book.color-theme-3 .book-body .page-wrapper .page-inner section.normal .api-method-code pre .hljs-section,.book.color-theme-3 .book-body .page-wrapper .page-inner section.normal .api-method-code pre .hljs-title{color:#b5bd68}.book.color-theme-3 .book-body .page-wrapper .page-inner section.normal .api-method-code code .hljs-class .hljs-title,.book.color-theme-3 .book-body .page-wrapper .page-inner section.normal .api-method-code code .hljs-selector-id,.book.color-theme-3 .book-body .page-wrapper .page-inner section.normal .api-method-code code .hljs-template-variable,.book.color-theme-3 .book-body .page-wrapper .page-inner section.normal .api-method-code code .hljs-variable,.book.color-theme-3 .book-body .page-wrapper .page-inner section.normal .api-method-code pre .hljs-class .hljs-title,.book.color-theme-3 .book-body .page-wrapper .page-inner section.normal .api-method-code pre .hljs-selector-id,.book.color-theme-3 .book-body .page-wrapper .page-inner section.normal .api-method-code pre .hljs-template-variable,.book.color-theme-3 .book-body .page-wrapper .page-inner section.normal .api-method-code pre .hljs-variable{color:#fc6}.book.color-theme-3 .book-body .page-wrapper .page-inner section.normal .api-method-code code .hljs-name,.book.color-theme-3 .book-body .page-wrapper .page-inner section.normal .api-method-code code .hljs-section,.book.color-theme-3 .book-body .page-wrapper .page-inner section.normal .api-method-code code .hljs-strong,.book.color-theme-3 .book-body .page-wrapper .page-inner section.normal .api-method-code pre .hljs-name,.book.color-theme-3 .book-body .page-wrapper .page-inner section.normal .api-method-code pre .hljs-section,.book.color-theme-3 .book-body .page-wrapper .page-inner section.normal .api-method-code pre .hljs-strong{font-weight:700}.book.color-theme-3 .book-body .page-wrapper .page-inner section.normal .api-method-code code .hljs-bullet,.book.color-theme-3 .book-body .page-wrapper .page-inner section.normal .api-method-code code .hljs-link,.book.color-theme-3 .book-body .page-wrapper .page-inner section.normal .api-method-code code .hljs-meta,.book.color-theme-3 .book-body .page-wrapper .page-inner section.normal .api-method-code code .hljs-subst,.book.color-theme-3 .book-body .page-wrapper .page-inner section.normal .api-method-code code .hljs-symbol,.book.color-theme-3 .book-body .page-wrapper .page-inner section.normal .api-method-code pre .hljs-bullet,.book.color-theme-3 .book-body .page-wrapper .page-inner section.normal .api-method-code pre .hljs-link,.book.color-theme-3 .book-body .page-wrapper .page-inner section.normal .api-method-code pre .hljs-meta,.book.color-theme-3 .book-body .page-wrapper .page-inner section.normal .api-method-code pre .hljs-subst,.book.color-theme-3 .book-body .page-wrapper .page-inner section.normal .api-method-code pre .hljs-symbol{color:#f99157}.book.color-theme-3 .book-body .page-wrapper .page-inner section.normal .api-method-code code .hljs-deletion,.book.color-theme-3 .book-body .page-wrapper .page-inner section.normal .api-method-code pre .hljs-deletion{color:#dc322f}.book.color-theme-3 .book-body .page-wrapper .page-inner section.normal .api-method-code code .hljs-formula,.book.color-theme-3 .book-body .page-wrapper .page-inner section.normal .api-method-code pre .hljs-formula{background:#eee8d5}.book.color-theme-3 .book-body .page-wrapper .page-inner section.normal .api-method-code code .hljs-attr,.book.color-theme-3 .book-body .page-wrapper .page-inner section.normal .api-method-code code .hljs-attribute,.book.color-theme-3 .book-body .page-wrapper .page-inner section.normal .api-method-code pre .hljs-attr,.book.color-theme-3 .book-body .page-wrapper .page-inner section.normal .api-method-code pre .hljs-attribute{color:#81a2be}.book.color-theme-3 .book-body .page-wrapper .page-inner section.normal .api-method-code code .hljs-emphasis,.book.color-theme-3 .book-body .page-wrapper .page-inner section.normal .api-method-code pre .hljs-emphasis{font-style:italic}.page-inner{max-width:100%;padding:0;margin-top:50px}.markdown-section{padding:20px 30px 0} -------------------------------------------------------------------------------- /gitbook/gitbook-plugin-theme-api/theme-api.js: -------------------------------------------------------------------------------- 1 | require(["gitbook","jquery"],function(t,e){function n(e){r=t.storage.get("themeApi",{split:e.split,currentLang:null})}function a(){t.storage.set("themeApi",r),i()}function i(){e(".book").toggleClass("two-columns",r.split),s=e(".api-method-sample"),s.each(function(){var t=!(e(this).data("lang")==r.currentLang);e(this).toggleClass("hidden",t)})}function o(){t.toolbar.removeButtons(c),c=[],s=e(".api-method-sample");var n=[],i=!1;s.each(function(){var t,a,o=!1,s=e(this).data("lang"),c=e(this).data("name");s==r.currentLang&&(i=!0,o=!0),t=e.grep(n,function(t){return t.name==c}),a=!!t.length,a||n.push({name:c,lang:s,"default":o})}),n.reverse(),e.each(n,function(o,s){var l,g=s["default"]||!i&&o==n.length-1;l=t.toolbar.createButton({text:s.name,position:"right",className:"lang-switcher"+(g?" active":""),onClick:function(t){r.currentLang=s.lang,a(),e(".btn.lang-switcher.active").removeClass("active"),e(t.currentTarget).addClass("active")}}),c.push(l),g&&(r.currentLang=s.lang)})}var s,r,c=[],l=[{config:"light",text:"Light",id:0},{config:"dark",text:"Dark",id:3}];t.events.bind("start",function(e,i){var o=i["theme-api"];t.toolbar.createButton({icon:"fa fa-columns",label:"Change Layout",onClick:function(){r.split=!r.split,a()}}),t.fontsettings.setThemes(l),t.fontsettings.setTheme(o.theme),n(o)}),t.events.on("page.change",function(){o(),i()}),t.events.on("comment.toggled",function(e,n,a){if(n.parents(".api-method-definition").length){var i=t.state.$book.find(".page-wrapper");i.toggleClass("comments-open-from-definition",a&&r.split)}})}); 2 | -------------------------------------------------------------------------------- /gitbook/images/apple-touch-icon-precomposed-152.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Jokcy/react-book/f8603324852a2a304b825e6b36b7a5c28b6f20e5/gitbook/images/apple-touch-icon-precomposed-152.png -------------------------------------------------------------------------------- /gitbook/images/batchedUpdates.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Jokcy/react-book/f8603324852a2a304b825e6b36b7a5c28b6f20e5/gitbook/images/batchedUpdates.png -------------------------------------------------------------------------------- /gitbook/images/element-fiber-update-ReactElementTree.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Jokcy/react-book/f8603324852a2a304b825e6b36b7a5c28b6f20e5/gitbook/images/element-fiber-update-ReactElementTree.png -------------------------------------------------------------------------------- /gitbook/images/favicon.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Jokcy/react-book/f8603324852a2a304b825e6b36b7a5c28b6f20e5/gitbook/images/favicon.ico -------------------------------------------------------------------------------- /gitbook/images/fiber-tree.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Jokcy/react-book/f8603324852a2a304b825e6b36b7a5c28b6f20e5/gitbook/images/fiber-tree.png -------------------------------------------------------------------------------- /gitbook/images/finalizeInitialChidren.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Jokcy/react-book/f8603324852a2a304b825e6b36b7a5c28b6f20e5/gitbook/images/finalizeInitialChidren.png -------------------------------------------------------------------------------- /gitbook/images/finalizeInitialChildren.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Jokcy/react-book/f8603324852a2a304b825e6b36b7a5c28b6f20e5/gitbook/images/finalizeInitialChildren.png -------------------------------------------------------------------------------- /gitbook/images/hooks-struct.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Jokcy/react-book/f8603324852a2a304b825e6b36b7a5c28b6f20e5/gitbook/images/hooks-struct.png -------------------------------------------------------------------------------- /gitbook/images/placeholder.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Jokcy/react-book/f8603324852a2a304b825e6b36b7a5c28b6f20e5/gitbook/images/placeholder.png -------------------------------------------------------------------------------- /gitbook/images/react-children-map.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Jokcy/react-book/f8603324852a2a304b825e6b36b7a5c28b6f20e5/gitbook/images/react-children-map.png -------------------------------------------------------------------------------- /gitbook/images/react-commit-deletion.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Jokcy/react-book/f8603324852a2a304b825e6b36b7a5c28b6f20e5/gitbook/images/react-commit-deletion.png -------------------------------------------------------------------------------- /gitbook/images/react-expiration-time-demo-simple.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Jokcy/react-book/f8603324852a2a304b825e6b36b7a5c28b6f20e5/gitbook/images/react-expiration-time-demo-simple.png -------------------------------------------------------------------------------- /gitbook/images/react-hooks.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Jokcy/react-book/f8603324852a2a304b825e6b36b7a5c28b6f20e5/gitbook/images/react-hooks.png -------------------------------------------------------------------------------- /gitbook/images/react-scheduler-frame-Page-1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Jokcy/react-book/f8603324852a2a304b825e6b36b7a5c28b6f20e5/gitbook/images/react-scheduler-frame-Page-1.png -------------------------------------------------------------------------------- /gitbook/images/scheduler-fiber-scheduler.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Jokcy/react-book/f8603324852a2a304b825e6b36b7a5c28b6f20e5/gitbook/images/scheduler-fiber-scheduler.png -------------------------------------------------------------------------------- /gitbook/images/work-loop.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Jokcy/react-book/f8603324852a2a304b825e6b36b7a5c28b6f20e5/gitbook/images/work-loop.png -------------------------------------------------------------------------------- /google06a3a8e2d08a4bf2.html: -------------------------------------------------------------------------------- 1 | google-site-verification: google06a3a8e2d08a4bf2.html -------------------------------------------------------------------------------- /publish.sh: -------------------------------------------------------------------------------- 1 | rm -rf _book 2 | 3 | gitbook build 4 | 5 | cd _book 6 | 7 | find . -name \*.md -type f -delete 8 | 9 | cp ../google06a3a8e2d08a4bf2.html . 10 | 11 | git init 12 | 13 | git add . 14 | 15 | git commit -m "publish" 16 | 17 | git remote add origin git@github.com:Jokcy/react-book.git 18 | 19 | git push origin master -f 20 | 21 | cd .. 22 | -------------------------------------------------------------------------------- /styles/website.css: -------------------------------------------------------------------------------- 1 | #cs-footer { 2 | display: flex; 3 | flex-direction: column; 4 | align-items: flex-end; 5 | justify-content: center; 6 | } 7 | 8 | #cs-footer * { 9 | color: #666; 10 | } 11 | 12 | #cs-footer a { 13 | text-decoration: underline; 14 | color: #555; 15 | } 16 | 17 | #disqus_thread { 18 | padding: 0 40px; 19 | } 20 | 21 | .body-inner .page-wrapper { 22 | padding-bottom: 20px; 23 | } 24 | 25 | .buttondown-form { 26 | display: flex; 27 | flex-direction: column; 28 | padding: 20px; 29 | } 30 | 31 | .buttondown-form label { 32 | font-weight: 900; 33 | font-size: 16px; 34 | margin-bottom: 5px; 35 | } 36 | 37 | .buttondown-form input { 38 | padding: 8px 10px; 39 | margin-bottom: 10px; 40 | display: block; 41 | border-radius: 3px; 42 | border: 1px solid #aaa; 43 | } 44 | 45 | .buttondown-form button { 46 | appearance: none; 47 | -webkit-appearance: none; 48 | -moz-appearance: none; 49 | padding: 6px 10px; 50 | color: #fff; 51 | background-color: #0069ff; 52 | border-width: 0; 53 | border-radius: 3px; 54 | } 55 | --------------------------------------------------------------------------------