From 876fccbbde53e27b3fb820808d2c336ca71aa7e1 Mon Sep 17 00:00:00 2001 From: Jakob Odersky Date: Fri, 14 Sep 2018 17:59:21 -0700 Subject: Make this repo a standalone website These changes add the ability to generate a full website from individual style guides. The website can be viewed [here](drivergroup.github.io/best-practices). Also included, are the following additions: - Improve recommendations for Scala. - Add more recommendations for Git. - Add recommendations for Shell Script. --- guides/css.md | 11 ++++++ guides/git.md | 29 +++++++++++++++ guides/html.md | 14 ++++++++ guides/index.md | 0 guides/javascript.md | 95 ++++++++++++++++++++++++++++++++++++++++++++++++++ guides/scala.md | 81 ++++++++++++++++++++++++++++++++++++++++++ guides/shell-script.md | 63 +++++++++++++++++++++++++++++++++ 7 files changed, 293 insertions(+) create mode 100644 guides/css.md create mode 100644 guides/git.md create mode 100644 guides/html.md create mode 100644 guides/index.md create mode 100644 guides/javascript.md create mode 100644 guides/scala.md create mode 100644 guides/shell-script.md (limited to 'guides') diff --git a/guides/css.md b/guides/css.md new file mode 100644 index 0000000..94555f8 --- /dev/null +++ b/guides/css.md @@ -0,0 +1,11 @@ +## CSS + +- Prefer Flexbox + +- Classes should describe elements and not be generic (`Bigbox` -> `FAQContainer`) + +- Mobile: <= 620px + +- Tablet: 620px - 1024px + +- Desktop: > 1024px diff --git a/guides/git.md b/guides/git.md new file mode 100644 index 0000000..c03e447 --- /dev/null +++ b/guides/git.md @@ -0,0 +1,29 @@ +## Git + +- Use a simple branching model with one master development branch, and + create feature and backport branches as required. + + - The master branch should represent the latest development version. + + - Tag all released versions. + + - Backport branches may be spun off tags when they become necessary. + +- Proposed changes require at least one sign-off to be accepted into + master. + +- Large feature branches with multiple collaborators should be + *merged* into master. + + Rationale: rewriting history in public branches can break other + people's work and should not be done lightly. + +- Private feature branches should be *rebased* onto master, prior to + merging. *Squashing* is optional, but all intermediate commits + should contain meaningful changes and must pass continuous + integration tests. + + Rationale: private branches should be considered backups of work on + local developer machines and hence should not be relied upon by + others. Furthermore, a linear history is easier to reason about than + a branched one. diff --git a/guides/html.md b/guides/html.md new file mode 100644 index 0000000..e0581ef --- /dev/null +++ b/guides/html.md @@ -0,0 +1,14 @@ +## HTML + +- Use svg's over all other image formats when possible. + +- All `` tags should have `“alt”` text. + +- Only use tables for tabular data (not for layout) + +- Make use of html5 elements like `
`, `