From e54458ad9c377e6fa43b38b8a7467f0437dbc139 Mon Sep 17 00:00:00 2001 From: "Rico Sta. Cruz" Date: Mon, 6 Jul 2020 01:51:52 +1000 Subject: [PATCH] Remove some deprecated sheets --- inline-docs.md | 37 ---------------------------- rails-features.md | 14 ----------- rubiks.md | 30 ----------------------- travis-gh-pages.md | 61 ---------------------------------------------- 4 files changed, 142 deletions(-) delete mode 100644 inline-docs.md delete mode 100644 rails-features.md delete mode 100644 rubiks.md delete mode 100644 travis-gh-pages.md diff --git a/inline-docs.md b/inline-docs.md deleted file mode 100644 index 3531a0797fb..00000000000 --- a/inline-docs.md +++ /dev/null @@ -1,37 +0,0 @@ ---- -title: Inline documentation ---- - -* Ruby: rdoc -* JavaScript: jsdoc - -### RDoc - - # Gets a circle's area - # - # @example - # - # area(3) - # #=> 28.27 - # - # @param [Number] r The radius of the ricle - # @return [true] If so - # - # == Definition lists - # - # list:: hi. - # +foo+:: parameterized - # - # == Definition lists - # [foo] also - # [bar] like this - -http://rdoc.rubyforge.org/RDoc/Markup.html - -### Jsdoc - - /** - * Ads numbers - * - * @this {Circle} - * @param {Number} r The radius diff --git a/rails-features.md b/rails-features.md deleted file mode 100644 index 4a699026d18..00000000000 --- a/rails-features.md +++ /dev/null @@ -1,14 +0,0 @@ ---- -title: Rails features -category: Rails ---- - -### [Page caching](https://github.com/rails/actionpack-page_caching) - - class WeblogController < ActionController::Base - caches_page :show, :new - end - -This will generate cache files such as `weblog/show/5.html` and -`weblog/new.html`, which match the URLs used that would normally trigger dynamic -page generation diff --git a/rubiks.md b/rubiks.md deleted file mode 100644 index f036a9d515e..00000000000 --- a/rubiks.md +++ /dev/null @@ -1,30 +0,0 @@ ---- -title: Rubiks cube ---- - -### Getting the cross - - * L (N W C) - * line (E C W) - * cross (N E W S C) - - `F R U R' U' F'` - -### Aligning the cross's sides - - * Nothing aligned - * line (N C S) - * L (N C E) - * All are aligned - - `R U R' U R 2U R'` - -### Aligning the corners - - * 0 spots ok - * 1 spot ok in south-east - * 4 spots ok: proceed - - `U R U' L' U R' U' L` - - diff --git a/travis-gh-pages.md b/travis-gh-pages.md deleted file mode 100644 index 5ee5f7bd894..00000000000 --- a/travis-gh-pages.md +++ /dev/null @@ -1,61 +0,0 @@ ---- -title: Deploy gh-pages via Travis -category: Git ---- - -Taken from https://medium.com/@nthgergo/publishing-gh-pages-with-travis-ci-53a8270e87db - -### Create an OAuth token and encrypt it - -Use https://github.com/settings/tokens/new - -```sh -# via ruby -gem install travis -travis encrypt -r user/repo GITHUB_TOKEN=[the token here] -``` - -### Make it run the deploy script on deploy - -```yaml - # .travis.yml -script: - - bash ./scripts/deploy-to-gh-pages.sh -env: - global: - - GITHUB_REPO: "user/repo" - - secure: "nlnXJW/imf/w..." # <-- from travis-encrypt -``` - -### Write deployer - -Create the file `scripts/deploy-to-gh-pages.sh` - -```sh -#!/bin/bash -# See https://medium.com/@nthgergo/publishing-gh-pages-with-travis-ci-53a8270e87db -set -o errexit - -rm -rf public -mkdir public - -# config -git config --global user.email "nobody@nobody.org" -git config --global user.name "Travis CI" - -# build (CHANGE THIS) -make - -# deploy -cd public -git init -git add . -git commit -m "Deploy to Github Pages" -git push --force --quiet "https://${GITHUB_TOKEN}@$github.com/${GITHUB_REPO}.git" master:gh-pages > /dev/null 2>&1 -``` - -From Ractive, this might be useful in certain cases: - -``` -if [ "$TRAVIS_PULL_REQUEST" != "false" -o "$TRAVIS_BRANCH" != "master" ]; then exit 0; fi -```