├── .bundle
└── config
├── docs
├── binder-32.png
├── fonts
│ ├── AtlasGrotesk-Thin.otf
│ ├── SharpGroteskBook20.otf
│ ├── SharpGroteskBook22.otf
│ ├── SharpGroteskBook25.otf
│ ├── SharpGroteskDBBlack23.otf
│ ├── SharpGroteskDBBook20.ttf
│ ├── SharpGroteskDBBook22.ttf
│ ├── SharpGroteskDBLight20.otf
│ ├── SharpGroteskDBMedium12.otf
│ ├── SharpGroteskDBMedium20.ttf
│ ├── SharpGroteskDBMedium22.ttf
│ ├── SharpGroteskDBSmBold20.ttf
│ ├── SharpGroteskDBSmBold22.ttf
│ ├── SharpGroteskMedium20.otf
│ ├── SharpGroteskMedium22.otf
│ ├── SharpGroteskMedium25.otf
│ ├── SharpGroteskSmBold22.otf
│ ├── AtlasGrotesk-Light-Web.woff2
│ ├── AtlasGrotesk-Medium-Web.woff2
│ ├── AtlasGrotesk-Regular-Web.woff2
│ ├── SharpGroteskDBBookItalic20.ttf
│ ├── SharpGroteskDBMediumItalic20.ttf
│ ├── SharpGroteskDBSmBoldItalic20.ttf
│ └── AtlasGrotesk-RegularItalic-Web.woff2
├── font-sharp-grotesk.css
├── featherlight.min.css
├── featherlight.gallery.min.css
├── featherlight.gallery.min.js
├── featherlight.min.js
├── binder.css
├── sre-_appendix.html
├── glossary.html
└── swe-_appendix.html
├── .gitignore
├── README.md
├── allow-list.txt
├── clean.py
└── LICENSE
/.bundle/config:
--------------------------------------------------------------------------------
1 | ---
2 | BUNDLE_PATH: "vendor/bundle"
3 |
--------------------------------------------------------------------------------
/docs/binder-32.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/dropbox/dbx-career-framework/HEAD/docs/binder-32.png
--------------------------------------------------------------------------------
/docs/fonts/AtlasGrotesk-Thin.otf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/dropbox/dbx-career-framework/HEAD/docs/fonts/AtlasGrotesk-Thin.otf
--------------------------------------------------------------------------------
/docs/fonts/SharpGroteskBook20.otf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/dropbox/dbx-career-framework/HEAD/docs/fonts/SharpGroteskBook20.otf
--------------------------------------------------------------------------------
/docs/fonts/SharpGroteskBook22.otf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/dropbox/dbx-career-framework/HEAD/docs/fonts/SharpGroteskBook22.otf
--------------------------------------------------------------------------------
/docs/fonts/SharpGroteskBook25.otf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/dropbox/dbx-career-framework/HEAD/docs/fonts/SharpGroteskBook25.otf
--------------------------------------------------------------------------------
/.gitignore:
--------------------------------------------------------------------------------
1 | _site
2 | .sass-cache
3 | .jekyll-cache
4 | .jekyll-metadata
5 | vendor
6 | .DS_Store
7 |
8 | /env/
9 | /raw/
10 |
--------------------------------------------------------------------------------
/docs/fonts/SharpGroteskDBBlack23.otf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/dropbox/dbx-career-framework/HEAD/docs/fonts/SharpGroteskDBBlack23.otf
--------------------------------------------------------------------------------
/docs/fonts/SharpGroteskDBBook20.ttf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/dropbox/dbx-career-framework/HEAD/docs/fonts/SharpGroteskDBBook20.ttf
--------------------------------------------------------------------------------
/docs/fonts/SharpGroteskDBBook22.ttf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/dropbox/dbx-career-framework/HEAD/docs/fonts/SharpGroteskDBBook22.ttf
--------------------------------------------------------------------------------
/docs/fonts/SharpGroteskDBLight20.otf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/dropbox/dbx-career-framework/HEAD/docs/fonts/SharpGroteskDBLight20.otf
--------------------------------------------------------------------------------
/docs/fonts/SharpGroteskDBMedium12.otf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/dropbox/dbx-career-framework/HEAD/docs/fonts/SharpGroteskDBMedium12.otf
--------------------------------------------------------------------------------
/docs/fonts/SharpGroteskDBMedium20.ttf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/dropbox/dbx-career-framework/HEAD/docs/fonts/SharpGroteskDBMedium20.ttf
--------------------------------------------------------------------------------
/docs/fonts/SharpGroteskDBMedium22.ttf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/dropbox/dbx-career-framework/HEAD/docs/fonts/SharpGroteskDBMedium22.ttf
--------------------------------------------------------------------------------
/docs/fonts/SharpGroteskDBSmBold20.ttf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/dropbox/dbx-career-framework/HEAD/docs/fonts/SharpGroteskDBSmBold20.ttf
--------------------------------------------------------------------------------
/docs/fonts/SharpGroteskDBSmBold22.ttf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/dropbox/dbx-career-framework/HEAD/docs/fonts/SharpGroteskDBSmBold22.ttf
--------------------------------------------------------------------------------
/docs/fonts/SharpGroteskMedium20.otf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/dropbox/dbx-career-framework/HEAD/docs/fonts/SharpGroteskMedium20.otf
--------------------------------------------------------------------------------
/docs/fonts/SharpGroteskMedium22.otf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/dropbox/dbx-career-framework/HEAD/docs/fonts/SharpGroteskMedium22.otf
--------------------------------------------------------------------------------
/docs/fonts/SharpGroteskMedium25.otf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/dropbox/dbx-career-framework/HEAD/docs/fonts/SharpGroteskMedium25.otf
--------------------------------------------------------------------------------
/docs/fonts/SharpGroteskSmBold22.otf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/dropbox/dbx-career-framework/HEAD/docs/fonts/SharpGroteskSmBold22.otf
--------------------------------------------------------------------------------
/docs/fonts/AtlasGrotesk-Light-Web.woff2:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/dropbox/dbx-career-framework/HEAD/docs/fonts/AtlasGrotesk-Light-Web.woff2
--------------------------------------------------------------------------------
/docs/fonts/AtlasGrotesk-Medium-Web.woff2:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/dropbox/dbx-career-framework/HEAD/docs/fonts/AtlasGrotesk-Medium-Web.woff2
--------------------------------------------------------------------------------
/docs/fonts/AtlasGrotesk-Regular-Web.woff2:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/dropbox/dbx-career-framework/HEAD/docs/fonts/AtlasGrotesk-Regular-Web.woff2
--------------------------------------------------------------------------------
/docs/fonts/SharpGroteskDBBookItalic20.ttf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/dropbox/dbx-career-framework/HEAD/docs/fonts/SharpGroteskDBBookItalic20.ttf
--------------------------------------------------------------------------------
/docs/fonts/SharpGroteskDBMediumItalic20.ttf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/dropbox/dbx-career-framework/HEAD/docs/fonts/SharpGroteskDBMediumItalic20.ttf
--------------------------------------------------------------------------------
/docs/fonts/SharpGroteskDBSmBoldItalic20.ttf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/dropbox/dbx-career-framework/HEAD/docs/fonts/SharpGroteskDBSmBoldItalic20.ttf
--------------------------------------------------------------------------------
/docs/fonts/AtlasGrotesk-RegularItalic-Web.woff2:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/dropbox/dbx-career-framework/HEAD/docs/fonts/AtlasGrotesk-RegularItalic-Web.woff2
--------------------------------------------------------------------------------
/docs/font-sharp-grotesk.css:
--------------------------------------------------------------------------------
1 | @font-face {font-family: 'Sharp Grotesk Book 20'; font-weight: 300; src: url("../fonts/SharpGroteskDBBook20.ttf");}
2 | @font-face {font-family: 'Sharp Grotesk Book 22'; font-weight: 300; src: url("../fonts/SharpGroteskDBBook22.ttf");}
3 | @font-face {font-family: 'Sharp Grotesk Medium 20'; font-weight: 500; src: url("../fonts/SharpGroteskDBMedium20.ttf");}
4 | @font-face {font-family: 'Sharp Grotesk Medium 22'; font-weight: 500; src: url("../fonts/SharpGroteskDBMedium22.ttf");}
5 | @font-face {font-family: 'Sharp Grotesk SemiBold 20'; font-weight: 500; src: url("../fonts/SharpGroteskDBSmBold20.ttf");}
6 | @font-face {font-family: 'Sharp Grotesk SemiBold 22'; font-weight: 500; src: url("../fonts/SharpGroteskDBSmBold22.ttf");}
7 |
8 | @font-face {font-family: 'Sharp Grotesk DB Black 23'; font-weight: 500; src: url("../fonts/SharpGroteskDBBlack23.otf");}
9 | @font-face {font-family: 'Sharp Grotesk DB Light 20'; font-weight: 500; src: url("../fonts/SharpGroteskDBLight20.otf");}
10 | @font-face {font-family: 'Sharp Grotesk DB Medium 12'; font-weight: 500; src: url("../fonts/SharpGroteskDBMedium12.otf");}
11 |
--------------------------------------------------------------------------------
/docs/featherlight.min.css:
--------------------------------------------------------------------------------
1 | /**
2 | * Featherlight - ultra slim jQuery lightbox
3 | * Version 1.7.1 - http://noelboss.github.io/featherlight/
4 | *
5 | * Copyright 2017, Noël Raoul Bossart (http://www.noelboss.com)
6 | * MIT Licensed.
7 | **/
8 | @media all{.featherlight{display:none;position:fixed;top:0;right:0;bottom:0;left:0;z-index:2147483647;text-align:center;white-space:nowrap;cursor:pointer;background:#333;background:rgba(0,0,0,0)}.featherlight:last-of-type{background:rgba(0,0,0,.8)}.featherlight:before{content:'';display:inline-block;height:100%;vertical-align:middle}.featherlight .featherlight-content{position:relative;text-align:left;vertical-align:middle;display:inline-block;overflow:auto;padding:25px 25px 0;border-bottom:25px solid transparent;margin-left:5%;margin-right:5%;max-height:95%;background:#fff;cursor:auto;white-space:normal}.featherlight .featherlight-inner{display:block}.featherlight .featherlight-close-icon{position:absolute;z-index:9999;top:0;right:0;line-height:25px;width:25px;cursor:pointer;text-align:center;font-family:Arial,sans-serif;background:#fff;background:rgba(255,255,255,.3);color:#000;border:0;padding:0}.featherlight .featherlight-close-icon::-moz-focus-inner{border:0;padding:0}.featherlight .featherlight-image{width:100%}.featherlight-iframe .featherlight-content{border-bottom:0;padding:0;-webkit-overflow-scrolling:touch;overflow-y:scroll}.featherlight iframe{border:0}.featherlight *{-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}}@media only screen and (max-width:1024px){.featherlight .featherlight-content{margin-left:0;margin-right:0;max-height:98%;padding:10px 10px 0;border-bottom:10px solid transparent}}
--------------------------------------------------------------------------------
/docs/featherlight.gallery.min.css:
--------------------------------------------------------------------------------
1 | /**
2 | * Featherlight Gallery – an extension for the ultra slim jQuery lightbox
3 | * Version 1.7.1 - http://noelboss.github.io/featherlight/
4 | *
5 | * Copyright 2017, Noël Raoul Bossart (http://www.noelboss.com)
6 | * MIT Licensed.
7 | **/
8 | @media all{.featherlight-next,.featherlight-previous{display:block;position:absolute;top:25px;right:25px;bottom:0;left:80%;cursor:pointer;-webkit-touch-callout:none;-webkit-user-select:none;-khtml-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;background:rgba(0,0,0,0)}.featherlight-previous{left:25px;right:80%}.featherlight-next:hover,.featherlight-previous:hover{background:rgba(255,255,255,.25)}.featherlight-next span,.featherlight-previous span{display:none;position:absolute;top:50%;left:5%;width:82%;text-align:center;font-size:80px;line-height:80px;margin-top:-40px;text-shadow:0 0 5px #fff;color:#fff;font-style:normal;font-weight:400}.featherlight-next span{right:5%;left:auto}.featherlight-next:hover span,.featherlight-previous:hover span{display:inline-block}.featherlight-loading .featherlight-next,.featherlight-loading .featherlight-previous,.featherlight-swipe-aware .featherlight-next,.featherlight-swipe-aware .featherlight-previous{display:none}}@media only screen and (max-device-width:1024px){.featherlight-next:hover,.featherlight-previous:hover{background:0 0}.featherlight-next span,.featherlight-previous span{display:block}}@media only screen and (max-width:1024px){.featherlight-next,.featherlight-previous{top:10px;right:10px;left:85%}.featherlight-previous{left:10px;right:85%}.featherlight-next span,.featherlight-previous span{margin-top:-30px;font-size:40px}}
--------------------------------------------------------------------------------
/README.md:
--------------------------------------------------------------------------------
1 | # Dropbox Engineering Career Framework
2 |
3 | Visit [our career framework site](https://dropbox.github.io/dbx-career-framework/).
4 |
5 | # Background
6 |
7 | This repo has two parts:
8 |
9 | 1. A public version of drl/eng-career, located in the `docs` directory
10 | 2. A `cleaner.py` script that converts drl/eng-career into the [public
11 | version](https://dropbox.github.io/dbx-career-framework/)
12 |
13 | For complete instructions on updating and publishing the framework,
14 | visit the appbox repo containing the source and internally hosted version.
15 |
16 | # Setup
17 |
18 | To run `cleaner.py`:
19 |
20 | 1. (One time) Create a virtual env. for the project: `python3 -m venv env`
21 | 2. Active the virtual env: `source env/bin/activate`
22 | 3. (One time) `python3 -m pip install beautifulsoup4`
23 | 3. Go to drl/eng-career and get your session cookie (using the browser's developer tools)
24 | 4. Download the binder: `wget --header "Cookie: sessionid=SESSION_ID" --mirror --convert-links
25 | --adjust-extension --page-requisites --no-parent -P raw --cut-dirs=3
26 | https://app.dropboxer.net/binder/eng-career/`
27 | 5. Run the "cleaner": `python3 clean.py raw/app.dropboxer.net ./docs --allow_file allow-list.txt`
28 |
29 | Review any changes to the site made by the script and open a pull request.
30 |
31 | # License
32 |
33 | Unless otherwise noted:
34 |
35 | ```
36 | Copyright (c) 2021 Dropbox, Inc.
37 |
38 | Licensed under the Apache License, Version 2.0 (the "License");
39 | you may not use this file except in compliance with the License.
40 | You may obtain a copy of the License at
41 |
42 | http://www.apache.org/licenses/LICENSE-2.0
43 |
44 | Unless required by applicable law or agreed to in writing, software
45 | distributed under the License is distributed on an "AS IS" BASIS,
46 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
47 | See the License for the specific language governing permissions and
48 | limitations under the License.
49 |
50 | ```
51 |
--------------------------------------------------------------------------------
/allow-list.txt:
--------------------------------------------------------------------------------
1 | index.js
2 | index.html
3 | overview.html
4 | what_is_impact.html
5 | ic1_software_engineer.html
6 | ic2_software_engineer.html
7 | ic3_software_engineer.html
8 | ic4_software_engineer.html
9 | ic5_staff_software_engineer.html
10 | ic6_principal_software_engineer.html
11 | ic7_senior_principal_software_engineer.html
12 | swe-_appendix.html
13 | ic2_quality_engineer.html
14 | ic3_quality_engineer.html
15 | ic4_quality_engineer.html
16 | ic5_staff_quality_engineer.html
17 | qe-_appendix.html
18 | ic2_sdet.html
19 | ic3_sdet.html
20 | ic4_sdet.html
21 | ic5_staff_sdet.html
22 | ic1_reliability_engineer.html
23 | ic2_reliability_engineer.html
24 | ic3_reliability_engineer.html
25 | ic4_reliability_engineer.html
26 | ic5_staff_reliability_engineer.html
27 | ic6_principal_reliability_engineer.html
28 | ic7_senior_principal_reliability_engineer.html
29 | sre-_appendix.html
30 | ic1_machine_learning_engineer.html
31 | ic2_machine_learning_engineer.html
32 | ic3_machine_learning_engineer.html
33 | ic4_machine_learning_engineer.html
34 | ic5_staff_machine_learning_engineer.html
35 | ic1_data_engineer.html
36 | ic2_data_engineer.html
37 | ic3_data_engineer.html
38 | ic4_data_engineer.html
39 | ic5_staff_data_engineer.html
40 | de-_appendix.html
41 | mle-_appendix.html
42 | ic2_security_engineer.html
43 | ic3_security_engineer.html
44 | ic4_security_engineer.html
45 | ic5_staff_security_engineer.html
46 | ic6_principal_security_engineer.html
47 | se-_appendix.html
48 | ic1_technical_program_manager.html
49 | ic2_technical_program_manager.html
50 | ic3_technical_program_manager.html
51 | ic4_technical_program_manager.html
52 | ic5_staff_technical_program_manager.html
53 | ic6_principal_technical_program_manager.html
54 | tpm-_appendix.html
55 | m3_engineering_manager.html
56 | m4_engineering_manager.html
57 | m5_senior_engineering_manager.html
58 | m6_engineering_director.html
59 | m7_senior_engineering_director.html
60 | promotion_principles.html
61 | promotion_guidelines.html
62 | archetypes_behaviors.html
63 | cr_clarifications_and_myths.html
64 | dropbox_values.html
65 | glossary.html
66 |
--------------------------------------------------------------------------------
/docs/featherlight.gallery.min.js:
--------------------------------------------------------------------------------
1 | /**
2 | * Featherlight Gallery – an extension for the ultra slim jQuery lightbox
3 | * Version 1.7.1 - http://noelboss.github.io/featherlight/
4 | *
5 | * Copyright 2017, Noël Raoul Bossart (http://www.noelboss.com)
6 | * MIT Licensed.
7 | **/!function(a){"use strict";function b(c,d){if(!(this instanceof b)){var e=new b(a.extend({$source:c,$currentTarget:c.first()},d));return e.open(),e}a.featherlight.apply(this,arguments),this.chainCallbacks(h)}var c=function(a){window.console&&window.console.warn&&window.console.warn("FeatherlightGallery: "+a)};if("undefined"==typeof a)return c("Too much lightness, Featherlight needs jQuery.");if(!a.featherlight)return c("Load the featherlight plugin before the gallery plugin");var d="ontouchstart"in window||window.DocumentTouch&&document instanceof DocumentTouch,e=a.event&&a.event.special.swipeleft&&a,f=window.Hammer&&function(a){var b=new window.Hammer.Manager(a[0]);return b.add(new window.Hammer.Swipe),b},g=d&&(e||f);d&&!g&&c("No compatible swipe library detected; one must be included before featherlightGallery for swipe motions to navigate the galleries.");var h={afterClose:function(a,b){var c=this;return c.$instance.off("next."+c.namespace+" previous."+c.namespace),c._swiper&&(c._swiper.off("swipeleft",c._swipeleft).off("swiperight",c._swiperight),c._swiper=null),a(b)},beforeOpen:function(a,b){var c=this;return c.$instance.on("next."+c.namespace+" previous."+c.namespace,function(a){var b="next"===a.type?1:-1;c.navigateTo(c.currentNavigation()+b)}),g&&(c._swiper=g(c.$instance).on("swipeleft",c._swipeleft=function(){c.$instance.trigger("next")}).on("swiperight",c._swiperight=function(){c.$instance.trigger("previous")}),c.$instance.addClass(this.namespace+"-swipe-aware",g)),c.$instance.find("."+c.namespace+"-content").append(c.createNavigation("previous")).append(c.createNavigation("next")),a(b)},beforeContent:function(a,b){var c=this.currentNavigation(),d=this.slides().length;return this.$instance.toggleClass(this.namespace+"-first-slide",0===c).toggleClass(this.namespace+"-last-slide",c===d-1),a(b)},onKeyUp:function(a,b){var c={37:"previous",39:"next"}[b.keyCode];return c?(this.$instance.trigger(c),!1):a(b)}};a.featherlight.extend(b,{autoBind:"[data-featherlight-gallery]"}),a.extend(b.prototype,{previousIcon:"◀",nextIcon:"▶",galleryFadeIn:100,galleryFadeOut:300,slides:function(){return this.filter?this.$source.find(this.filter):this.$source},images:function(){return c("images is deprecated, please use slides instead"),this.slides()},currentNavigation:function(){return this.slides().index(this.$currentTarget)},navigateTo:function(b){var c=this,d=c.slides(),e=d.length,f=c.$instance.find("."+c.namespace+"-inner");return b=(b%e+e)%e,c.$currentTarget=d.eq(b),c.beforeContent(),a.when(c.getContent(),f.fadeTo(c.galleryFadeOut,.2)).always(function(a){c.setContent(a),c.afterContent(),a.fadeTo(c.galleryFadeIn,1)})},createNavigation:function(b){var c=this;return a(''+this[b+"Icon"]+" ").click(function(){a(this).trigger(b+"."+c.namespace)})}}),a.featherlightGallery=b,a.fn.featherlightGallery=function(a){return b.attach(this,a),this},a(document).ready(function(){b._onReady()})}(jQuery);
--------------------------------------------------------------------------------
/clean.py:
--------------------------------------------------------------------------------
1 | import argparse
2 | import os
3 | from bs4 import BeautifulSoup
4 |
5 | def dir_path(dir):
6 | if os.path.isdir(dir):
7 | return dir
8 | else:
9 | raise NotADirectoryError(dir)
10 |
11 | def parse_args():
12 | parser = argparse.ArgumentParser(description='Massages Binder Output')
13 | parser.add_argument('in_dir', help='The directory containing files to clean', type=dir_path)
14 | parser.add_argument('out_dir', help='The directory to output to', type=dir_path)
15 | parser.add_argument('--allow_file', help='A file containing components to include, one per line')
16 | return parser.parse_args()
17 |
18 | def read_allow_list(args):
19 | if args.allow_file:
20 | with open(args.allow_file) as f:
21 | allow_list = []
22 |
23 | for line in f:
24 | allow_list.append(line.strip())
25 |
26 | return allow_list
27 | else:
28 | return []
29 |
30 | def clean(dir_entry, args, allow_list):
31 | with open(dir_entry.path) as fp:
32 | soup = BeautifulSoup(fp)
33 |
34 | # Remove search
35 | for el in soup.find_all(id='toc-search'):
36 | el.extract()
37 |
38 | # remove edit links
39 | for el in soup.find_all('a', 'edit'):
40 | el.extract()
41 |
42 | # remove unnecessary scripts
43 | for el in soup.find_all('script'):
44 | # Google analytics
45 | if el.string and 'GoogleAnalyticsObject' in el.string:
46 | el.extract()
47 |
48 | # Search
49 | if el.string and 'function search' in el.string:
50 | el.extract()
51 |
52 | # Feedback prompt
53 | if el.string and 'feedback-button' in el.string:
54 | el.extract()
55 |
56 | # Revision check
57 | if el.string and 'checkRevisions' in el.string:
58 | el.extract()
59 |
60 | # binder JS
61 | if 'src' in el.attrs and 'binder.js' in el['src']:
62 | el.extract()
63 |
64 | if el.string and 'enable_safeWindowOpen' in el.string:
65 | el.extract()
66 |
67 | if el.string and 'loadLocalLink' in el.string:
68 | el.extract()
69 |
70 | for el in soup.find_all('a'):
71 | # remove external links
72 | if el['href'].startswith('http'):
73 | el.unwrap()
74 | # remove footer nav links
75 | elif 'id' in el.attrs and el['id'] in ['next-link', 'prev-link', 'footer-next-link']:
76 | el.extract()
77 | # handle binder-internal links
78 | elif len(allow_list) > 0 and el['href'] not in allow_list:
79 | # nav links get deleted
80 | if 'original-href' in el.attrs:
81 | el.extract()
82 | # links in content get converted to plain text
83 | else:
84 | el.unwrap()
85 |
86 | # Remove empty TOC entries
87 | for el in soup.find_all('div', 'ace-line selectable'):
88 | if len(el.contents) == 0:
89 | el.extract()
90 |
91 | for el in soup.find_all('div', 'child-container'):
92 | if len(el.contents) == 0:
93 | el.parent.extract()
94 |
95 | for el in soup.find_all('div', 'ace-line hidden'):
96 | el.extract()
97 |
98 | # remove original-href and data-doc-id attributes from anchors
99 | for el in soup.find_all('a'):
100 | del el['data-doc-id']
101 | del el['original-href']
102 | del el['prev-name']
103 | del el['prev-href']
104 | del el['next-name']
105 | del el['next-href']
106 |
107 | # Rewrite static link/script urls
108 | for el in soup.find_all('link'):
109 | if 'dropbox-appbox-static' in el['href']:
110 | el['href'] = 'static/' + el['href'].split('/')[-1]
111 |
112 | for el in soup.find_all('script'):
113 | if 'src' in el.attrs and 'dropbox-appbox-static' in el['src']:
114 | el['src'] = 'static/' + el['src'].split('/')[-1]
115 |
116 | # Insert needed JS
117 | s = soup.new_tag('script')
118 | s.string = 'function toggleLeftnav() { document.body.classList.toggle("nav-visible") }'
119 | s['type'] = 'text/javascript'
120 | soup.append(s)
121 |
122 | # Insert analytics
123 | s = soup.new_tag('script')
124 | s['type'] = 'text/javascript'
125 | s['async'] = None
126 | s['src'] = 'https://www.googletagmanager.com/gtag/js?id=G-H85723BFKM'
127 | soup.append(s)
128 |
129 | s = soup.new_tag('script')
130 | s['type'] = 'text/javascript'
131 | s.string = '''
132 | window.dataLayer = window.dataLayer || [];
133 | function gtag(){dataLayer.push(arguments);}
134 | gtag('js', new Date());
135 | gtag('config', 'G-H85723BFKM');
136 | '''
137 | soup.append(s)
138 |
139 | # Output
140 | with open(os.path.join(args.out_dir, dir_entry.name), mode='w') as wp:
141 | print(str(soup), file=wp)
142 |
143 |
144 | def main():
145 | args = parse_args()
146 | allow_list = read_allow_list(args)
147 |
148 | for file in os.scandir(args.in_dir):
149 | if len(allow_list) == 0 or file.name in allow_list:
150 | # FIXME parse and pass allow list
151 | clean(file, args, allow_list)
152 |
153 |
154 | if __name__ == "__main__":
155 | main()
156 |
--------------------------------------------------------------------------------
/docs/featherlight.min.js:
--------------------------------------------------------------------------------
1 | /**
2 | * Featherlight - ultra slim jQuery lightbox
3 | * Version 1.7.1 - http://noelboss.github.io/featherlight/
4 | *
5 | * Copyright 2017, Noël Raoul Bossart (http://www.noelboss.com)
6 | * MIT Licensed.
7 | **/
8 | !function(a){"use strict";function b(a,c){if(!(this instanceof b)){var d=new b(a,c);return d.open(),d}this.id=b.id++,this.setup(a,c),this.chainCallbacks(b._callbackChain)}function c(a,b){var c={};for(var d in a)d in b&&(c[d]=a[d],delete a[d]);return c}function d(a,b){var c={},d=new RegExp("^"+b+"([A-Z])(.*)");for(var e in a){var f=e.match(d);if(f){var g=(f[1]+f[2].replace(/([A-Z])/g,"-$1")).toLowerCase();c[g]=a[e]}}return c}if("undefined"==typeof a)return void("console"in window&&window.console.info("Too much lightness, Featherlight needs jQuery."));var e=[],f=function(b){return e=a.grep(e,function(a){return a!==b&&a.$instance.closest("body").length>0})},g={allowfullscreen:1,frameborder:1,height:1,longdesc:1,marginheight:1,marginwidth:1,name:1,referrerpolicy:1,scrolling:1,sandbox:1,src:1,srcdoc:1,width:1},h={keyup:"onKeyUp",resize:"onResize"},i=function(c){a.each(b.opened().reverse(),function(){return c.isDefaultPrevented()||!1!==this[h[c.type]](c)?void 0:(c.preventDefault(),c.stopPropagation(),!1)})},j=function(c){if(c!==b._globalHandlerInstalled){b._globalHandlerInstalled=c;var d=a.map(h,function(a,c){return c+"."+b.prototype.namespace}).join(" ");a(window)[c?"on":"off"](d,i)}};b.prototype={constructor:b,namespace:"featherlight",targetAttr:"data-featherlight",variant:null,resetCss:!1,background:null,openTrigger:"click",closeTrigger:"click",filter:null,root:"body",openSpeed:250,closeSpeed:250,closeOnClick:"background",closeOnEsc:!0,closeIcon:"✕",loading:"",persist:!1,otherClose:null,beforeOpen:a.noop,beforeContent:a.noop,beforeClose:a.noop,afterOpen:a.noop,afterContent:a.noop,afterClose:a.noop,onKeyUp:a.noop,onResize:a.noop,type:null,contentFilters:["jquery","image","html","ajax","iframe","text"],setup:function(b,c){"object"!=typeof b||b instanceof a!=!1||c||(c=b,b=void 0);var d=a.extend(this,c,{target:b}),e=d.resetCss?d.namespace+"-reset":d.namespace,f=a(d.background||['
','
','
',d.closeIcon," ",'
'+d.loading+"
","
","
"].join("")),g="."+d.namespace+"-close"+(d.otherClose?","+d.otherClose:"");return d.$instance=f.clone().addClass(d.variant),d.$instance.on(d.closeTrigger+"."+d.namespace,function(b){var c=a(b.target);("background"===d.closeOnClick&&c.is("."+d.namespace)||"anywhere"===d.closeOnClick||c.closest(g).length)&&(d.close(b),b.preventDefault())}),this},getContent:function(){if(this.persist!==!1&&this.$content)return this.$content;var b=this,c=this.constructor.contentFilters,d=function(a){return b.$currentTarget&&b.$currentTarget.attr(a)},e=d(b.targetAttr),f=b.target||e||"",g=c[b.type];if(!g&&f in c&&(g=c[f],f=b.target&&e),f=f||d("href")||"",!g)for(var h in c)b[h]&&(g=c[h],f=b[h]);if(!g){var i=f;if(f=null,a.each(b.contentFilters,function(){return g=c[this],g.test&&(f=g.test(i)),!f&&g.regex&&i.match&&i.match(g.regex)&&(f=i),!f}),!f)return"console"in window&&window.console.error("Featherlight: no content filter found "+(i?' for "'+i+'"':" (no target specified)")),!1}return g.process.call(b,f)},setContent:function(b){var c=this;return b.is("iframe")&&c.$instance.addClass(c.namespace+"-iframe"),c.$instance.removeClass(c.namespace+"-loading"),c.$instance.find("."+c.namespace+"-inner").not(b).slice(1).remove().end().replaceWith(a.contains(c.$instance[0],b[0])?"":b),c.$content=b.addClass(c.namespace+"-inner"),c},open:function(b){var c=this;if(c.$instance.hide().appendTo(c.root),!(b&&b.isDefaultPrevented()||c.beforeOpen(b)===!1)){b&&b.preventDefault();var d=c.getContent();if(d)return e.push(c),j(!0),c.$instance.fadeIn(c.openSpeed),c.beforeContent(b),a.when(d).always(function(a){c.setContent(a),c.afterContent(b)}).then(c.$instance.promise()).done(function(){c.afterOpen(b)})}return c.$instance.detach(),a.Deferred().reject().promise()},close:function(b){var c=this,d=a.Deferred();return c.beforeClose(b)===!1?d.reject():(0===f(c).length&&j(!1),c.$instance.fadeOut(c.closeSpeed,function(){c.$instance.detach(),c.afterClose(b),d.resolve()})),d.promise()},resize:function(a,b){if(a&&b){this.$content.css("width","").css("height","");var c=Math.max(a/(parseInt(this.$content.parent().css("width"),10)-1),b/(parseInt(this.$content.parent().css("height"),10)-1));c>1&&(c=b/Math.floor(b/c),this.$content.css("width",""+a/c+"px").css("height",""+b/c+"px"))}},chainCallbacks:function(b){for(var c in b)this[c]=a.proxy(b[c],this,a.proxy(this[c],this))}},a.extend(b,{id:0,autoBind:"[data-featherlight]",defaults:b.prototype,contentFilters:{jquery:{regex:/^[#.]\w/,test:function(b){return b instanceof a&&b},process:function(b){return this.persist!==!1?a(b):a(b).clone(!0)}},image:{regex:/\.(png|jpg|jpeg|gif|tiff|bmp|svg)(\?\S*)?$/i,process:function(b){var c=this,d=a.Deferred(),e=new Image,f=a(' ');return e.onload=function(){f.naturalWidth=e.width,f.naturalHeight=e.height,d.resolve(f)},e.onerror=function(){d.reject(f)},e.src=b,d.promise()}},html:{regex:/^\s*<[\w!][^<]*>/,process:function(b){return a(b)}},ajax:{regex:/./,process:function(b){var c=a.Deferred(),d=a("
").load(b,function(a,b){"error"!==b&&c.resolve(d.contents()),c.fail()});return c.promise()}},iframe:{process:function(b){var e=new a.Deferred,f=a(""),h=d(this,"iframe"),i=c(h,g);return f.hide().attr("src",b).attr(i).css(h).on("load",function(){e.resolve(f.show())}).appendTo(this.$instance.find("."+this.namespace+"-content")),e.promise()}},text:{process:function(b){return a("",{text:b})}}},functionAttributes:["beforeOpen","afterOpen","beforeContent","afterContent","beforeClose","afterClose"],readElementConfig:function(b,c){var d=this,e=new RegExp("^data-"+c+"-(.*)"),f={};return b&&b.attributes&&a.each(b.attributes,function(){var b=this.name.match(e);if(b){var c=this.value,g=a.camelCase(b[1]);if(a.inArray(g,d.functionAttributes)>=0)c=new Function(c);else try{c=JSON.parse(c)}catch(h){}f[g]=c}}),f},extend:function(b,c){var d=function(){this.constructor=b};return d.prototype=this.prototype,b.prototype=new d,b.__super__=this.prototype,a.extend(b,this,c),b.defaults=b.prototype,b},attach:function(b,c,d){var e=this;"object"!=typeof c||c instanceof a!=!1||d||(d=c,c=void 0),d=a.extend({},d);var f,g=d.namespace||e.defaults.namespace,h=a.extend({},e.defaults,e.readElementConfig(b[0],g),d),i=function(g){var i=a.extend({$source:b,$currentTarget:a(this)},e.readElementConfig(b[0],h.namespace),e.readElementConfig(this,h.namespace),d),j=f||a(this).data("featherlight-persisted")||new e(c,i);"shared"===j.persist?f=j:j.persist!==!1&&a(this).data("featherlight-persisted",j),i.$currentTarget.blur(),j.open(g)};return b.on(h.openTrigger+"."+h.namespace,h.filter,i),i},current:function(){var a=this.opened();return a[a.length-1]||null},opened:function(){var b=this;return f(),a.grep(e,function(a){return a instanceof b})},close:function(a){var b=this.current();return b?b.close(a):void 0},_onReady:function(){var b=this;b.autoBind&&(a(b.autoBind).each(function(){b.attach(a(this))}),a(document).on("click",b.autoBind,function(c){if(!c.isDefaultPrevented()){var d=b.attach(a(c.currentTarget));d(c)}}))},_callbackChain:{onKeyUp:function(b,c){return 27===c.keyCode?(this.closeOnEsc&&a.featherlight.close(c),!1):b(c)},beforeOpen:function(b,c){return this._previouslyActive=document.activeElement,this._$previouslyTabbable=a("a, input, select, textarea, iframe, button, iframe, [contentEditable=true]").not("[tabindex]").not(this.$instance.find("button")),this._$previouslyWithTabIndex=a("[tabindex]").not('[tabindex="-1"]'),this._previousWithTabIndices=this._$previouslyWithTabIndex.map(function(b,c){return a(c).attr("tabindex")}),this._$previouslyWithTabIndex.add(this._$previouslyTabbable).attr("tabindex",-1),document.activeElement.blur(),b(c)},afterClose:function(b,c){var d=b(c),e=this;return this._$previouslyTabbable.removeAttr("tabindex"),this._$previouslyWithTabIndex.each(function(b,c){a(c).attr("tabindex",e._previousWithTabIndices[b])}),this._previouslyActive.focus(),d},onResize:function(a,b){return this.resize(this.$content.naturalWidth,this.$content.naturalHeight),a(b)},afterContent:function(a,b){var c=a(b);return this.$instance.find("[autofocus]:not([disabled])").focus(),this.onResize(b),c}}}),a.featherlight=b,a.fn.featherlight=function(a,c){return b.attach(this,a,c),this},a(document).ready(function(){b._onReady()})}(jQuery);
--------------------------------------------------------------------------------
/LICENSE:
--------------------------------------------------------------------------------
1 |
2 | Apache License
3 | Version 2.0, January 2004
4 | http://www.apache.org/licenses/
5 |
6 | TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
7 |
8 | 1. Definitions.
9 |
10 | "License" shall mean the terms and conditions for use, reproduction,
11 | and distribution as defined by Sections 1 through 9 of this document.
12 |
13 | "Licensor" shall mean the copyright owner or entity authorized by
14 | the copyright owner that is granting the License.
15 |
16 | "Legal Entity" shall mean the union of the acting entity and all
17 | other entities that control, are controlled by, or are under common
18 | control with that entity. For the purposes of this definition,
19 | "control" means (i) the power, direct or indirect, to cause the
20 | direction or management of such entity, whether by contract or
21 | otherwise, or (ii) ownership of fifty percent (50%) or more of the
22 | outstanding shares, or (iii) beneficial ownership of such entity.
23 |
24 | "You" (or "Your") shall mean an individual or Legal Entity
25 | exercising permissions granted by this License.
26 |
27 | "Source" form shall mean the preferred form for making modifications,
28 | including but not limited to software source code, documentation
29 | source, and configuration files.
30 |
31 | "Object" form shall mean any form resulting from mechanical
32 | transformation or translation of a Source form, including but
33 | not limited to compiled object code, generated documentation,
34 | and conversions to other media types.
35 |
36 | "Work" shall mean the work of authorship, whether in Source or
37 | Object form, made available under the License, as indicated by a
38 | copyright notice that is included in or attached to the work
39 | (an example is provided in the Appendix below).
40 |
41 | "Derivative Works" shall mean any work, whether in Source or Object
42 | form, that is based on (or derived from) the Work and for which the
43 | editorial revisions, annotations, elaborations, or other modifications
44 | represent, as a whole, an original work of authorship. For the purposes
45 | of this License, Derivative Works shall not include works that remain
46 | separable from, or merely link (or bind by name) to the interfaces of,
47 | the Work and Derivative Works thereof.
48 |
49 | "Contribution" shall mean any work of authorship, including
50 | the original version of the Work and any modifications or additions
51 | to that Work or Derivative Works thereof, that is intentionally
52 | submitted to Licensor for inclusion in the Work by the copyright owner
53 | or by an individual or Legal Entity authorized to submit on behalf of
54 | the copyright owner. For the purposes of this definition, "submitted"
55 | means any form of electronic, verbal, or written communication sent
56 | to the Licensor or its representatives, including but not limited to
57 | communication on electronic mailing lists, source code control systems,
58 | and issue tracking systems that are managed by, or on behalf of, the
59 | Licensor for the purpose of discussing and improving the Work, but
60 | excluding communication that is conspicuously marked or otherwise
61 | designated in writing by the copyright owner as "Not a Contribution."
62 |
63 | "Contributor" shall mean Licensor and any individual or Legal Entity
64 | on behalf of whom a Contribution has been received by Licensor and
65 | subsequently incorporated within the Work.
66 |
67 | 2. Grant of Copyright License. Subject to the terms and conditions of
68 | this License, each Contributor hereby grants to You a perpetual,
69 | worldwide, non-exclusive, no-charge, royalty-free, irrevocable
70 | copyright license to reproduce, prepare Derivative Works of,
71 | publicly display, publicly perform, sublicense, and distribute the
72 | Work and such Derivative Works in Source or Object form.
73 |
74 | 3. Grant of Patent License. Subject to the terms and conditions of
75 | this License, each Contributor hereby grants to You a perpetual,
76 | worldwide, non-exclusive, no-charge, royalty-free, irrevocable
77 | (except as stated in this section) patent license to make, have made,
78 | use, offer to sell, sell, import, and otherwise transfer the Work,
79 | where such license applies only to those patent claims licensable
80 | by such Contributor that are necessarily infringed by their
81 | Contribution(s) alone or by combination of their Contribution(s)
82 | with the Work to which such Contribution(s) was submitted. If You
83 | institute patent litigation against any entity (including a
84 | cross-claim or counterclaim in a lawsuit) alleging that the Work
85 | or a Contribution incorporated within the Work constitutes direct
86 | or contributory patent infringement, then any patent licenses
87 | granted to You under this License for that Work shall terminate
88 | as of the date such litigation is filed.
89 |
90 | 4. Redistribution. You may reproduce and distribute copies of the
91 | Work or Derivative Works thereof in any medium, with or without
92 | modifications, and in Source or Object form, provided that You
93 | meet the following conditions:
94 |
95 | (a) You must give any other recipients of the Work or
96 | Derivative Works a copy of this License; and
97 |
98 | (b) You must cause any modified files to carry prominent notices
99 | stating that You changed the files; and
100 |
101 | (c) You must retain, in the Source form of any Derivative Works
102 | that You distribute, all copyright, patent, trademark, and
103 | attribution notices from the Source form of the Work,
104 | excluding those notices that do not pertain to any part of
105 | the Derivative Works; and
106 |
107 | (d) If the Work includes a "NOTICE" text file as part of its
108 | distribution, then any Derivative Works that You distribute must
109 | include a readable copy of the attribution notices contained
110 | within such NOTICE file, excluding those notices that do not
111 | pertain to any part of the Derivative Works, in at least one
112 | of the following places: within a NOTICE text file distributed
113 | as part of the Derivative Works; within the Source form or
114 | documentation, if provided along with the Derivative Works; or,
115 | within a display generated by the Derivative Works, if and
116 | wherever such third-party notices normally appear. The contents
117 | of the NOTICE file are for informational purposes only and
118 | do not modify the License. You may add Your own attribution
119 | notices within Derivative Works that You distribute, alongside
120 | or as an addendum to the NOTICE text from the Work, provided
121 | that such additional attribution notices cannot be construed
122 | as modifying the License.
123 |
124 | You may add Your own copyright statement to Your modifications and
125 | may provide additional or different license terms and conditions
126 | for use, reproduction, or distribution of Your modifications, or
127 | for any such Derivative Works as a whole, provided Your use,
128 | reproduction, and distribution of the Work otherwise complies with
129 | the conditions stated in this License.
130 |
131 | 5. Submission of Contributions. Unless You explicitly state otherwise,
132 | any Contribution intentionally submitted for inclusion in the Work
133 | by You to the Licensor shall be under the terms and conditions of
134 | this License, without any additional terms or conditions.
135 | Notwithstanding the above, nothing herein shall supersede or modify
136 | the terms of any separate license agreement you may have executed
137 | with Licensor regarding such Contributions.
138 |
139 | 6. Trademarks. This License does not grant permission to use the trade
140 | names, trademarks, service marks, or product names of the Licensor,
141 | except as required for reasonable and customary use in describing the
142 | origin of the Work and reproducing the content of the NOTICE file.
143 |
144 | 7. Disclaimer of Warranty. Unless required by applicable law or
145 | agreed to in writing, Licensor provides the Work (and each
146 | Contributor provides its Contributions) on an "AS IS" BASIS,
147 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
148 | implied, including, without limitation, any warranties or conditions
149 | of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
150 | PARTICULAR PURPOSE. You are solely responsible for determining the
151 | appropriateness of using or redistributing the Work and assume any
152 | risks associated with Your exercise of permissions under this License.
153 |
154 | 8. Limitation of Liability. In no event and under no legal theory,
155 | whether in tort (including negligence), contract, or otherwise,
156 | unless required by applicable law (such as deliberate and grossly
157 | negligent acts) or agreed to in writing, shall any Contributor be
158 | liable to You for damages, including any direct, indirect, special,
159 | incidental, or consequential damages of any character arising as a
160 | result of this License or out of the use or inability to use the
161 | Work (including but not limited to damages for loss of goodwill,
162 | work stoppage, computer failure or malfunction, or any and all
163 | other commercial damages or losses), even if such Contributor
164 | has been advised of the possibility of such damages.
165 |
166 | 9. Accepting Warranty or Additional Liability. While redistributing
167 | the Work or Derivative Works thereof, You may choose to offer,
168 | and charge a fee for, acceptance of support, warranty, indemnity,
169 | or other liability obligations and/or rights consistent with this
170 | License. However, in accepting such obligations, You may act only
171 | on Your own behalf and on Your sole responsibility, not on behalf
172 | of any other Contributor, and only if You agree to indemnify,
173 | defend, and hold each Contributor harmless for any liability
174 | incurred by, or claims asserted against, such Contributor by reason
175 | of your accepting any such warranty or additional liability.
176 |
177 | END OF TERMS AND CONDITIONS
178 |
179 | APPENDIX: How to apply the Apache License to your work.
180 |
181 | To apply the Apache License to your work, attach the following
182 | boilerplate notice, with the fields enclosed by brackets "[]"
183 | replaced with your own identifying information. (Don't include
184 | the brackets!) The text should be enclosed in the appropriate
185 | comment syntax for the file format. We also recommend that a
186 | file or class name and description of purpose be included on the
187 | same "printed page" as the copyright notice for easier
188 | identification within third-party archives.
189 |
190 | Copyright [yyyy] [name of copyright owner]
191 |
192 | Licensed under the Apache License, Version 2.0 (the "License");
193 | you may not use this file except in compliance with the License.
194 | You may obtain a copy of the License at
195 |
196 | http://www.apache.org/licenses/LICENSE-2.0
197 |
198 | Unless required by applicable law or agreed to in writing, software
199 | distributed under the License is distributed on an "AS IS" BASIS,
200 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
201 | See the License for the specific language governing permissions and
202 | limitations under the License.
203 |
--------------------------------------------------------------------------------
/docs/binder.css:
--------------------------------------------------------------------------------
1 | /* @override
2 | http://127.0.0.1:8000/static/binder/stylesheets/binder.css */
3 |
4 | /* @group Fonts */
5 | @font-face {font-family: 'Atlas Grotesk'; font-weight: 100; src: url("../fonts/AtlasGrotesk-Thin.otf");}
6 | @font-face {font-family: 'Atlas Grotesk'; font-weight: 200; src: url("../fonts/AtlasGrotesk-Light-Web.woff2");}
7 | @font-face {font-family: 'Atlas Grotesk'; font-weight: 400; src: url("../fonts/AtlasGrotesk-Regular-Web.woff2");}
8 | @font-face {font-family: 'Atlas Grotesk'; font-weight: 500; src: url("../fonts/AtlasGrotesk-Medium-Web.woff2"); }
9 | @font-face {font-family: 'Atlas Grotesk'; font-weight: bold; src: url("../fonts/AtlasGrotesk-Medium-Web.woff2"); }
10 | /* @end */
11 |
12 | :root {
13 | --background-color: white;
14 | --nav-width: 240px;
15 | --nav-row-height: 40px;
16 | --nav-background-color: #f1f1f1;
17 | --nav-title-color: #1B2733;
18 | --nav-title-font: inherit;
19 | --nav-text-color: #1B2733;
20 | --nav-selection-color: #0070E0;
21 | --nav-selection-text-color: #ffffff;
22 | --nav-wash-color: clear;
23 | --nav-hover-color: #99C6F3;
24 | --nav-hover-text-color: black;
25 | --nav-title-display: block;
26 | --nav-logo-display: none;
27 | --nav-triangles-display: block;
28 | --navlink-text-color: #0070E0;
29 | --navlink-hover-background: #0070E0;
30 | --navlink-hover-text-color: white;
31 | --doc-title-font: inherit;
32 | --doc-background-color: white;
33 | --doc-text-color: #111;
34 | --doc-link-color: #0070E0;
35 | --doc-top-padding: 180px;
36 | --doc-body-font: Atlas Grotesk, -apple-system, BlinkMacSystemFont, Roboto, Arial, sans-serif;
37 | --edit-links: visible;
38 | --doc-line-height: 26px;
39 | --doc-empty-line-height: 0.5em;
40 | --doc-nav-text-color: #2d2d2d;
41 | --doc-nav-selection-text-color: #0070E0;
42 | --doc-nav-hover-color: rgba(0,0,0,0.02);
43 | --doc-nav-hover-text-color: #0070E0;
44 |
45 | }
46 |
47 | body {
48 | background: var(--background-color);
49 | font-family: var(--doc-body-font);
50 | margin: 0;
51 | -webkit-font-smoothing: antialiased;
52 | -moz-osx-font-smoothing: grayscale;
53 | }
54 |
55 |
56 |
57 | /* @group Navigation */
58 |
59 | #toc {
60 | background-color: var(--nav-background-color);
61 | position: fixed;
62 | bottom: 0;
63 | top: 0;
64 | left: 0;
65 | width: var(--nav-width);
66 | overflow: auto;
67 | padding-bottom: 80px;
68 | z-index: 100;
69 |
70 | }
71 |
72 | input[type="search"]::-webkit-search-decoration {
73 | -webkit-appearance: none;
74 | }
75 | #toc, #toc input {
76 | color: var(--nav-text-color);
77 | font-size: 13px;
78 |
79 |
80 | }
81 |
82 | #toc div.ace-line {
83 | white-space: nowrap;
84 | overflow: hidden;
85 | text-overflow: ellipsis;
86 | margin: 0;
87 | margin-top: 0px;
88 | height: var(--nav-row-height);
89 | }
90 |
91 | body #toc div.ace-line.hidden {
92 | display: none;
93 | }
94 |
95 | #toc div.ace-line.hidable {
96 | overflow: hidden;
97 | }
98 |
99 | #toc h1, #toc h2, #toc .ace-line a {
100 | cursor: default;
101 | display: block;
102 | white-space: nowrap;
103 | overflow: hidden;
104 | text-overflow: ellipsis;
105 | padding: 0 40px;
106 | line-height: 40px;
107 | margin: 0;
108 | margin-top: 0px;
109 | }
110 |
111 | #toc-title {
112 | font-size: 20px;
113 | line-height: 28px;
114 | font-weight: normal;
115 | display: var(--nav-title-display);
116 | color: var(--nav-title-color);
117 | margin-top: 20px;
118 | padding: 0px 40px;
119 | padding-bottom:1em;
120 | }
121 |
122 | #toc .ace-line a {
123 | padding: 0 40px;
124 | }
125 |
126 | #toc .ace-line.child-of-none a {
127 | padding: 12px 40px;
128 | }
129 |
130 | #toc .ace-line h1 a {
131 | padding: 0;
132 | cursor: pointer;
133 | }
134 |
135 | #toc .group-container.has-children .ace-line h1:before {
136 | content: '▶︎';
137 | float:left;
138 | margin-left:-2em;
139 | transition:transform 200ms;
140 | font-size:75%;
141 | display: var(--nav-triangles-display);
142 | }
143 |
144 | #toc .group-container.has-children.expanded .ace-line h1:before {
145 | transform: rotate(90deg);
146 | }
147 |
148 | #toc h1:hover {
149 | cursor: default;
150 | }
151 |
152 |
153 |
154 |
155 | #toc h1:hover:after {
156 | /* content: '⌃';
157 | float: right;
158 | color: #C1C7CD;
159 | padding: 10px 0;
160 | font-weight: 500;
161 | font-size: 1.1em;
162 | line-height: 1;
163 | transform: rotate(180deg);
164 | */}
165 |
166 |
167 |
168 |
169 |
170 |
171 |
172 | #toc .ace-line a {
173 | color: var(--nav-text-color);;
174 | }
175 |
176 | #toc .ace-line a {
177 | text-decoration: none;
178 | }
179 |
180 | #toc .ace-line a.externallink {
181 | cursor: pointer;
182 | }
183 |
184 | #toc .ace-line a.externallink::after {
185 | content: "\2197";
186 | }
187 |
188 | #toc .ace-line a.externallink:hover {
189 | text-decoration: underline;
190 | }
191 |
192 |
193 |
194 |
195 |
196 |
197 | a, a:visited {
198 | color: #0070e0;
199 | }
200 |
201 | #toc h1 {
202 | font-size: 13px;
203 | margin: 0;
204 | font-weight:normal;
205 | font-weight: 500;
206 | }
207 |
208 | #toc .group-container.has-children h1 {
209 | }
210 |
211 | #toc-header {
212 | min-height: var(--doc-top-padding);
213 | padding-top: 90px;
214 | box-sizing: border-box;
215 |
216 | }
217 |
218 |
219 | #toc-content {
220 | margin-bottom: 40px;
221 | }
222 |
223 | #logo {
224 | width: 40px;
225 | height: 40px;
226 | display: block;
227 | margin-left: 40px;
228 | }
229 |
230 | #logo.default {
231 | display: var(--nav-logo-display);
232 | }
233 |
234 | #logo.emoji {
235 | /*content: var(--nav-logo-icon);*/
236 | /*font-size: 40px;*/
237 | background-size: 100%;
238 | background-repeat: no-repeat;
239 | }
240 |
241 | body#about #logo {
242 | background: var(--nav-selection-color);
243 | -webkit-mask-size: 100%;
244 | -webkit-mask-image: url(../images/binder-256.png);
245 | }
246 |
247 | #toc-content div.selected, #toc-content div.selected.ace-line:hover {
248 | background: var(--nav-selection-color);
249 | color: var(--nav-selection-text-color);
250 | font-weight: bold;
251 | z-index: 1;
252 | }
253 |
254 | #toc-content div.selected a {
255 | color: var(--nav-selection-text-color);
256 | }
257 |
258 | #toc-content div.selected:hover::after, #toc-content div.ace-line.selectable:hover::after, div.selected::after {
259 | content: '';
260 | position: absolute;
261 | left: 0;
262 | right: 0;
263 | height: 1000px;
264 | background: var(--nav-wash-color);
265 | z-index: -1;
266 | -webkit-transform: rotate(180deg);
267 | -webkit-transform-origin: top center;
268 | }
269 |
270 | #toc div.ace-line.selectable:not(.selected):hover {
271 | background: var(--nav-hover-color);
272 | }
273 |
274 | #toc div.ace-line.selectable:not(.selected):hover a {
275 | color: var(--nav-hover-text-color);
276 | }
277 |
278 | #toc div.ace-line.selected:hover a {
279 | color: var(--nav-selection-text-color);
280 | }
281 |
282 | #toc div.ace-line.selectable:active {
283 | background: var(--nav-selection-color);
284 | }
285 |
286 | #toc div.ace-line.selectable:active a {
287 | color: var(--nav-selection-text-color);
288 | }
289 |
290 | #toc-content div.ace-line.selectable:not(.selected):hover, #toc-content div.ace-line.selectable:not(.selected):hover a {
291 | color: var(--nav-hover-text-color);
292 | }
293 |
294 | #toc-content:hover div.selected:not(:hover)::after {
295 | display: none;
296 | }
297 |
298 | #toc h2 {
299 | font-size: 13px;
300 | font-weight: normal;
301 | margin: 0;
302 | opacity:0.3;
303 | text-transform: uppercase;
304 | font-weight:bold;
305 | }
306 | /* @end */
307 |
308 | /* @group Nav Left */
309 |
310 | body #doc-nav{
311 | top: calc(var(--doc-top-padding));
312 | }
313 | body.nav-left #doc-nav {
314 | left: var(--nav-width);
315 | }
316 | body .navlink#prev-link {
317 | left: var(--nav-width);
318 | }
319 |
320 |
321 |
322 | body #toc .child-container a,
323 | body #toc .child-container h2 {
324 | padding-left: 60px;
325 | }
326 |
327 | body #toc .child-container .ace-line {
328 |
329 | transition: height 100ms ease-in;
330 | }
331 | body #toc .group-container:not(.expanded) .child-container .ace-line {
332 | height:0;
333 |
334 | }
335 |
336 | /* @end */
337 |
338 | @media only screen and (min-width: 900px) {
339 |
340 |
341 |
342 | body.nav-left #doc {
343 | padding-left: var(--nav-width);
344 | }
345 |
346 |
347 | /* @group Nav Top */
348 | body.nav-top #toc-content div.selected:hover::after,
349 | body.nav-top #toc-content div.ace-line.selectable:hover::after,
350 | body.nav-top div.selected::after {
351 | top: 0;
352 | left: auto;
353 | right: auto;
354 | bottom: 0;
355 | width: 100%;
356 | height: 40px;
357 | -webkit-transform: rotate(180deg);
358 | -webkit-transform-origin: center left;
359 | display: none;
360 | }
361 |
362 | body.nav-top #toc-header {
363 | float: left;
364 | min-height: auto;
365 | }
366 |
367 |
368 | body.nav-top #toc {
369 | right: 0;
370 | height: var(--nav-row-height);
371 | width: auto;
372 | padding:0;
373 | }
374 |
375 | body.nav-top #doc-nav {
376 | top: calc(var(--nav-row-height) + var(--doc-top-padding) - 20px) ;
377 | }
378 |
379 | body.nav-top .spinner {
380 | top: 100px;
381 | }
382 |
383 | body.nav-top #toc-header {
384 | padding:0;
385 | }
386 |
387 | body.nav-top #toc {
388 | padding-top: 8px;
389 | }
390 |
391 | body.nav-top #doc {
392 | left: 0;
393 | margin-top:var(--nav-row-height);
394 | }
395 |
396 |
397 | body.nav-top #toc .ace-line {
398 | height:40px;
399 | overflow:visible;
400 | vertical-align:top;
401 | }
402 |
403 | body.nav-top #toc .child-container .ace-line {
404 | }
405 | body.nav-top #toc .ace-line {
406 | --nav-width: 80px;
407 | }
408 |
409 |
410 | body.nav-top #toc .ace-line a {
411 | padding: 0 12px;
412 | }
413 |
414 | body.nav-top #toc-header {
415 | min-width: calc(50vw - 400px - 20px);
416 |
417 | }
418 |
419 |
420 | body.nav-top #toc #logo {
421 | float: left;
422 | margin-left: 16px;
423 | }
424 |
425 | body.nav-top #toc-search {
426 | float: right;
427 | margin-right: 60px;
428 | }
429 |
430 |
431 |
432 | body.nav-top #toc #toc-title {
433 | float: left;
434 | margin-top: 0;
435 | display: inline-block;
436 | font-size: 24px;
437 | line-height: 36px;
438 | font-weight: bold;
439 | padding-left: 16px;
440 | }
441 |
442 |
443 | body.nav-top #toc .ace-line {
444 | display: inline-block;
445 | width: auto;
446 | }
447 |
448 | body.nav-top #toc {
449 | overflow: visible;
450 | }
451 |
452 | body.nav-top #toc .child-container {
453 | height: auto;
454 | width: var(--nav-width);
455 | overflow: scroll;
456 | max-height: 80vh;
457 | }
458 |
459 |
460 | body.nav-top #toc-content > .ace-line {
461 | float: left;
462 | }
463 |
464 | body.nav-top .group-container,
465 | body.nav-top .group-container > .ace-line {
466 | float: left;
467 | }
468 | body.nav-top .child-container {
469 | clear: both;
470 | float:left;
471 | display: none;
472 | position: absolute;
473 | top: 100%;
474 | }
475 |
476 | body.nav-top .group-container.expanded > .ace-line,
477 | body.nav-top .child-container .selected a {
478 | background: var(--nav-selection-color);
479 | color:var(--nav-selection-text-color);
480 | }
481 |
482 | /*body.nav-top .group-container.expanded .child-container, */
483 | body.nav-top .group-container:hover .child-container {
484 | display: block;
485 | }
486 |
487 | body.nav-top #toc .child-container .ace-line {
488 | display: block;
489 | background: var(--nav-background-color);
490 | }
491 |
492 | body.nav-top #toc a.edit {
493 | right: 0;
494 | bottom: auto;
495 | top: 0;
496 | left: auto;
497 | }
498 |
499 | body.nav-top #toc h1, body.nav-top #toc .ace-line a {
500 | padding: 0 12px;
501 | }
502 |
503 | #toc .group-container.has-children .ace-line h1:before {
504 | display: none;
505 | }
506 | }
507 | /* @end */
508 |
509 | /* @group Nav None */
510 |
511 | body.nav-none #doc {
512 | margin-left: 0;
513 | }
514 | body.nav-none #toc {
515 | display: none;
516 | }
517 |
518 | /* @end */
519 |
520 | /* @group Responsive */
521 |
522 | #toc-toggle,
523 | #toc-close,
524 | #toc-shield {
525 | display: none;
526 | }
527 |
528 | body #toc-toggle, body #toc-close {
529 | width: 60px;
530 | height: 60px;
531 | font-size: 32px;
532 | line-height: 52px;
533 | text-align: center;
534 | z-index: 99;
535 | cursor: default;
536 | -webkit-transition: left 0.2s ease-in;
537 | }
538 | body #toc-toggle {
539 | max-width: 10vw;
540 | font-size: 24px;
541 | }
542 |
543 | @media only screen and (max-width: 900px) {
544 | body #toc-toggle,
545 | body #toc-close,
546 | body #toc-shield {
547 | display: block;
548 | }
549 |
550 | body #toc-toggle {
551 | position: fixed;
552 | left: 0px;
553 | }
554 |
555 | body #toc-close {
556 | width: 60px;
557 | right: 0;
558 | float: right;
559 | }
560 |
561 | body.nav-visible #toc-shield {
562 | position: fixed;
563 | width: 100%;
564 | height: 100%;
565 | background-color: clear;
566 | z-index: 0;
567 | }
568 |
569 |
570 | body .navlink#prev-link {
571 | left: 40px;
572 | }
573 |
574 | body #doc-nav {
575 | left: 0px;
576 | display: none;
577 | }
578 |
579 | body:not(.nav-visible) #toc {
580 | left: -50px;
581 | opacity: 0.0;
582 | pointer-events: none;
583 | -webkit-transition: left 0.2s ease-in, opacity 0.2s linear;
584 | }
585 |
586 | body #toc {
587 | max-width: 80%;
588 | -webkit-transition: left 0.2s ease-out, opacity 0.05s ease-out;
589 | }
590 |
591 | body #doc {
592 | margin-left: 0;
593 | }
594 |
595 | #toc-header {
596 | min-height: auto;
597 | padding-top: 20px;
598 | }
599 |
600 |
601 | }
602 |
603 |
604 | @media screen and (max-width: 1240px) {
605 | .doc-layout > div {
606 | width: auto;
607 | }
608 | }
609 |
610 | /* @end */
611 |
612 | #toc::after {
613 | content: '';
614 | top: var(--nav-row-height);
615 | right: 0;
616 | left: 0px;
617 | height: 10px;
618 | background: var(--nav-wash-color);
619 | z-index: 101;
620 | }
621 |
622 | /* @group Document */
623 |
624 | #doc {
625 | line-height: 22px;
626 | }
627 |
628 | /* Center images, maintain margins above and below */
629 | #doc .image-container img {
630 | margin: var(--doc-line-height) auto;
631 | }
632 |
633 | /* Center emojis vertically and prevent from expanding line-height */
634 |
635 | #doc img[data-emoji-ch] {
636 | margin: 0;
637 | margin-top: -3px;
638 | line-height: 1;
639 | }
640 |
641 |
642 | #doc .ace-line.empty {
643 | font-size: 0;
644 | line-height: 14px;
645 | }
646 |
647 | /* Increase line-height between paragraphs to 1:1 */
648 | #doc .ace-line.empty {
649 | line-height: var(--doc-line-height);
650 | }
651 |
652 | #doc-container {
653 | box-sizing: content-box;
654 | padding: 0 10vw;
655 | max-width: 800px;
656 | margin: auto;
657 | font-size: 16px;
658 | line-height: var(--doc-line-height);
659 | min-height: calc(100% - 200px);
660 | display: flex;
661 | flex-direction: column;
662 | }
663 |
664 | #doc-content {
665 | flex-grow: 1;
666 | flex-shrink 0;
667 | }
668 |
669 | #doc-footer {
670 | flex-shrink: 0;
671 | }
672 |
673 | body.use-frame #doc-container {
674 | display: none;
675 | }
676 |
677 | #doc-container iframe {
678 | width: 100%;
679 | border: none;
680 | height: 600px;
681 | min-height: 1px;
682 | }
683 |
684 | /* @group Doc Navigation */
685 |
686 | #doc-nav {
687 | max-width: calc((100% - var(--nav-width) - 800px) / 2);
688 | max-width: 10vw;
689 | top: 0;
690 | left: 0;
691 | position: fixed;
692 | box-sizing: border-box;
693 | background: clear;
694 | -webkit-mask-image: -webkit-gradient(linear, left top, right top, from(rgba(0,0,0,1)), to(rgba(0,0,0,0)));
695 | -webkit-background-clip: padding-box;
696 | }
697 |
698 | #doc-nav:hover {
699 | background: var(--background-color);
700 | max-width: none;
701 | width:auto;
702 | -webkit-mask-image: none;
703 | }
704 |
705 |
706 | #doc-nav img, #doc-nav a.gallery {
707 | display: none;
708 | }
709 |
710 | #doc-nav a {
711 | padding-left: 20px;
712 | padding-right: 20px;
713 | display: block;
714 | font-size: 13px;
715 | color:var(--doc-nav-text-color);
716 | overflow: hidden;
717 | white-space: nowrap;
718 | height: 40px;
719 | line-height: 40px;
720 | text-overflow: ellipsis;
721 | -webkit-transition: opacity 200ms;
722 | cursor: default;
723 | }
724 | #doc-nav:hover a {
725 |
726 | padding-right: 40px;
727 | }
728 |
729 |
730 | #doc-nav a.selected{
731 | color: var(--doc-nav-selection-text-color);
732 | }
733 |
734 | #doc-nav .top-link {
735 | font-weight: bold;
736 | }
737 | #doc-nav:hover a {
738 | text-overflow: ellipsis;
739 | }
740 |
741 | #doc-nav a:hover {
742 | color: var(--doc-nav-hover-text-color);
743 | background: var(--doc-nav-hover-color);
744 | }
745 |
746 |
747 |
748 | /* @end */
749 |
750 | /* @end */
751 |
752 |
753 | #warning {
754 | display: none;
755 | }
756 |
757 | /* @group Document Content */
758 |
759 | #doc a {
760 | text-decoration: none;
761 | }
762 |
763 |
764 |
765 | #doc .image-container {
766 | display:inline-block;
767 | max-width:100%;
768 | min-width:100px; /* TODO: break columns at small widths instead */
769 | margin-bottom:8px;
770 | margin-top:8px;
771 | }
772 |
773 | #doc .image-container.adaptive {
774 | /*width:100%; */
775 | }
776 |
777 | #doc .image-container.half-width {
778 | max-width:calc((100% - 16px) / 2);
779 | margin-right:16px;
780 | }
781 |
782 | #doc .image-container.float-right {
783 | float: right;
784 | }
785 | #doc .image-container.float-left {
786 | float: left;
787 | }
788 |
789 | #doc .image-container.third-width {
790 | max-width:calc((100% - 32px) / 3);
791 | margin-right:16px;
792 | }
793 |
794 | #doc .image-container:last-child {
795 | margin-right:0;
796 | }
797 |
798 | #doc .image-container-inner {
799 | display: block;
800 | }
801 |
802 | #doc .image-container.adaptive .image-container-inner {
803 | width: 100%;
804 | position: relative;
805 | height: 0;
806 | overflow: hidden;
807 | }
808 |
809 | #doc .image-container img {
810 | width: 100%;
811 | height: auto;
812 | margin:0;
813 |
814 | }
815 |
816 | #doc .image-container.adaptive img {
817 | display:block;
818 | position: absolute;
819 | top: 0;
820 | left: 0;
821 | right: 0;
822 | bottom: 0;
823 | width: 100%;
824 | height: 100%;
825 | }
826 |
827 | #doc code {
828 | display: block;
829 | background: #f1f1f1;
830 | padding: 2px 8px;
831 | font-family: monospace;
832 | background-color: #F7F9FA;
833 | font-family: SourceCodePro, monospace;
834 | font-size: 14px;
835 | }
836 |
837 |
838 |
839 | #doc table {
840 | /* Decrease font size within tables for higher info density; use tabular lining */
841 | border-spacing: 0;
842 | border-collapse: collapse;
843 | margin-top: 30px;
844 | font-size: 0.85em;
845 | margin: var(--doc-line-height) auto;
846 | font-feature-settings: 'tnum';
847 | -webkit-font-feature-settings: 'tnum';
848 | -moz-font-feature-settings: 'tnum';`
849 |
850 | }
851 |
852 |
853 | #doc table td, #doc table th {
854 | /* Top-align all table content by default */
855 | vertical-align: top;
856 | }
857 |
858 |
859 | #doc ol {
860 | /* Use tabular lining for numbers in ordered lists */
861 | font-feature-settings: 'tnum';
862 | -webkit-font-feature-settings: 'tnum';
863 | -moz-font-feature-settings: 'tnum';
864 | }
865 |
866 | #toc .mention-trigger-character {
867 | display: none;
868 | }
869 |
870 | #doc .hero {
871 | margin-top: -80px;
872 | margin-left: -120px;
873 | margin-right: -120px;
874 | width: calc(100% + var(--nav-width)) !important;
875 | max-width: auto !important;
876 | margin-bottom: 80px;
877 | }
878 |
879 | body.use-frame iframe#doc-frame {
880 | display: block;
881 | }
882 |
883 | body.use-search #doc-search-results {
884 | display: block;
885 | }
886 | body.use-search #doc-container,
887 | body.use-search #doc-frame {
888 | display: none;
889 | }
890 |
891 | #doc-search-results {
892 | padding: 40px 10vw;
893 | width: 100%;
894 | display: none;
895 | background: white;
896 | z-index: 100;
897 | padding-bottom: 100px;
898 | }
899 |
900 | #doc-search-results .result {
901 | display: block;
902 | color: var(--doc-text-color);
903 | margin-bottom: 24px;
904 | max-width: 512px;
905 | }
906 |
907 | body.nav-top #doc-search-results {
908 |
909 | }
910 |
911 | body.nav-top #doc-search-results {
912 | margin-top: var(--nav-row-height);
913 | }
914 |
915 |
916 | #doc-search-results:not(.expanded) .external-results {
917 | color:var(--doc-link-color);
918 | cursor: pointer;
919 | text-decoration: underline;
920 | }
921 |
922 | #doc-search-results .result .title{
923 | color: var(--doc-link-color);
924 | font-size: 16px;
925 | }
926 | #doc-search-results .result:hover .title,
927 | #doc-search-results:not(.expanded) .external-results h2:hover {
928 | text-decoration: underline;
929 | }
930 |
931 | #doc-search-results .result .snippet,
932 | #doc-search-results .result .address{
933 | font-size: 13px;
934 | color: #545454;
935 | }
936 |
937 | #doc-search-results .result .address {
938 |
939 | color: #006621;
940 | }
941 |
942 |
943 | #doc-search-results .result.external {
944 | display: none;
945 | }
946 | #doc-search-results.expanded .result.external {
947 | display: block;
948 | }
949 |
950 |
951 | iframe#doc-frame {
952 | width: 100%;
953 | height: 100%;
954 | position: relative;
955 | border: none;
956 | display: none;
957 | }
958 |
959 | #doc-title {
960 | font-size: 40px;
961 | line-height: 1.5em;
962 | font-weight: 200;
963 | font-family: var(--doc-title-font);
964 | box-sizing: border-box;
965 | padding-top: 80px;
966 | margin-bottom: 6px;
967 | }
968 |
969 | /* Offsets for first headers to make them line up with nav */
970 | #doc .ace-line:nth-child(2) h1 {
971 | margin-top: -8px;
972 | }
973 |
974 | #doc .ace-line:nth-child(2) h2 {
975 | margin-top: -1px;
976 | }
977 |
978 | #doc h1 {
979 | font-size: 26px;
980 | line-height: 36px;
981 | font-weight: normal;
982 | }
983 |
984 | #doc h2, #footer-next-link {
985 | font-size: 20px;
986 | line-height: 28px;
987 | font-weight: normal;
988 | }
989 |
990 | td {
991 | padding: 8px;
992 | border: 1px solid #ccc;
993 | }
994 |
995 | .image-container img {
996 | margin-right: 16px;
997 | margin-bottom: 16px;
998 | max-height: inherit !important;
999 | }
1000 |
1001 | #toc hr {
1002 | margin: 19px 0;
1003 | opacity:0.1;
1004 | background: var(--nav-text-color);
1005 | border: none;
1006 | height: 1px;
1007 | }
1008 |
1009 | #doc hr {
1010 | outline: none;
1011 | border: none;
1012 | border-bottom: 1px solid #f1f1f1;
1013 | width: calc(100%) !important;
1014 | margin: 12px 0;
1015 | }
1016 |
1017 | img.full-width {
1018 | max-width: calc(100% + 20vw) !important;
1019 | margin-left: calc(-10vw);
1020 | margin-right: calc(-10vw);
1021 | max-height: 500px;
1022 | vertical-align: middle;
1023 | }
1024 |
1025 | #doc .image-container img {
1026 | max-height:200%;
1027 | }
1028 |
1029 | .highlight {
1030 | background-color:yellow;
1031 | }
1032 |
1033 | /* @end */
1034 |
1035 | /* @group Edit Link */
1036 |
1037 | a.edit {
1038 | display: block;
1039 | -webkit-mask-image: url(../images/ic_mode_edit_black_24dp_2x.png);
1040 | -webkit-mask-position: center;
1041 | -webkit-mask-size: 24px 24px;
1042 | -webkit-mask-repeat: no-repeat;
1043 | background-color: black;
1044 | width: 48px;
1045 | height: 48px;
1046 | position: fixed;
1047 | bottom: 0;
1048 | opacity: 0.3;
1049 | visibility: var(--edit-links);
1050 | }
1051 |
1052 | #doc a.edit {
1053 | right: 0;
1054 | }
1055 |
1056 | #toc a.edit {
1057 | background-color: var(--nav-text-color);
1058 | }
1059 |
1060 | a.edit:hover {
1061 | opacity: 1.0;
1062 | }
1063 |
1064 | #toc a.edit {
1065 | right: auto;
1066 | left: 0;
1067 | }
1068 |
1069 | /* @end */
1070 |
1071 | /* @group Navlink */
1072 |
1073 | .navlink {
1074 | box-sizing: border-box;
1075 | color: var(--navlink-text-color);
1076 | padding: 19px 16px;
1077 | position: fixed;
1078 | top: 0;
1079 | background: var(--background-color);
1080 | max-width: 40px;
1081 | overflow: hidden;
1082 | white-space: nowrap;
1083 | }
1084 | #doc a.navlink:hover,
1085 | #doc #footer-next-link:hover {
1086 | text-decoration:none;
1087 | }
1088 |
1089 | .navlink .name {
1090 | display: none;
1091 | }
1092 |
1093 | .navlink:hover .name {
1094 | display: inline;
1095 | }
1096 |
1097 | #footer-next-link .label {
1098 | font-size: 12px;
1099 | }
1100 |
1101 | #footer-next-link {
1102 | color: var(--navlink-text-color);
1103 | padding: 10px;
1104 | margin-top: 100px;
1105 | bottom: 0;
1106 | margin-left: -20px;
1107 | padding: 20px 20px;
1108 | display: block;
1109 | }
1110 |
1111 | /* Animate the "next" arrow, because cupcake */
1112 |
1113 | #footer-next-link .direction {
1114 | display: inline-block;
1115 | transition: 0.15s ease-in-out;
1116 | }
1117 |
1118 | #footer-next-link:hover .direction {
1119 | transform: translateX(8px);
1120 | }
1121 |
1122 | .navlink:hover, #footer-next-link:hover {
1123 | max-width: none;
1124 | background: var(--navlink-hover-background);
1125 | color: var(--navlink-hover-text-color);
1126 | }
1127 |
1128 | .navlink#next-link {
1129 | right: 0;
1130 | }
1131 |
1132 | .navlink#prev-link {
1133 | left: 0;
1134 | }
1135 |
1136 | .navlink .name {
1137 | opacity: 0;
1138 | -webkit-transition: opacity 100ms;
1139 | }
1140 |
1141 | .navlink:hover .name {
1142 | opacity: 1.0;
1143 | }
1144 |
1145 | .navlink {
1146 | top: var(--nav-row-height);
1147 | display: none;
1148 | }
1149 | .navlink#prev-link {
1150 | left: 0;
1151 | }
1152 |
1153 | /* @end */
1154 |
1155 | /* @group Column Layouts */
1156 |
1157 | .doc-layout {
1158 | margin: 20px 0;
1159 | vertical-align: baseline;
1160 | }
1161 |
1162 | .doc-layout > div {
1163 | display: inline-block;
1164 | vertical-align: top;
1165 | margin-right: 16px;
1166 | font-size: 13px;
1167 | line-height: 20px;
1168 | }
1169 |
1170 | #doc .doc-layout > div .ace-line.empty {
1171 | line-height: 10px;
1172 | }
1173 |
1174 | .doc-layout > div:last-child {
1175 | margin-right: 0;
1176 | }
1177 |
1178 | .doc-layout.two-column > div {
1179 | width: 392px;
1180 | max-width:100%;
1181 | }
1182 |
1183 | .doc-layout.one-column > div {
1184 | width: 800px;
1185 | max-width:100%;
1186 | margin-right: none;
1187 | }
1188 |
1189 | .doc-layout.three-column > div, .doc-layout.left-column > div, .doc-layout.right-column > div {
1190 | width: 256px;
1191 | max-width:100%;
1192 | }
1193 |
1194 | .doc-layout.left-column > div:last-child, .doc-layout.right-column > div:first-child {
1195 | width: calc(256px + 16px + 256px);
1196 | }
1197 |
1198 |
1199 | .doc-layout.note {
1200 | background: #e7f2fa;
1201 | padding: 12px;
1202 | border-left: 10px solid #6AB0DE;
1203 | }
1204 |
1205 | .doc-layout.warning {
1206 | background: #ffedcc;
1207 | padding: 12px;
1208 | border-left: 10px solid #f0b37e;
1209 | }
1210 |
1211 | /* @end */
1212 |
1213 |
1214 |
1215 | /* @group Loading */
1216 |
1217 | .spinner {
1218 | font-size: 30px;
1219 | width: 3em;
1220 | height: 3em;
1221 | -webkit-transform: scale(0.7071067812, 0.4) rotate(45deg);
1222 | position: absolute;
1223 | top: 40px;
1224 | left: 50%;
1225 | margin-left: -1.5em;
1226 | margin-top: -1.5em;
1227 | opacity: 0.0;
1228 | -webkit-transition: opacity 0.3s;
1229 | -webkit-transition-delay: 0.6s;
1230 | display: none;
1231 | }
1232 |
1233 | body.loading .spinner,
1234 | body.searching .spinner {
1235 | opacity: 1.0;
1236 | display: block;
1237 | -webkit-transition: opacity 0.3s;
1238 | -webkit-transition-delay: 0.6s;
1239 | }
1240 |
1241 | body.loading #doc-container,
1242 | body.searching #doc-container {
1243 | -webkit-transition: opacity 2.0s ease-out;
1244 | opacity: 0.0;
1245 | }
1246 |
1247 | .spinner .square {
1248 | width: 1em;
1249 | height: 1em;
1250 | background: #0161FF;
1251 | left: 0em;
1252 | top: 0em;
1253 | position: absolute;
1254 | -webkit-animation: chase 1.8s cubic-bezier(0.5,0,0,1) infinite;
1255 | -webkit-transition: background 0s;
1256 | }
1257 |
1258 | .spinner .square:hover {
1259 | background: yellow;
1260 | }
1261 |
1262 | .spinner .square.alpha {
1263 | -webkit-animation-delay: 0.00s;
1264 | }
1265 |
1266 | .spinner .square.beta {
1267 | -webkit-animation-delay: 0.05s;
1268 | }
1269 |
1270 | .spinner .square.gamma {
1271 | -webkit-animation-delay: -1.1s;
1272 | }
1273 |
1274 | .spinner .square.delta {
1275 | -webkit-animation-delay: -1.05s;
1276 | }
1277 |
1278 | @-webkit-keyframes chase {
1279 | 0% {
1280 | left: 2em;
1281 | top: 2em;
1282 | }
1283 |
1284 | 5% {
1285 | left: 2em;
1286 | top: 2em;
1287 | }
1288 |
1289 | 25% {
1290 | left: 0em;
1291 | top: 2em;
1292 | }
1293 |
1294 | 30% {
1295 | left: 0em;
1296 | top: 2em;
1297 | }
1298 |
1299 | 50% {
1300 | left: 0em;
1301 | top: 0em;
1302 | }
1303 |
1304 | 55% {
1305 | left: 0em;
1306 | top: 0em;
1307 | }
1308 |
1309 | 75% {
1310 | left: 2em;
1311 | top: 0em;
1312 | }
1313 |
1314 | 80% {
1315 | left: 2em;
1316 | top: 0em;
1317 | }
1318 |
1319 | 100% {
1320 | left: 2em;
1321 | top: 2em;
1322 | }
1323 | }
1324 |
1325 | /* @end */
1326 |
1327 | /* @group Search */
1328 |
1329 | body #toc-search {
1330 | margin-top: 10px;
1331 | margin-left: 40px;
1332 | margin-right: 40px;
1333 | margin-bottom: 10px;
1334 | height: 30px;
1335 | }
1336 |
1337 | #toc-search input {
1338 | -webkit-appearance:none;
1339 | border: none;
1340 | background: none;
1341 | padding: 0;
1342 | margin: 0;
1343 | height:30px;
1344 | box-shadow: 0px 1px var(--nav-text-color);
1345 | transition: border-radius 300ms, background 30ms, padding 300ms, margin 300ms, width 300ms;
1346 | width: 100%;
1347 | }
1348 |
1349 | #toc-search input::placeholder {
1350 | transition: color 100ms;
1351 | color: var(--nav-text-color);
1352 | }
1353 |
1354 | #toc-search input:focus::placeholder {
1355 | transition: color 100ms ease 200ms;
1356 | color: black;
1357 | }
1358 |
1359 | #toc-search input:focus {
1360 | background: white;
1361 | color: black;
1362 | outline: none;
1363 | border-radius: 15px;
1364 | margin: 0 -10px 0 -10px;
1365 | padding: 0 10px 0 10px;
1366 | -webkit-transition: border-radius 300ms ease-out, background 300ms ease-in 100ms, padding 300ms, margin 300ms, width 300ms;
1367 | width: calc(100% + 20px);
1368 | }
1369 |
1370 |
1371 | body.nav-top #toc-search {
1372 | margin-top: 0px;
1373 | margin-bottom: 0px;
1374 | }
1375 |
1376 | body.nav-top #toc-search input:focus {
1377 | width: calc(100% + 30px);
1378 | }
1379 |
1380 |
1381 |
1382 |
1383 | /* @end */
1384 |
1385 |
1386 | /* @group Featherlight */
1387 |
1388 | .featherlight .featherlight-content {
1389 | background: none;
1390 | }
1391 |
1392 | .lightbox:last-of-type {
1393 | background: rgba(255, 255, 255, 0.95);
1394 | }
1395 |
1396 | .featherlight .featherlight-close-icon {
1397 | display: none;
1398 | }
1399 |
1400 | .featherlight-next span, .featherlight-previous span {
1401 | color: white;
1402 | text-shadow: none;
1403 | font-size: 40px;
1404 | }
1405 |
1406 | .featherlight-next:hover, .featherlight-previous:hover {
1407 | background: rgba(0,0,0,.25);
1408 | }
1409 |
1410 | /* @end */
1411 |
1412 |
1413 |
1414 | .doc-card {
1415 | background: white;
1416 | padding-bottom:8px;
1417 | margin-bottom:40px;
1418 | box-sizing:border-box;
1419 | min-height:100px;
1420 | overflow:hidden;
1421 | box-shadow: 0 1px 3px rgba(0,0,0,0.12), 0 1px 2px rgba(0,0,0,0.24);
1422 | transition: all 0.3s cubic-bezier(.25,.8,.25,1);
1423 | }
1424 | .doc-card a {
1425 | color: var(--doc-text-color);
1426 | }
1427 |
1428 | .doc-card:hover {
1429 | box-shadow: 0 14px 28px rgba(0,0,0,0.25), 0 10px 10px rgba(0,0,0,0.22);
1430 | }
1431 |
1432 | .doc-card img {
1433 | max-width:100%
1434 | }
1435 | #doc .doc-card .image-container {
1436 | margin:0;
1437 | width:100%;
1438 | }
1439 | .doc-card .title,
1440 | .doc-card .subtitle {
1441 | padding:0 8px;
1442 | margin-top:8px;
1443 | }
1444 |
1445 | .doc-card .title {
1446 | font-family: var(--doc-title-font);
1447 | font-size: 20px;
1448 | line-height: 28px;
1449 | font-weight: normal;
1450 | }
1451 |
1452 | .doc-layout.masonry > div {
1453 | column-count: 2;
1454 | column-gap: 40px;
1455 | }
1456 |
1457 | .doc-layout.masonry > div > a
1458 | { /* Masonry bricks or child elements */
1459 | display: inline-block;
1460 | margin: 0 0 40px;
1461 | width: 100%;
1462 | }
1463 |
1464 | .doc-layout.sticky-table tr:nth-child(1) td {
1465 | position: sticky;
1466 | top: 0;
1467 | background-color: var(--background-color)
1468 | }
1469 |
1470 | video {
1471 | width: 100%;
1472 | }
1473 |
1474 | .feedback-button, .feedback-button:visited {
1475 | right: 52px;
1476 | display: block;
1477 | position: fixed;
1478 | bottom: 0;
1479 | background: orange;
1480 | /*color: #813BF6;*/
1481 | color: #000000;
1482 | border-radius: 4px;
1483 | border: 1px solid #c1c7cd;
1484 | padding: 4px 12px;
1485 | margin: 8px 0;
1486 | font-size: 14px;
1487 | }
1488 |
--------------------------------------------------------------------------------
/docs/sre-_appendix.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
Dropbox Engineering Career Framework
14 |
15 |
☰
16 |
17 |
18 |
×
19 |
23 |
24 |
27 |
28 |
29 |
33 |
34 |
35 |
36 |
37 |
38 |
39 |
41 |
42 |
43 |
44 |
45 |
46 |
50 |
51 |
53 |
55 |
57 |
58 |
60 |
61 |
62 |
77 |
78 |
82 |
83 |
85 |
86 |
87 |
88 |
90 |
91 |
92 |
93 |
94 |
95 |
96 |
100 |
101 |
103 |
104 |
105 |
106 |
107 |
109 |
110 |
111 |
112 |
116 |
117 |
118 |
119 |
120 |
121 |
122 |
124 |
125 |
126 |
127 |
131 |
132 |
133 |
134 |
135 |
136 |
137 |
139 |
140 |
141 |
142 |
146 |
147 |
149 |
150 |
151 |
152 |
154 |
155 |
156 |
157 |
158 |
159 |
163 |
164 |
165 |
166 |
167 |
168 |
169 |
170 |
171 |
172 |
175 |
176 |
178 |
180 |
181 |
182 |
183 |
185 |
186 |
187 |
188 |
189 |
190 |
191 |
192 |
193 |
194 |
195 |
196 |
197 |
198 |
SRE: Appendix
199 |
Glossary
200 |
We’re striving to use clear language, but there are a few words where it’s helpful to expound upon how we interpret them.
201 |
Craft Responsibility Definitions
202 |
The responsibilities defined below make up the foundation of the Reliability Engineer craft:
203 |
204 | Systems Fluency. The ability to understand, troubleshoot and improve the systems that underlie our services.
205 | Systems Design. The ability to design the simplest, large scale systems of interacting components to meet sustainability, efficiency, and reliability requirements (what are the boxes in your architecture diagram, how do they interact).
206 | Code Fluency. The ability to read and write code fluently and well.
207 | Technical Strategy. Ensuring the right long-term technical decisions are being made by the organization - knowing what systems to build; making technical choices when there are not clear solutions. What standards apply to all the boxes in the organizations architecture diagrams?
208 |
209 |
211 |
212 |
213 |
214 |
225 |
226 |
227 |
233 |
239 |
--------------------------------------------------------------------------------
/docs/glossary.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
Dropbox Engineering Career Framework
14 |
15 |
☰
16 |
17 |
18 |
×
19 |
23 |
24 |
27 |
28 |
29 |
33 |
34 |
35 |
36 |
37 |
38 |
39 |
41 |
42 |
43 |
44 |
45 |
46 |
50 |
51 |
53 |
55 |
57 |
58 |
60 |
61 |
62 |
77 |
78 |
82 |
83 |
85 |
86 |
87 |
88 |
90 |
91 |
92 |
93 |
94 |
95 |
96 |
100 |
101 |
103 |
104 |
105 |
106 |
107 |
109 |
110 |
111 |
112 |
116 |
117 |
118 |
119 |
120 |
121 |
122 |
124 |
125 |
126 |
127 |
131 |
132 |
133 |
134 |
135 |
136 |
137 |
139 |
140 |
141 |
142 |
146 |
147 |
149 |
150 |
151 |
152 |
154 |
155 |
156 |
157 |
158 |
159 |
163 |
164 |
165 |
166 |
167 |
168 |
169 |
170 |
171 |
172 |
175 |
176 |
178 |
180 |
181 |
182 |
183 |
185 |
186 |
187 |
188 |
189 |
190 |
191 |
192 |
193 |
194 |
195 |
196 |
197 |
198 |
Glossary
199 |
We’re striving to use clear language, but there are a few words where it’s helpful to expound upon how we interpret them:
200 |
201 | Impact : The effect on Dropbox’s success as a business, in both direct and indirect ways. +What is Impact?
202 | Results : Results are a function of scope of impact and execution. Engineers at all levels should focus on making an impact in the most efficient way possible.
203 | Leadership : Display a sense of ownership and initiative, and convince, motivate and drive others towards execution of a goal.
204 | Mentorship : Guide and accelerate others down their path of professional development.
205 | Collaborative Reach : The breadth of collaboration and coordination required for a project.
206 | Organizational Leverage : A multiplier on results that comes from up-leveling an organization through talent development, culture, and setting direction.
207 | Technical Leverage : A multiplier on results that comes from one’s direct technical abilities. In other words: IC technical work.
208 |
209 |
211 |
212 |
213 |
214 |
225 |
226 |
227 |
233 |
239 |
--------------------------------------------------------------------------------
/docs/swe-_appendix.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
Dropbox Engineering Career Framework
14 |
15 |
☰
16 |
17 |
18 |
×
19 |
23 |
24 |
27 |
28 |
29 |
33 |
34 |
35 |
36 |
37 |
38 |
39 |
41 |
42 |
43 |
44 |
45 |
46 |
50 |
51 |
53 |
55 |
57 |
58 |
60 |
61 |
62 |
77 |
78 |
82 |
83 |
85 |
86 |
87 |
88 |
90 |
91 |
92 |
93 |
94 |
95 |
96 |
100 |
101 |
103 |
104 |
105 |
106 |
107 |
109 |
110 |
111 |
112 |
116 |
117 |
118 |
119 |
120 |
121 |
122 |
124 |
125 |
126 |
127 |
131 |
132 |
133 |
134 |
135 |
136 |
137 |
139 |
140 |
141 |
142 |
146 |
147 |
149 |
150 |
151 |
152 |
154 |
155 |
156 |
157 |
158 |
159 |
163 |
164 |
165 |
166 |
167 |
168 |
169 |
170 |
171 |
172 |
175 |
176 |
178 |
180 |
181 |
182 |
183 |
185 |
186 |
187 |
188 |
189 |
190 |
191 |
192 |
193 |
194 |
195 |
196 |
197 |
198 |
SWE: Appendix
199 |
Glossary
200 |
We’re striving to use clear language, but there are a few words where it’s helpful to expound upon how we interpret them.
201 |
Craft Responsibility Definitions
202 |
The responsibilities defined below make up the foundation of the Software Engineer craft:
203 |
204 | Code fluency: The ability to read and write code fluently and well.
205 | Software design: The ability to design software components with reasonable APIs and interaction patterns (writing good classes, modules, etc - building out a box in your architecture diagram)
206 | Architecture design: The ability to design systems of interacting components - e.g. a collection of interacting features or the architecture of a product, binary or significant service (what are the boxes in your architecture diagram, how do they interact)
207 | Technical strategy: Ensuring the right long-term technical decisions are being made by the organization - knowing what systems to build; making technical choices when there are not clear solutions. What standards apply to all the boxes in the organizations architecture diagrams?
208 |
209 |
211 |
212 |
213 |
214 |
225 |
226 |
227 |
233 |
239 |
--------------------------------------------------------------------------------