Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Migrate Javascript docs to Hugo #4

Merged
merged 261 commits into from
Feb 2, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
261 commits
Select commit Hold shift + click to select a range
508beed
Update _index.html
LisaFC Sep 24, 2018
cda29e1
Update _index.html
LisaFC Sep 24, 2018
f6f018d
Update _index.html
LisaFC Sep 24, 2018
89d9e51
Update _index.html
LisaFC Sep 24, 2018
dde9b5a
Update _index.html
LisaFC Sep 24, 2018
39609ed
Use new community template
LisaFC Sep 28, 2018
8bb6e7b
Update _index.html
LisaFC Sep 28, 2018
9f27a6b
Update _index.html
LisaFC Sep 28, 2018
be89c22
Update _index.html
LisaFC Sep 28, 2018
b61e80d
Update _index.html
LisaFC Sep 28, 2018
59704d5
any ould resources
LisaFC Sep 28, 2018
693a4b5
Update _index.html
LisaFC Sep 28, 2018
ed3d2e3
Rename _index.html to _index.md
LisaFC Oct 3, 2018
111c6ea
Update _index.md
LisaFC Oct 3, 2018
dbcba90
Update _index.md
LisaFC Oct 3, 2018
866a135
Update _index.md
LisaFC Oct 3, 2018
ae7fba3
Doc section reorg, Docsy-fying, and updated instructions
LisaFC Oct 5, 2018
c2d3876
Update theme module
LisaFC Oct 5, 2018
7047fc9
Update theme module
LisaFC Oct 5, 2018
0cb10f9
Generalized blog text. Removed files that might cause confusion.
rionam Oct 5, 2018
2c162c3
Merge pull request #1 from rionam/rionce-blog
rionam Oct 5, 2018
0ae0310
Minor tweaks to instructions
LisaFC Oct 9, 2018
85a7202
Update README.md
LisaFC Oct 9, 2018
e8af5a5
Create LICENSE
LisaFC Oct 9, 2018
02dd6a7
added disclaimer to README
Oct 9, 2018
67f864f
removed generated resources folder
Oct 9, 2018
4fa88b1
Add license boilerplate
Oct 9, 2018
210915c
add contributing guide
Oct 9, 2018
605a05b
Update README.md
LisaFC Oct 15, 2018
92090c7
Removed submodule
Oct 15, 2018
bb26b7b
Added up to date theme module
Oct 15, 2018
e68be78
Update config.toml
LisaFC Oct 15, 2018
ac2169a
Update _index.md
LisaFC Oct 15, 2018
2d803c7
Merge pull request #1 from google/Update-repo-names
LisaFC Oct 15, 2018
5cf19e8
Update _index.md
LisaFC Oct 15, 2018
1ed7004
Update README.md
LisaFC Oct 15, 2018
a5eba95
Fix workaround instructions
LisaFC Oct 16, 2018
ac60ed6
Update _index.md
LisaFC Oct 17, 2018
953e190
Update config.toml
LisaFC Oct 18, 2018
18cfefe
Update _index.html
LisaFC Oct 18, 2018
f98f86b
Update README.md
LisaFC Oct 22, 2018
1b1a3f3
Update _index.md
LisaFC Oct 25, 2018
2a0ff69
Rename _index.md to .._index.md
LisaFC Oct 25, 2018
f9d15be
Rename content/en/docs/How-tos/.._index.md to content/en/docs/Tasks/_…
LisaFC Oct 25, 2018
3f21828
Rename content/en/docs/How-tos/knitting-paragraphs.md to content/en/d…
LisaFC Oct 25, 2018
940d064
Rename content/en/docs/How-tos/weaving-words.md to content/en/docs/Ta…
LisaFC Oct 25, 2018
d125b20
Rename content/en/docs/How-tos/Ponycopters/_index.md to content/en/do…
LisaFC Oct 25, 2018
35d62d4
Rename content/en/docs/How-tos/Ponycopters/configuring-ponycopters.md…
LisaFC Oct 25, 2018
1e5c30d
Rename content/en/docs/How-tos/Ponycopters/launching-ponycopters.md t…
LisaFC Oct 25, 2018
d77bbe2
Merge pull request #2 from google/LisaFC-tasks
LisaFC Oct 25, 2018
acddb87
improved favicon instructions
LisaFC Oct 31, 2018
35db657
update theme submodule
LisaFC Nov 1, 2018
d7853ad
Fixed a typo and some code formatting.
sarahmaddox Nov 10, 2018
4411902
More detail on landing pages and templates
LisaFC Nov 12, 2018
45cb525
Info on updating the theme
LisaFC Nov 12, 2018
0709c13
Merge pull request #3 from sarahmaddox/typos
LisaFC Nov 12, 2018
82e542e
Update _index.md
LisaFC Nov 12, 2018
24555c7
Update _index.md
LisaFC Nov 12, 2018
656e9a5
Fixing a badly used shortcode...
LisaFC Nov 12, 2018
5bfbc5d
Update _index.md
LisaFC Nov 12, 2018
554ca0d
Update README.md
LisaFC Nov 28, 2018
9182ba6
update config to demonstrate feedback widget
Dec 11, 2018
d76fce3
s/ocassionally/occasionally/
kaycebasques Dec 13, 2018
26565bd
s/ocasionally/occasionally/
kaycebasques Dec 13, 2018
0a38835
Updating theme submodule
LisaFC Dec 14, 2018
34f1820
Merge pull request #5 from kaycebasques/helpful
LisaFC Dec 14, 2018
4ae067b
Linking to the staged website from the README.
aijamalnk Jan 3, 2019
2e1b3dc
Fixing broken link to example repository.
aijamalnk Jan 3, 2019
5181866
Merge pull request #8 from aijamalnk/patch-2
chenopis Jan 7, 2019
bfb34df
Merge pull request #7 from aijamalnk/patch-1
chenopis Jan 7, 2019
7b2b986
Clarified where to find the user guide.
sarahmaddox Jan 10, 2019
3fc63c1
Merge pull request #9 from sarahmaddox/usergd
chenopis Jan 24, 2019
67530c7
Updating theme submodule
LisaFC Jan 25, 2019
7b19693
Merge branch 'master' of https://github.com/google/docsy-example
LisaFC Jan 25, 2019
f348c45
Adding resources
LisaFC Jan 25, 2019
5ebb527
Adding instructions
LisaFC Jan 31, 2019
e7cfa9d
Goldydocs rebranding part one...
LisaFC Mar 27, 2019
0b8584d
More content updates/simplification/porridgification
LisaFC Mar 27, 2019
a7b8436
Updated tasks page
LisaFC Mar 29, 2019
28b8049
Improved overview instructions
LisaFC Apr 2, 2019
41cdcb6
Contribution guidelines
LisaFC Apr 2, 2019
585eeca
Contribution guidelines
LisaFC Apr 2, 2019
76da944
Updating theme submodule
LisaFC Apr 2, 2019
0926bf5
Making the templatey nature more explicit
LisaFC Apr 15, 2019
313f542
Updated example getting started page
LisaFC Apr 24, 2019
f18af98
Fix default baseURL
LisaFC May 27, 2019
4642c63
Update config.toml
LisaFC Jun 14, 2019
8048e73
Update config.toml
sharifsalah Jun 20, 2019
948a461
Bump js-yaml from 3.12.1 to 3.13.1
dependabot[bot] Jun 21, 2019
a926fbc
Merge pull request #2 from LisaFC/dependabot/npm_and_yarn/js-yaml-3.13.1
LisaFC Jun 24, 2019
df230a3
Update config.toml
sharifsalah Jun 24, 2019
d062db5
Update config.toml
sharifsalah Jun 24, 2019
30f8b15
Merge pull request #1 from sharifsalah/github-project-repo
LisaFC Jun 24, 2019
1c50e8f
Updating theme submodule
LisaFC Jun 26, 2019
1fb3faa
tiny change for github subdir
LisaFC Jun 26, 2019
5a93743
small change to github subdir
LisaFC Jun 26, 2019
7e24b97
Merge branch 'master' of https://github.com/LisaFC/docsy-example-test
LisaFC Jun 26, 2019
49a0540
remove redundant resources folder
LisaFC Jun 26, 2019
ef19830
Update README.md
LisaFC Jun 26, 2019
62c57c9
Update README.md
LisaFC Jun 27, 2019
c7e507c
removing redundant files
LisaFC Jun 28, 2019
5516c6e
Merge branch 'master' of https://github.com/google/docsy-example
LisaFC Jun 28, 2019
0808198
Update config.toml
LisaFC Jun 28, 2019
d6aa89c
Added links to user guide repo
LisaFC Jul 3, 2019
0057b33
404 page
LisaFC Jul 3, 2019
8384633
Merge branch 'master' of https://github.com/google/docsy-example
LisaFC Jul 3, 2019
be6a4d9
Update _index.md
LisaFC Jul 3, 2019
3724b96
Changing placekitten links to be https
emckean Jul 8, 2019
ee0ef17
Update _index.html
LisaFC Jul 9, 2019
33360dc
Merge pull request #22 from emckean/https-placekitten
LisaFC Jul 9, 2019
5701edf
Adding missing title to README.md
kshithijiyer Jul 9, 2019
e94b414
updating theme
LisaFC Jul 10, 2019
d24dc99
Update README.md
LisaFC Jul 10, 2019
888df64
Bump lodash from 4.17.11 to 4.17.14
dependabot[bot] Jul 12, 2019
a2af45f
Merge pull request #24 from google/dependabot/npm_and_yarn/lodash-4.1…
LisaFC Jul 12, 2019
db29077
Merge pull request #23 from kshithijiyer/patch-1
LisaFC Jul 12, 2019
967896b
Add config option for about link in footer
Jul 24, 2019
4b7bbf7
Change the value to false
Jul 24, 2019
65a2285
Move images to params.images
ykzts Aug 6, 2019
14baffe
Merge pull request #28 from ykzts/params-images
LisaFC Aug 7, 2019
3f7ba13
Merge pull request #27 from alexearnshaw/patch-1
LisaFC Aug 7, 2019
d44d4bf
Bump mixin-deep from 1.3.1 to 1.3.2
dependabot[bot] Aug 28, 2019
9190a34
Updating theme submodule
LisaFC Sep 9, 2019
15575b4
Merge pull request #29 from google/dependabot/npm_and_yarn/mixin-deep…
LisaFC Sep 9, 2019
79f3bfd
Update config.toml
Oct 9, 2019
bdd27dd
Merge pull request #30 from alexearnshaw/patch-1
LisaFC Oct 9, 2019
872b7d9
Adding offlineSearch param
theletterf Oct 28, 2019
1c01ae7
Bump packages with CVEs
asmacdo Oct 31, 2019
50239ed
Create search-index.md
theletterf Nov 13, 2019
b9fac6c
Merge pull request #32 from asmacdo/npm-audit-bump
LisaFC Nov 13, 2019
33016af
Merge pull request #31 from theletterf/patch-1
LisaFC Nov 13, 2019
5e15cb3
Merge pull request #33 from theletterf/patch-2
LisaFC Nov 13, 2019
f8da87a
Updating theme submodule
LisaFC Nov 15, 2019
3cb43fd
Update _index.md
LisaFC Nov 27, 2019
b0291bc
Let Goldmark render raw HTML
LisaFC Dec 12, 2019
9eec2ef
Remove div that's confusing Goldmark
LisaFC Jan 20, 2020
29f1987
Merge pull request #1 from google/master
sarahmaddox Feb 1, 2020
33bf025
Added parameters for version banner.
sarahmaddox Feb 2, 2020
d61f67b
Merge pull request #36 from sarahmaddox/versionparams
LisaFC Feb 5, 2020
ad70ff6
Updating theme submodule
LisaFC Feb 18, 2020
216831c
Updating theme submodule
LisaFC Feb 18, 2020
e6b812d
Remove a unnecessary file (content/en/search-index.md)
tekezo Apr 7, 2020
06bfa3b
Merge pull request #50 from tekezo/feature/remove-old-offline-search-…
LisaFC Apr 8, 2020
7a25609
Add reading time parameter
LisaFC Apr 8, 2020
e4866e6
Updating theme submodule
Apr 9, 2020
5579a24
Fix typo descripton -> description
ulfjack Apr 14, 2020
5a51cdb
Merge pull request #53 from ulfjack/patch-1
LisaFC Apr 17, 2020
a63cea6
point to google/docsy-example instead
Apr 26, 2020
ab4277c
Merge pull request #55 from dholbach/switch-to-example-github
LisaFC Apr 28, 2020
d911ef9
update package.json and package-lock.json
hegemonic May 24, 2020
c16016f
Merge pull request #61 from hegemonic/package-json
LisaFC Jun 30, 2020
7fe3608
Create dependabot.yml
coliff Jun 30, 2020
20f246f
fixing typo
chrira Jul 14, 2020
9584512
Bump lodash from 4.17.15 to 4.17.19
dependabot[bot] Jul 16, 2020
76b7699
Merge pull request #66 from google/dependabot/npm_and_yarn/lodash-4.1…
LisaFC Jul 20, 2020
cfbbeec
Update config.toml
LisaFC Jul 22, 2020
0c47074
Merge pull request #67 from google/LisaFC-chroma
LisaFC Jul 22, 2020
185036b
Updating theme submodule
LisaFC Jul 22, 2020
ec6ee0b
Merge pull request #65 from chrira/typo
LisaFC Jul 22, 2020
5fc6264
Updating theme submodule
LisaFC Jul 29, 2020
233f9a2
Merge pull request #64 from coliff/patch-1
LisaFC Aug 18, 2020
0a5c62e
Bump autoprefixer from 9.8.0 to 9.8.6
dependabot[bot] Aug 18, 2020
0e537e4
Merge pull request #71 from google/dependabot/npm_and_yarn/autoprefix…
LisaFC Aug 18, 2020
ca1564d
add dockerfile and change readme with instructions to build and run t…
geriom Aug 31, 2020
c34162a
Bump postcss-cli from 7.1.1 to 7.1.2
dependabot[bot] Sep 1, 2020
62125e5
Updating theme submodule
LisaFC Sep 10, 2020
5a8faaa
Merge pull request #74 from google/dependabot/npm_and_yarn/postcss-cl…
LisaFC Sep 14, 2020
d899fba
Add config param for prism
alexearnshaw Sep 19, 2020
d498074
Set the prism option to false by default
alexearnshaw Sep 19, 2020
c884e38
Fixing broken links
deining Sep 21, 2020
4f42277
Merge pull request #76 from alexearnshaw/patch-1
LisaFC Sep 21, 2020
f807be7
Merge pull request #77 from deining/master
LisaFC Sep 21, 2020
da3b41f
Updating Docsy submodule
LisaFC Oct 12, 2020
3cbe73a
Updating theme submodule
LisaFC Nov 12, 2020
2769fca
Update docsy theme & enable 'print entire section'
gwatts Nov 18, 2020
30cc381
Add persian translations.
theSinner Nov 26, 2020
2cab944
Merge pull request #85 from gwatts/feature/update-docsy-print
LisaFC Dec 10, 2020
84dead8
Merge pull request #75 from google/geriom-dockerize
LisaFC Dec 10, 2020
2eee856
Update README.md
LisaFC Dec 11, 2020
344be57
Updating theme submodule
LisaFC Dec 11, 2020
e46e165
Merge pull request #87 from theSinner/add-persian-language
LisaFC Dec 11, 2020
c65ffec
:building_construction: Dockerfile + docker-compose.yaml build/running
marcellodesales Dec 17, 2020
c2ed25e
Update to latest Docsy
gwatts Dec 18, 2020
c27b948
Merge pull request #95 from gwatts/gareth/update-docsy
LisaFC Jan 5, 2021
f96057c
Merge pull request #90 from google/LisaFC-template
LisaFC Jan 5, 2021
81f42f1
Add a troubleshooting section.
gauravgahlot Jan 21, 2021
43ca6bc
Update README.md
LisaFC Feb 3, 2021
38d07a5
:whale: Dockerfile: Use the repo name as image tag
marcellodesales Feb 3, 2021
b23fd04
:memo: README: add steps with docker-compose
marcellodesales Feb 4, 2021
18f9ce1
Merge pull request #93 from marcellodesales/bugfix/dockerfile-docker-…
geriom Feb 5, 2021
0a7d5e9
Update Docker Compose instructions.
geriom Feb 9, 2021
92cc976
Fix indentation
geriom Feb 9, 2021
6b241ec
Make cleanup steps a subsection
geriom Feb 9, 2021
52eb8fa
Add github_branch
LisaFC Feb 10, 2021
1a37d48
Merge pull request #106 from google/LisaFC-patch-1
LisaFC Feb 10, 2021
b842eb8
Merge pull request #105 from google/geriom-readme-fixes
LisaFC Feb 11, 2021
7e75111
Merge branch 'master' into hugo-extended
LisaFC Feb 15, 2021
419bf56
Merge pull request #101 from gauravgahlot/hugo-extended
LisaFC Feb 15, 2021
062fef6
Dockerfile: use base image with extended version of Hugo
dseynaev Mar 3, 2021
4e1bd58
Update search engine
LisaFC Mar 15, 2021
1fa052f
Merge pull request #113 from google/LisaFC-search
LisaFC Mar 15, 2021
65ae0db
Bump y18n from 4.0.0 to 4.0.1
dependabot[bot] Mar 30, 2021
fdc2737
Dockerfile: use klakegg/hugo:ext-alpine
dseynaev Mar 31, 2021
8453a93
Merge pull request #112 from dseynaev/master
geriom Apr 1, 2021
403511f
Bump lodash from 4.17.20 to 4.17.21
dependabot[bot] May 7, 2021
2e14059
Bump browserslist from 4.14.0 to 4.16.6
dependabot[bot] May 24, 2021
d2aae67
Bump glob-parent from 5.1.1 to 5.1.2
dependabot[bot] Jun 8, 2021
bc71d88
Bump postcss from 7.0.32 to 7.0.36
dependabot[bot] Jun 15, 2021
917bdd9
Updating theme submodule
LisaFC Aug 17, 2021
0d78d56
Update config.toml
LisaFC Aug 24, 2021
34c0c2f
Merge pull request #116 from google/dependabot/npm_and_yarn/y18n-4.0.1
LisaFC Aug 24, 2021
2f464d0
Merge pull request #117 from google/dependabot/npm_and_yarn/lodash-4.…
LisaFC Aug 24, 2021
1361267
Merge pull request #119 from google/dependabot/npm_and_yarn/browsersl…
LisaFC Aug 24, 2021
3e5adf5
Merge pull request #121 from google/dependabot/npm_and_yarn/glob-pare…
LisaFC Aug 24, 2021
5ce591b
Merge pull request #122 from google/dependabot/npm_and_yarn/postcss-7…
LisaFC Aug 24, 2021
416debc
Updating theme submodule
LisaFC Aug 30, 2021
23616ab
Add taxonomy sample code
geriom Sep 3, 2021
97a5874
Add navbar_translucent_over_cover_disable and sort ui elements
chalin Sep 22, 2021
404d42d
Delete package-lock.json and ignore it
chalin Sep 22, 2021
296bae4
Add a netlify.toml and update HUGO_VERSION
chalin Sep 22, 2021
547d285
Update package.json: postcss*
chalin Sep 22, 2021
f4d3cda
Merge pull request #129 from google/geriom-add-taxonomy
LisaFC Sep 23, 2021
d8872c9
Merge pull request #130 from chalin/chalin-new-navbar-option-2021-09-22
LisaFC Sep 23, 2021
b549646
Merge pull request #131 from chalin/chalin-drop-pkg-lock-2021-09-22
LisaFC Sep 23, 2021
03f2611
Merge pull request #132 from chalin/chalin-add-netlify-toml-2021-09-22
LisaFC Sep 23, 2021
e8198d1
Flip incorrect boolean in comment
mhansen Oct 24, 2021
be699f2
README: add link to deploy-logs
chalin Oct 26, 2021
f02cc65
Merge pull request #144 from chalin/chalin-readme-link-to-deploy-logs…
LisaFC Oct 26, 2021
99050dd
Min version of Node is latest LTS version
chalin Oct 26, 2021
d7b48dd
Add link to official Netlify dashboard
chalin Oct 26, 2021
2dbb7b5
Merge pull request #146 from chalin/chalin-use-lts-node-2021-10-26
LisaFC Oct 26, 2021
91d8885
Merge pull request #147 from chalin/chalin-alt-deploy-log-2021-10-26
LisaFC Oct 26, 2021
65c8463
Bump autoprefixer from 9.8.8 to 10.4.0
dependabot[bot] Oct 28, 2021
3fc65af
Bump postcss-cli from 8.3.1 to 9.0.2
dependabot[bot] Nov 5, 2021
0829c34
Merge pull request #142 from mhansen/patch-1
LisaFC Nov 25, 2021
f8b5962
Merge pull request #150 from google/dependabot/npm_and_yarn/postcss-c…
LisaFC Nov 25, 2021
70e301f
Merge pull request #149 from google/dependabot/npm_and_yarn/autoprefi…
LisaFC Nov 25, 2021
7bb0cd7
Bumped docsy theme to latest version
deining Dec 6, 2021
90cde1d
Merge pull request #155 from deining/submodule_docsy
LisaFC Dec 15, 2021
e9fb183
merge in docsy-example as subdirectory
Dec 28, 2021
33a85fb
examples, api and intro docs
Jan 4, 2022
9c81a57
Tutorial 1 first draft
Jan 22, 2022
b014d72
tutorials 2 and 3
Jan 26, 2022
334893a
more cleanup
Jan 29, 2022
98fe194
tutorial 2 and feedback page
Jan 31, 2022
8eeeb12
tutorial 3 cleanup
Feb 1, 2022
c2bb50d
release 1.0 js prep
Feb 2, 2022
03d3e4b
add generated typescript version
Feb 2, 2022
0a2a927
use shortcode to allow serving from subdirectory like in github pages
Feb 2, 2022
94754e8
update generated typescript docs for relative image locations
Feb 2, 2022
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
.DS_Store
bgdocs.code-workspace
node_modules



4 changes: 4 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@

[submodule "doc-site/themes/docsy"]
path = doc-site/themes/docsy
url = https://github.com/google/docsy
14 changes: 14 additions & 0 deletions doc-site/.github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
version: 2
updates:
- package-ecosystem: npm
directory: "/"
schedule:
interval: daily
time: '20:00'
open-pull-requests-limit: 10
- package-ecosystem: bundler
directory: "/"
schedule:
interval: daily
time: '20:00'
open-pull-requests-limit: 10
6 changes: 6 additions & 0 deletions doc-site/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
/public
resources/
node_modules/
package-lock.json
.hugo_build.lock
*.bak
1 change: 1 addition & 0 deletions doc-site/.nvmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
lts/*
3 changes: 3 additions & 0 deletions doc-site/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
FROM klakegg/hugo:ext-alpine

RUN apk add git
6 changes: 6 additions & 0 deletions doc-site/assets/scss/_variables_project.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
/*

Add styles or override variables from the theme here.

*/

233 changes: 233 additions & 0 deletions doc-site/config.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,233 @@
baseURL = "https://yahoo.github.io/bgdocs/docs/typescript/"
title = "Behavior Graph"

ignoreFiles = ["community", "blog", "about", "docs2", "ignore", "\\.bak$"]

enableRobotsTXT = true

# Hugo allows theme composition (and inheritance). The precedence is from left to right.
theme = ["docsy"]

# Will give values to .Lastmod etc.
enableGitInfo = true

# Language settings
contentDir = "content/en"
defaultContentLanguage = "en"
defaultContentLanguageInSubdir = false
# Useful when translating.
enableMissingTranslationPlaceholders = true

# Comment out to enable taxonomies in Docsy
# disableKinds = ["taxonomy", "taxonomyTerm"]

# You can add your own taxonomies
[taxonomies]
tag = "tags"
category = "categories"

[params.taxonomy]
# set taxonomyCloud = [] to hide taxonomy clouds
taxonomyCloud = ["tags", "categories"]

# If used, must have same lang as taxonomyCloud
taxonomyCloudTitle = ["Tag Cloud", "Categories"]

# set taxonomyPageHeader = [] to hide taxonomies on the page headers
taxonomyPageHeader = ["tags", "categories"]


# Highlighting config
pygmentsCodeFences = true
pygmentsUseClasses = false
# Use the new Chroma Go highlighter in Hugo.
pygmentsUseClassic = false
#pygmentsOptions = "linenos=table"
# See https://help.farbox.com/pygments.html
pygmentsStyle = "tango"

# Configure how URLs look like per section.
[permalinks]
blog = "/:section/:year/:month/:day/:slug/"


## Configuration for BlackFriday markdown parser: https://github.com/russross/blackfriday
[blackfriday]
plainIDAnchors = true
hrefTargetBlank = true
angledQuotes = false
latexDashes = true

# Image processing configuration.
[imaging]
resampleFilter = "CatmullRom"
quality = 75
anchor = "smart"

[services]
[services.googleAnalytics]
# Comment out the next line to disable GA tracking. Also disables the feature described in [params.ui.feedback].
#id = "UA-00000000-0"

# Language configuration

[languages]
[languages.en]
title = "Behavior Graph"
description = "Behaior Graph Documentation"
languageName ="English"
# Weight used for sorting.
weight = 1
#[languages.no]
#title = "Goldydocs"
#description = "Docsy er operativsystem for skyen"
#languageName ="Norsk"
#contentDir = "content/no"
#time_format_default = "02.01.2006"
#time_format_blog = "02.01.2006"

#[languages.fa]
#title = "اسناد گلدی"
#description = "یک نمونه برای پوسته داکسی"
#languageName ="فارسی"
#contentDir = "content/fa"
#time_format_default = "2006.01.02"
#time_format_blog = "2006.01.02"

[markup]
[markup.goldmark]
[markup.goldmark.renderer]
unsafe = true
[markup.highlight]
# See a complete list of available styles at https://xyproto.github.io/splash/docs/all.html
style = "tango"
# Uncomment if you want your chosen highlight style used for code blocks without a specified language
guessSyntax = "false"

# Everything below this are Site Params

[security]
[security.exec]
allow = ['^dart-sass-embedded$', '^go$', '^npx$', '^postcss$', '^asciidoctor$']

# Comment out if you don't want the "print entire section" link enabled.
[outputs]
section = ["HTML", "print", "RSS"]

[params]
copyright = "Yahoo"
#privacy_policy = "https://policies.google.com/privacy"

# First one is picked as the Twitter card image if not set on page.
# images = ["images/project-illustration.png"]

# Menu title if your navbar has a versions selector to access old versions of your site.
# This menu appears only if you have at least one [params.versions] set.
version_menu = "Releases"

# Flag used in the "version-banner" partial to decide whether to display a
# banner on every page indicating that this is an archived version of the docs.
# Set this flag to "true" if you want to display the banner.
archived_version = false

# The version number for the version of the docs represented in this doc set.
# Used in the "version-banner" partial to display a version number for the
# current doc set.
version = "1.0.0"

# A link to latest version of the docs. Used in the "version-banner" partial to
# point people to the main doc site.
url_latest_version = "https://yahoo.github.io/bgdocs"

# Repository configuration (URLs for in-page links to opening issues and suggesting changes)
#github_repo = "https://github.com/google/docsy-example"
# An optional link to a related project repo. For example, the sibling repository where your product code lives.
#github_project_repo = "https://github.com/google/docsy"

# Specify a value here if your content directory is not in your repo's root directory
# github_subdir = ""

# Uncomment this if you have a newer GitHub repo with "main" as the default branch,
# or specify a new value if you want to reference another branch in your GitHub links
# github_branch= "main"

# Google Custom Search Engine ID. Remove or comment out to disable search.
#gcs_engine_id = "d72aa9b2712488cc3"

# Enable Algolia DocSearch
algolia_docsearch = false

# Enable Lunr.js offline search
offlineSearch = false

# Enable syntax highlighting and copy buttons on code blocks with Prism
prism_syntax_highlighting = false

# User interface configuration
[params.ui]
# Set to true to disable breadcrumb navigation.
breadcrumb_disable = false
# Set to true to disable the About link in the site footer
footer_about_disable = false
# Set to false if you don't want to display a logo (/assets/icons/logo.svg) in the top navbar
navbar_logo = true
# Set to true if you don't want the top navbar to be translucent when over a `block/cover`, like on the homepage.
navbar_translucent_over_cover_disable = false
# Enable to show the side bar menu in its compact state.
sidebar_menu_compact = false
# Set to true to hide the sidebar search box (the top nav search box will still be displayed if search is enabled)
sidebar_search_disable = false

# Adds a H2 section titled "Feedback" to the bottom of each doc. The responses are sent to Google Analytics as events.
# This feature depends on [services.googleAnalytics] and will be disabled if "services.googleAnalytics.id" is not set.
# If you want this feature, but occasionally need to remove the "Feedback" section from a single page,
# add "hide_feedback: true" to the page's front matter.
[params.ui.feedback]
enable = false
# The responses that the user sees after clicking "yes" (the page was helpful) or "no" (the page was not helpful).
#yes = 'Glad to hear it! Please <a href="https://github.com/yahoo/bgdocs/issues/new">tell us how we can improve</a>.'
#no = 'Sorry to hear that. Please <a href="https://github.com/yahoo/bgdocs/issues/new">tell us how we can improve</a>.'

# Adds a reading time to the top of each doc.
# If you want this feature, but occasionally need to remove the Reading time from a single page,
# add "hide_readingtime: true" to the page's front matter
[params.ui.readingtime]
enable = false

[params.links]
# End user relevant links. These will show up on left side of footer and in the community page if you have one.
#[[params.links.user]]
#name = "User mailing list"
#url = "https://example.org/mail"
#icon = "fa fa-envelope"
#desc = "Discussion and help from your fellow users"
#[[params.links.user]]
#name ="Twitter"
#url = "https://example.org/twitter"
#icon = "fab fa-twitter"
#desc = "Follow us on Twitter to get the latest news!"
#[[params.links.user]]
#name = "Stack Overflow"
#url = "https://example.org/stack"
#icon = "fab fa-stack-overflow"
#desc = "Practical questions and curated answers"
# Developer relevant links. These will show up on right side of footer and in the community page if you have one.
#[[params.links.developer]]
#name = "GitHub"
#url = "https://github.com/google/docsy"
#icon = "fab fa-github"
#desc = "Development takes place here!"
#[[params.links.developer]]
#name = "Slack"
#url = "https://example.org/slack"
#icon = "fab fa-slack"
#desc = "Chat with other project developers"
#[[params.links.developer]]
#name = "Developer mailing list"
#url = "https://example.org/mail"
#icon = "fa fa-envelope"
#desc = "Discuss development issues around the project"

[params.mermaid]
enable = true

89 changes: 89 additions & 0 deletions doc-site/content/en/_index.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,89 @@
---
title: "Behavior Graph"
linkTitle: "Documentation"
weight: 20
type: "docs"

cascade:
- type: "blog"
# set to false to include a blog section in the section nav along with docs
toc_root: true
_target:
path: "/blog/**"
- type: "docs"
_target:
path: "/**"
kind: "page"
- type: "docs"
_target:
path: "/**"
kind: "section"
---

Behavior Graph is a software architecture and state management library. It greatly enhances your ability to write complex user facing software and control systems. Broadly speaking, it belongs to the category of libraries which includes Redux, MobX, Rx (Reactive Extensions), and XState. It works by providing a specialized unit of composition which we call the __behavior__. Behaviors are simple blocks of code together with their dependency relationships.

## Is it any good?

Yes

## Highlights

* Minimal boilerplate
* Scales from the simple to the very complex
* Incremental adoption: works alongside existing code and frameworks
* Handles state, events, and effects all in one
* Multi-platform (Javascript/Typescript, Kotlin, Objective-C, Swift)

We developed Behavior Graph to address our own complexity challenges while building an iOS video playing library which is used internally throughout the suite of native Yahoo mobile apps. After years of development and production usage, it has proven to be incredibly competent at scale. We have since ported it to multiple languages including Javascript/Typescript. It is less than 1500 lines of code and contains no external dependencies.

Behavior Graph will particularly appeal to anyone with a willingness to rethink how we write software applications.

## What does it look like?

The below block of code implements a simple counter using Behavior Graph.
It can increment the counter or reset it back to zero.

About 70% of the concepts you need to work with Behavior Graph are contained in this one example.

<!-- Intro-1 -->
{{< highlight javascript >}}
this.increment = this.moment();
this.reset = this.moment();
this.counter = this.state(0);

this.behavior()
.demands(this.increment, this.reset)
.supplies(this.counter)
.runs(this => {
if (this.increment.justUpdated) {
this.counter.update(this.counter.value + 1);
} else if (this.reset.justUpdated) {
this.counter.update(0);
}
});
{{< /highlight >}}

A typical Behavior Graph program consists of dozens or hundreds of behaviors like this, each with its own responsibilities.
The Behavior Graph library then ensures these behaviors are correctly specified and runs them at the correct time and in the correct order.
At scale this is shockingly effective.

## Is it for me?

Behavior Graph is a general purpose library which you can use to organize the event driven logic in any program.
It should also be of interest to anyone with an interest in software engineering and architectures.

Specifically if you are working on any of these categories, you should definitely consider it:

* Web apps
* Mobile apps
* Desktop Applications
* User Interfaces
* Control Systems
* Robots
* Games

## Learning Behavior Graph

While there are only a handful of basic concepts in Behavior Graph, it does require a shift in thinking.
We recommend you start with the [Quick Start]({{< ref quickstart >}}) then work through the [Tutorials]({{< ref "tutorials/tutorial-1" >}}).
They will help you understand how the pieces fit together.
Loading