Skip to content

Commit

Permalink
Revert "Add offline support (#1779)"
Browse files Browse the repository at this point in the history
This reverts commit 8746711.
  • Loading branch information
hillaryfraley committed Oct 1, 2019
1 parent 8746711 commit f0e9c59
Show file tree
Hide file tree
Showing 23 changed files with 4 additions and 347 deletions.
7 changes: 2 additions & 5 deletions Gruntfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ module.exports = function(grunt) {
require('cssnano')(),
],
},
src: ['static/stylesheets/sensu.css', 'static/stylesheets/offline.css'],
src: 'static/stylesheets/sensu.css',
},
dist: {
options: {
Expand All @@ -46,7 +46,6 @@ module.exports = function(grunt) {
develop: {
files: {
'static/stylesheets/sensu.css': 'static/stylesheets/scss/main.scss',
'static/stylesheets/offline.css': 'static/stylesheets/scss/offline.scss',
},
options: {
implementation: sass,
Expand Down Expand Up @@ -79,12 +78,10 @@ module.exports = function(grunt) {

grunt.registerTask("hugo-build", function() {
const done = this.async();
const args = process.argv.slice(3).filter(a => a !== '--color'); // fetch given arguments

grunt.log.writeln("Running hugo build");
grunt.util.spawn({
cmd: "hugo",
args: [...args],
},
function(error, result, code) {
if (code == 0) {
Expand All @@ -103,7 +100,7 @@ module.exports = function(grunt) {
grunt.log.writeln("Running Hugo server");
grunt.util.spawn({
cmd: "hugo",
args: ["server", "--disableFastRender", ...args], // pass arguments down
args: ["server", "--disableFastRender", ...args] , // pass arguments down
opts: {stdio: 'inherit'}
},
function(error, result, code) {
Expand Down
14 changes: 0 additions & 14 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -81,20 +81,6 @@ Here are some things to try if you encounter an issue working with the site:

This project uses a [fork](themes/hugo-material-docs/) of the wonderful [hugo-material-docs](https://github.com/digitalcraftsman/hugo-material-docs) theme.

### Developing Offline Docs

Offline documentation uses a set of layouts located in the `offline` directory. To preview them:

```
yarn run server --layoutDir=offline
```

To exclude content from the offline documentation, the following can be added to a markdown file's front matter:

```
offline: false
```

### Deploying the site

Whenever changes are merged to the `master` branch, this project is automatically deployed to [docs.sensu.io][site]. For additional details on Heroku configuration and deployment, see [our wiki page](https://github.com/sensu/sensu-docs/wiki/Heroku-Configuration-and-Publishing).
Expand Down
3 changes: 1 addition & 2 deletions content/sensu-go/5.11/getting-started/tutorial.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ layout: "katacoda-wide"
menu:
sensu-go-5.11:
parent: getting-started
offline: false
---

<script src="//katacoda.com/embed.js"></script>
Expand All @@ -18,4 +17,4 @@ offline: false
style="height: 800px; padding-top: 10px;"></div>

<br><br>
[**<-- Back to getting started**](../get-started)
[**<-- Back to getting started**](../get-started)
3 changes: 1 addition & 2 deletions content/sensu-go/5.12/getting-started/tutorial.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ version: "5.12"
weight: 3
product: "Sensu Go"
layout: "katacoda-wide"
offline: false
menu:
sensu-go-5.12:
parent: getting-started
Expand All @@ -20,4 +19,4 @@ menu:
style="height: 800px; padding-top: 10px;"
></div>
<br><br>
[**<-- Back to getting started**](../get-started)
[**<-- Back to getting started**](../get-started)
12 changes: 0 additions & 12 deletions offline/_default/base-for-directory-listing.html

This file was deleted.

Empty file.
28 changes: 0 additions & 28 deletions offline/_default/product-platforms.html

This file was deleted.

20 changes: 0 additions & 20 deletions offline/_default/product-versions.html

This file was deleted.

1 change: 0 additions & 1 deletion offline/_default/section.html

This file was deleted.

5 changes: 0 additions & 5 deletions offline/_default/single.html

This file was deleted.

12 changes: 0 additions & 12 deletions offline/index.html

This file was deleted.

2 changes: 0 additions & 2 deletions offline/partials/footer.html

This file was deleted.

10 changes: 0 additions & 10 deletions offline/partials/head.html

This file was deleted.

36 changes: 0 additions & 36 deletions offline/partials/platformDropdown.html

This file was deleted.

65 changes: 0 additions & 65 deletions offline/partials/toc.html

This file was deleted.

18 changes: 0 additions & 18 deletions offline/shortcodes/directoryListing.html

This file was deleted.

6 changes: 0 additions & 6 deletions offline/shortcodes/language-toggle.html

This file was deleted.

1 change: 0 additions & 1 deletion offline/shortcodes/platformBlock.html

This file was deleted.

1 change: 0 additions & 1 deletion offline/shortcodes/platformBlockClose.html

This file was deleted.

26 changes: 0 additions & 26 deletions offline/shortcodes/platformDropdown.html

This file was deleted.

1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@
"yaml": "^0.3.0"
},
"scripts": {
"build-offline": "grunt default --layoutDir=offline",
"postinstall": "grunt",
"server": "grunt server",
"hugo-version": "grunt hugo-version",
Expand Down
5 changes: 0 additions & 5 deletions static/stylesheets/scss/_toc.scss

This file was deleted.

Loading

0 comments on commit f0e9c59

Please sign in to comment.