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

Riak KV 3.0.0 -> 3.0.4 #111

Merged
merged 138 commits into from
Jun 2, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
138 commits
Select commit Hold shift + click to select a range
4401fee
Added GSets
Bob-The-Marauder Nov 17, 2019
c2101f3
Updated notes on how to upgrade
Bob-The-Marauder Nov 17, 2019
5d2dd26
Fixed a hiccup with reversed config file names
Bob-The-Marauder Nov 17, 2019
679a1fb
Added examples for Erlang and PHP client
Bob-The-Marauder Nov 17, 2019
2a343f3
Merge branch 'nick_2.2.6' of https://github.com/ti-tokyo/riak-docs-fo…
Bob-The-Marauder Nov 17, 2019
dd36811
Updated c# examples
Bob-The-Marauder Nov 17, 2019
996640b
Add updated NodeJS examples
Bob-The-Marauder Nov 17, 2019
425305b
Missed file plus Smarg edits
Bob-The-Marauder Nov 17, 2019
1f58cff
Gsets update
Bob-The-Marauder Dec 19, 2019
788bbe3
Upgrade instructions and resolving https://github.com/basho/basho_doc…
Bob-The-Marauder Dec 23, 2019
ce785cf
Fixed version typo
Bob-The-Marauder Dec 23, 2019
3b970d8
Fixed an inherited grammatical error
Bob-The-Marauder Dec 24, 2019
ad2b1eb
Merge pull request #5 from TI-Tokyo/nick_2.2.6
Bob-The-Marauder Dec 24, 2019
40835c0
Updated the install files to match the current status of the Riak com…
Bob-The-Marauder Feb 15, 2020
f7107c6
Updated Basho reference
Bob-The-Marauder Feb 15, 2020
592db45
Fixed typo
Bob-The-Marauder Feb 15, 2020
1cb022a
Update gsets.md
JMercerGit Feb 20, 2020
92776e8
Update content/riak/kv/2.2.6/setup/installing/rhel-centos.md
Bob-The-Marauder Feb 21, 2020
a6bfe4c
Update content/riak/kv/2.2.6/setup/installing/rhel-centos.md
Bob-The-Marauder Feb 21, 2020
165dbad
Update gsets.md
JMercerGit Feb 21, 2020
3e8f78c
Update gsets.md
JMercerGit Feb 21, 2020
4eb3f1c
Merge pull request #7 from JMercerGit/nick_2.2.6
Bob-The-Marauder Mar 5, 2020
ab36439
Merge pull request #6 from TI-Tokyo/nick_2.2.6
Bob-The-Marauder Mar 5, 2020
3b84c6c
Merge branch 'nick_2.2.6' of https://github.com/JMercerGit/riak-docs-…
JMercerGit Sep 28, 2020
ff12587
Updates for Sets and GSets support.
daniel020403 Apr 7, 2021
fea3146
Merge pull request #8 from daniel020403/daniel-gsets-java
pjaclark Apr 9, 2021
aa6b6e5
GSets documentation updates.
daniel020403 Apr 13, 2021
e080e75
Merge pull request #9 from daniel020403/daniel/gsets-docs-updates
pjaclark Apr 13, 2021
4ad10a8
Updated bucket and key for the Java and Ruby examples for consistency.
daniel020403 Apr 13, 2021
7a0cd59
Fixes to known issues with the 2.2.6 docs. Does not fix gsets menu issue
Bob-The-Marauder Apr 14, 2021
a4df851
Fixed strange path hiccup
Bob-The-Marauder Apr 14, 2021
aa01091
Merge pull request #11 from TI-Tokyo/nick_2.2.6
pjaclark Apr 14, 2021
190f09c
Initial 2.9.0 commit with a little work done in content/riak/kv/2.9.0
Bob-The-Marauder Apr 23, 2021
b0067d8
Updated relevant pages to 2.9.0
JMercerGit May 5, 2021
4e29f11
WIP update
Bob-The-Marauder May 7, 2021
d632992
Merge pull request #10 from daniel020403/daniel/gsets-docs-updates-co…
pjaclark May 14, 2021
bc11804
Revert "Updated bucket and key for the Java and Ruby examples for con…
pjaclark May 14, 2021
76ce2f2
Merge pull request #47 from TI-Tokyo/revert-10-daniel/gsets-docs-upda…
pjaclark May 14, 2021
0c70bbf
Update release-notes.md
JMercerGit May 14, 2021
dcd145d
Merge pull request #48 from TI-Tokyo/nick-2.9.0
pjaclark May 14, 2021
93ef125
Merge branch 'master' into nick_2.2.6
pjaclark May 14, 2021
f64c1bd
Merge pull request #46 from JMercerGit/nick_2.2.6
pjaclark May 14, 2021
7e792b7
Updated backend.md to include leveled backend
JMercerGit Jun 2, 2021
d162e52
update leveled.md
JMercerGit Jun 2, 2021
70f3906
updated leveled.md
JMercerGit Jun 3, 2021
b18181e
update basic.md links to reflect riak.com
JMercerGit Jun 3, 2021
fad80b5
updated old basho.com links to riak.com
JMercerGit Jun 3, 2021
99e7f39
updated documentation references
JMercerGit Jun 3, 2021
b1b09c7
Update basic.md
JMercerGit Jun 3, 2021
d541105
Update app-guide.md
JMercerGit Jun 3, 2021
ca9063d
Updating to 2.9.0 references
JMercerGit Jun 10, 2021
9526a5a
Updates upgrading docs
JMercerGit Jun 10, 2021
233f878
Update TicTac-Active-anti-entropy.md
JMercerGit Jun 16, 2021
c8faa3d
Update backend.md
JMercerGit Jun 16, 2021
ba8e990
Fixed a capitalisation error
JMercerGit Jun 21, 2021
ab83e40
Fixes requested by Nick
JMercerGit Jul 6, 2021
e791bc2
Merge pull request #49 from JMercerGit/nick_2.2.6
JMercerGit Jul 7, 2021
54f0a02
GSet updates for Ruby sample codes.
daniel020403 Aug 5, 2021
d097669
Merge pull request #52 from daniel020403/daniel/2.6.6-ruby-gsets
daniel020403 Aug 5, 2021
b969256
Merge pull request #53 from TI-Tokyo/dev-2.2.6
daniel020403 Aug 6, 2021
fea8d3b
Update to updating objects - add curl
Bob-The-Marauder Aug 27, 2021
d6f7798
Added files for 2.9.1
JMercerGit Sep 1, 2021
084b320
Changed references to riak-admin and riak-repl
JMercerGit Sep 1, 2021
597ce13
Revert "Changed references to riak-admin and riak-repl"
JMercerGit Sep 2, 2021
2dbae20
Added new versions to config.yaml
JMercerGit Sep 2, 2021
49dae14
Merge pull request #55 from TI-Tokyo/2.2.6-dev-nsa
pjaclark Sep 3, 2021
db7896f
Edits to include links to the latest packages in 2.2.6/2.9.0
JMercerGit Sep 7, 2021
c1500c1
Modified erlang.md to reflect setting no longer included by default
JMercerGit Sep 15, 2021
cffdbf1
Update to updating objects - add curl (#65)
JMercerGit Sep 17, 2021
45b4b3b
Merge pull request #58 from TI-Tokyo/dev-2.9.1
Bob-The-Marauder Oct 25, 2021
6f0a64d
Creation of 2.9.2 branch & version changes.
JMercerGit Nov 30, 2021
05aaac8
Updated release notes for 2.9.2, added Node confirms details
JMercerGit Nov 30, 2021
2562388
Revert "Updated release notes for 2.9.2, added Node confirms details"
JMercerGit Nov 30, 2021
a220305
Merge pull request #72 from JMercerGit/DevJM-2.9.2
JMercerGit Nov 30, 2021
3913491
Copy from PJAC
pjaclark Dec 8, 2021
2d039c5
Missing files from 2.9.7 update
pjaclark Dec 8, 2021
85aba95
Added missing latest to 2.9.7
pjaclark Dec 8, 2021
d32d338
Remove KV 2.9.0 folder
pjaclark Dec 8, 2021
b3022c7
Fixed bad aliases for jmx.md
pjaclark Dec 8, 2021
069245d
Updates to latest and restored two files
pjaclark Dec 8, 2021
3b90d87
Update releases notes, add NG rep configs (#76)
JMercerGit Dec 10, 2021
eff7bff
Added dockerfile and scripts
pjaclark Feb 4, 2022
274dbc4
Added 2.9.8, 2.9.9 and 2.9.10 as copies of 2.9.7
pjaclark Feb 4, 2022
acacadc
Fix strong-consistency find-replace errors
pjaclark Feb 4, 2022
4cb66c5
Removed */latest/* from 2.9.7->2.9.9
pjaclark Feb 4, 2022
8c433ab
Update config.yaml to have 2.9.8->2.9.10
pjaclark Feb 4, 2022
d21ce63
Fix 2.9.9/2.9.10 copy-paste error
pjaclark Feb 4, 2022
de78c80
Add Oracle OS, update metadata
pjaclark Feb 4, 2022
a8a3fe6
Updated release notes for 2.9.7+
pjaclark Feb 4, 2022
aebbf0f
Removed PJAC debug
pjaclark Feb 4, 2022
735dda7
Fix for http:/localhost issue on downloads page
pjaclark Feb 4, 2022
0474d16
Remove debug code
pjaclark Feb 4, 2022
9bda89d
Merge pull request #81 from pjaclark/dev-2.9.7
JMercerGit Feb 4, 2022
8d9cb0a
Merge pull request #82 from TI-Tokyo/dev-2.9.7
JMercerGit Feb 4, 2022
5ec1bed
Fix CRLF vs LF issue
pjaclark Feb 17, 2022
6e07a72
How to use with docker (#85) (#86)
pjaclark Feb 17, 2022
204905e
Merge branch 'master' of https://github.com/TI-Tokyo/riak-docs-fork
pjaclark Feb 17, 2022
6e54bf3
Make the leveled description render as a list (#88)
meangrape Mar 1, 2022
3b973d0
Change filename to match docs (#91)
pjaclark Mar 11, 2022
5c208fc
Fix command error
pjaclark Apr 25, 2022
5b757d6
Dev 3.0.1 pjac 3 (#105)
pjaclark May 29, 2022
d7b1d8c
Dev 3.0.2 pjac (#106)
pjaclark May 29, 2022
f21266b
Adds KV 3.0.3 (#107)
pjaclark May 29, 2022
12e83a6
Adds KV 3.0.4 (#108)
pjaclark May 29, 2022
84fa235
Dev 3.0.4 pjac (#109)
pjaclark May 29, 2022
68f6bf6
Fixes to 2.9.7
pjaclark May 29, 2022
dfa454b
Fixes to 2.9.8
pjaclark May 29, 2022
58059ac
Fixes to 2.9.9
pjaclark May 29, 2022
bfd7aa9
Fixes to 2.9.10
pjaclark May 29, 2022
84007e8
Remove 'latest' aliases from 2.9.10
pjaclark May 29, 2022
038ec0e
Remove 'latest' aliases from 2.9.10
pjaclark May 29, 2022
0525aa1
Minor 2.9.7 fix
pjaclark May 29, 2022
d648bc4
Minor 2.9.7 fix
pjaclark May 29, 2022
7caf718
Minor 2.9.7 fix
pjaclark May 29, 2022
0aad7df
Fixes to 2.9.10
pjaclark May 29, 2022
f05aded
Fixes to 3.0.1
pjaclark May 29, 2022
8886942
Fixes to 3.0.2
pjaclark May 30, 2022
695139d
Fixes to 3.0.3 and 3.0.4
pjaclark May 30, 2022
0156a31
Fixes the Release dates in release notes
JMercerGit May 30, 2022
1c9a7ca
Add 'latest' redirects
pjaclark May 30, 2022
d7ffa91
Fixed CSS image URLs
pjaclark May 30, 2022
c177c59
Add 'latest' for Riak CS
pjaclark May 30, 2022
637c84f
Removed old 'latest' from Riak TS
pjaclark May 30, 2022
c72b19c
Fixed root latest for Riak CS
pjaclark May 30, 2022
463613b
Add 'latest' for Riak TS
pjaclark May 30, 2022
048365e
Fix intra-product menu on wide screens
pjaclark Jun 1, 2022
e6bc7a5
Better LTS detection by series
pjaclark Jun 1, 2022
9ba3e81
Updates to index.md
JMercerGit Jun 1, 2022
130b136
Merge branch 'dev' of https://github.com/TI-Tokyo/riak-docs-fork into…
JMercerGit Jun 1, 2022
b8b816d
Revert "Merge branch 'dev' of https://github.com/TI-Tokyo/riak-docs-f…
JMercerGit Jun 1, 2022
902d114
More index fixes
JMercerGit Jun 1, 2022
8b2f7e5
Revert "Revert "Merge branch 'dev' of https://github.com/TI-Tokyo/ria…
JMercerGit Jun 1, 2022
bfb0912
Updated index.md in 2.2.x versions for consistency
JMercerGit Jun 1, 2022
5175633
Fixed a broken link on release notes
JMercerGit Jun 1, 2022
074a374
Made GitHub links configurable
pjaclark Jun 1, 2022
3497d1e
Merge branch 'master' into dev
JMercerGit Jun 1, 2022
24098ef
Merge branch 'dev'
JMercerGit Jun 1, 2022
fafef32
Merge branch 'master' into dev
JMercerGit Jun 1, 2022
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
The diff you're trying to view is too large. We only load the first 3000 changed files.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ Gemfile.lock

# Statically generated HTML
public/**
output/**

# Files maintained from the middleman build
archived_docs.basho.com.tar.bz2
Expand Down
18 changes: 12 additions & 6 deletions Gemfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
source "https://rubygems.org"
ruby "2.2.5"
ruby ">2.2.5"

#TOOD: This file is now out of date.
# We need to walk the gems and make sure that,
Expand All @@ -11,16 +11,22 @@ gem "autoprefixer-rails", "~>6.3.6"
gem "sprockets", "~>3.7"
gem "coffee-script", "~>2.4.1"
gem "uglifier", "~>3.0.0"
gem "therubyracer"
gem "mini_racer" # included via the docker image

gem "aws-sdk", "~> 2.4.3"
gem "aws-s3", "~> 0.6.3"
gem "simple-cloudfront-invalidator", "~>1.1.0"
gem "progressbar", "~> 1.8.0"
# deprecated as new files are on files.tiot.jp
#gem "aws-sdk", "~> 2.4.3"
#gem "aws-s3", "~> 0.6.3"
#gem "simple-cloudfront-invalidator", "~>1.1.0"
#gem "progressbar", "~> 1.8.0"

gem "rake", "~>11.2.2"
gem "guard", "~>2.14.0"
gem "guard-rake", "~>1.0.0"

gem "pry", "~>0.10.3"
gem "pry-byebug", "~>3.4.0"

# for the SFTP download metadata generator
gem "net-sftp"
#gem "json"
gem "uri"
279 changes: 150 additions & 129 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,129 +1,150 @@
[basho docs]: http://docs.basho.com/
[task list]: https://github.com/basho/private_basho_docs/issues/11
[middleman]: https://middlemanapp.com/
[rvm]: https://rvm.io/

# Basho's Documentation Generation

This repository contains all the bits and pieces, large and small required to
render and deploy Basho's documentation.

### http://docs.basho.com/

This is a Work In Progress!
Please let us know if you'd like to help out!

## Building The HTML Locally

1. Install [Hugo][hugo] by checking out [Hugo's Installing][installing hugo] page.

1. Clone the repository with:

```
git clone https://github.com/basho/basho_docs.git
cd basho_docs
```

1. Run Hugo with `hugo server` and wait a couple of seconds for the site to
build.

1. Play by visiting <http://localhost:1313>.

>**Heads-up**
>
> When running a local instance of the site, you can't navigate from the splash page (the first page when you navigate to localhost:1313) to the index page of KV, TS, or CS. You will need to manually enter the version in the address bar of your browser. So, for instance, http://localhost:1313/riak/kv/2.2.0/ rather than http://localhost:1313/riak/kv/latest/.

[hugo]: http://gohugo.io/
[installing hugo]: http://gohugo.io/overview/installing/
[homebrew]: http://brew.sh/

### No Really, _Go_ Play

<sub>See what we did there?</sub>

At this point, any changes you make to the markdown files in the `content/`
directory will be automatically detected and rendered live in your local browser.
Change some stuff! Have fun!

If you want to modify the [content templates][hugo content templates] that
define how each pages' HTML is generated, modifying the [Go Templates][hugo go template primer]
in `layouts/_default/` and the [partial templates][hugo partial templates] in
`layouts/partials/` will also be automatically detected and rendered live in your browser.

[hugo content templates]: https://gohugo.io/templates/content/
[hugo go template primer]: https://gohugo.io/templates/go-templates/
[hugo partial templates]: https://gohugo.io/templates/partials/
[hugo shortcodes]: https://gohugo.io/extras/shortcodes/

## Modifying the `.js` and `.css` Files

>**Note:** Generally, unless you're helping us out with a specific task or project that you've discussed with us, you should not be altering the .js or .css files in this repo.

If you want to mess with the scripts and CSS that this site uses, it's not
_quite_ as easy as modifying the HTML.

The scripts and CSS files used to render Hugo content are expected to live in
the `static/` directory. We use a lot of [Coffee Script][coffee] and [Sass][sass]
for our scripting and styling needs, and we convert those files to `.js` and
`.css` as a pre-render step. We put those `.coffee` and `.scss` files into the
`dynamic/` directory.

>**Note:** For files manually generated, place the source of the generation in
a directory parallel to the generated file(s), rooted in `public_src/`. If
possible, include a script to generate the output. For example, the uml
deployment diagram images in `static/images/redis/` were generated by the .uml
files in `public_src/images/redis/` via the script `gen_diagrams.sh` w/ the list
of source files for generation explicitly listed in `diagrams.lst`.

To convert the Coffee and Sass into `.js` and `.css` files, you'll need to:

1. **Install [RVM][rvm]** or equivalent.
You might need to restart your shell to get the `rvm` command to be recognized.
1. **Install Ruby.**
Use the following command: ``rvm install `cat .ruby-version` `` or manually
install the current version specified in our .ruby-version and Gemfile files.
1. **Install [Bundler]** with `gem install bundler`.
1. **Install the rest of the dependencies** with `bundle install`.
1. **Use [Rake] to do everything else**, like rebuild a copy of everything that
should live in `static/`. You can use `rake build` for that. For a more
debug-friendly version of everything, run `rake build:debug`.

In case you want any changes you make to `.coffee` and `.scss` files to be
automatically detected and rendered live in your browser, you can run
`rake watch`.

For a list of some of the useful commands, just run `rake`.

[coffee]: coffeescript.org
[sass]: http://sass-lang.com/
[rvm]: https://rvm.io/
[bundler]: http://bundler.io/
[rake]: http://docs.seattlerb.org/rake/

## Would You Like to Contribute?

Awesome! <sub>(We're assuming you said yes. Because you're reading this. And you're _awesome_.)</sub>

This repository operates just like any other open source repo, and only thrives
through the efforts of everyone who contributes to it. If you see something wrong,
something that could be improved, or something that's simply missing please
don't hesitate to:

* **Open Up a [New Issue]**
and let us know what you think should change.

* **[Find the File] You Want to Change**
and use GitHub's online editor to open a Pull Request right here.

* **[Fork] This Repository**
so you can make (and see) your changes locally.

Don't forget to check out our [Contributing Guidelines][contributing] so you
can read up on all our weird little quirks, like how we
[don't want you to use `<h1>` headers][contributing_headers].

[new issue]: https://github.com/basho/basho_docs/issues/new
[find the file]: https://github.com/basho/basho_docs/find/master
[fork]: https://github.com/basho/basho_docs/#fork-destination-box
[contributing]: CONTRIBUTING.md
[contributing_headers]: CONTRIBUTING.md
[basho docs]: http://docs.basho.com/
[task list]: https://github.com/basho/private_basho_docs/issues/11
[middleman]: https://middlemanapp.com/
[rvm]: https://rvm.io/

# Riak's Documentation Generation

This repository contains all the bits and pieces, large and small required to
render and deploy Basho's documentation.

### https://docs.riak.com/

This is updated for each new version of Riak once reviewed.

This is a Work In Progress!
Please let us know if you'd like to help out!

### https://www.tiot.jp/riak-docs/

This is updated for each new version of Riak as soon as written, and gets regular small updates.

### https://www.tiot.jp/riak-docs-beta/

This is updated for each new version of Riak as each doc section is updated, and often will be a WIP.

## Building The HTML Locally

We moved to a Docker image to build the docs to avoid the issues with getting the various versions of things to work together.

1. Install [Docker](https://docs.docker.com/engine/install/)

1. Clone the repository with:

```
git clone https://github.com/ti-tokyo/riak-docs-fork.git
cd riak-docs-fork
```

Or:

```
git clone https://github.com/basho/basho_docs.git
cd basho_docs
```

1. Build the Docker image:

```
./docker/docker-build-image.titokyo.sh
```

1. Run the docker image as a local server to test it all works:

```
docker-compose -f ./docker/docker-compose.localhost-preview.yaml up riakdocs
```

1. Play by visiting <http://localhost:1314/riak-docs/>.


### No Really, _Go_ Play

<sub>See what we did there?</sub>

At this point, any changes you make to the markdown files in the `content/`
directory will be automatically detected and rendered live in your local browser.
Change some stuff! Have fun!

If you want to modify the [content templates][hugo content templates] that
define how each pages' HTML is generated, modifying the [Go Templates][hugo go template primer]
in `layouts/_default/` and the [partial templates][hugo partial templates] in
`layouts/partials/` will also be automatically detected and rendered live in your browser.

[hugo content templates]: https://gohugo.io/templates/content/
[hugo go template primer]: https://gohugo.io/templates/go-templates/
[hugo partial templates]: https://gohugo.io/templates/partials/
[hugo shortcodes]: https://gohugo.io/extras/shortcodes/

## Modifying the `.js` and `.css` Files

>**Note:** Generally, unless you're helping us out with a specific task or project that you've discussed with us, you should not be altering the .js or .css files in this repo.

If you want to mess with the scripts and CSS that this site uses, it's not
_quite_ as easy as modifying the HTML.

The scripts and CSS files used to render Hugo content are expected to live in
the `static/` directory. We use a lot of [Coffee Script][coffee] and [Sass][sass]
for our scripting and styling needs, and we convert those files to `.js` and
`.css` as a pre-render step. We put those `.coffee` and `.scss` files into the
`dynamic/` directory.

>**Note:** For files manually generated, place the source of the generation in
a directory parallel to the generated file(s), rooted in `public_src/`. If
possible, include a script to generate the output. For example, the uml
deployment diagram images in `static/images/redis/` were generated by the .uml
files in `public_src/images/redis/` via the script `gen_diagrams.sh` w/ the list
of source files for generation explicitly listed in `diagrams.lst`.

To convert the Coffee and Sass into `.js` and `.css` files, you'll need to:

1. **Install [RVM][rvm]** or equivalent.
You might need to restart your shell to get the `rvm` command to be recognized.
1. **Install Ruby.**
Use the following command: ``rvm install `cat .ruby-version` `` or manually
install the current version specified in our .ruby-version and Gemfile files.
1. **Install [Bundler]** with `gem install bundler`.
1. **Install the rest of the dependencies** with `bundle install`.
1. **Use [Rake] to do everything else**, like rebuild a copy of everything that
should live in `static/`. You can use `rake build` for that. For a more
debug-friendly version of everything, run `rake build:debug`.

In case you want any changes you make to `.coffee` and `.scss` files to be
automatically detected and rendered live in your browser, you can run
`rake watch`.

For a list of some of the useful commands, just run `rake`.

[coffee]: coffeescript.org
[sass]: http://sass-lang.com/
[rvm]: https://rvm.io/
[bundler]: http://bundler.io/
[rake]: http://docs.seattlerb.org/rake/

## Would You Like to Contribute?

Awesome! <sub>(We're assuming you said yes. Because you're reading this. And you're _awesome_.)</sub>

This repository operates just like any other open source repo, and only thrives
through the efforts of everyone who contributes to it. If you see something wrong,
something that could be improved, or something that's simply missing please
don't hesitate to:

* **Open Up a [New Issue]**
and let us know what you think should change.

* **[Find the File] You Want to Change**
and use GitHub's online editor to open a Pull Request right here.

* **[Fork] This Repository**
so you can make (and see) your changes locally.

Don't forget to check out our [Contributing Guidelines][contributing] so you
can read up on all our weird little quirks, like how we
[don't want you to use `<h1>` headers][contributing_headers].

[new issue]: https://github.com/basho/basho_docs/issues/new
[find the file]: https://github.com/basho/basho_docs/find/master
[fork]: https://github.com/basho/basho_docs/#fork-destination-box
[contributing]: CONTRIBUTING.md
[contributing_headers]: CONTRIBUTING.md
23 changes: 12 additions & 11 deletions Rakefile
Original file line number Diff line number Diff line change
Expand Up @@ -19,15 +19,16 @@
require_relative 'rake_libs/compile_js'
require_relative 'rake_libs/compile_css'
require_relative 'rake_libs/s3_deploy'
require_relative 'rake_libs/downloads_metadata_generator'
require_relative 'rake_libs/downloads_metadata_generator_sftp'
#require_relative 'rake_libs/downloads_metadata_generator'
require_relative 'rake_libs/projects_metadata_generator'

$css_source = "./dynamic/css"
$css_dest = "./static/css"
$js_source = "./dynamic/js"
$js_dest = "./static/js"
$cache_dir = "./dynamic/.cache"
$hugo_dest = "./public" # Should always be set to `publishdir` from config.yml
$hugo_dest = "./output" # Should always be set to `publishdir` from config.yml

### Rake directory definitions
directory "#{$js_dest}"
Expand All @@ -48,7 +49,6 @@ if Gem::Version.new(min_ruby_version) > Gem::Version.new(RUBY_VERSION)
"#{min_ruby_version}.\n")
end


# Check if Hugo is installed, and confirm it's up to date.
if (`which hugo`.empty?)
Kernel.abort("ERROR: No version of Hugo is installed.\n"\
Expand All @@ -73,7 +73,7 @@ end
# Default
Rake::TaskManager.record_task_metadata = true
task :default do
puts("Basho Documentation Generate System Usage:")
puts("Riak Documentation Generate System Usage:")
puts("")
Rake::application.options.show_tasks = :tasks # this solves sidewaysmilk problem
Rake::application.options.show_task_pattern = //
Expand Down Expand Up @@ -119,22 +119,23 @@ end
########
# Build
desc "Compile compressed JS and compressed CSS"
task :build => ['clean', 'build:js', 'build:css']
task :build => ['clean', 'build:css', 'build:js']
namespace :build do
task :js => ["#{$js_dest}", 'clean:js'] do compile_js(debug: false); end
task :css => ["#{$css_dest}", 'clean:css'] do compile_css(debug: false); end
task :js => ["#{$js_dest}", 'clean:js'] do compile_js(debug: false); end

################
# Build : Debug
desc "Compile human-readable JS and compile human-readable CSS"
task :debug => ["#{$js_dest}", "#{$css_dest}",
'build:debug:js', 'build:debug:css']
task :debug => ["#{$css_dest}", "#{$js_dest}",
'build:debug:css', 'build:debug:js']
namespace :debug do
desc "Compile human-readable CSS"
task :css => ["#{$css_dest}"] do compile_css(debug: true); end

desc "Compile human-readable JS"
task :js => ["#{$js_dest}"] do compile_js(debug: true); end

desc "Compile human-readable CSS"
task :css => ["#{$css_dest}"] do compile_css(debug: true); end
end
end

Expand Down Expand Up @@ -200,7 +201,7 @@ namespace :metadata do
task :all => ['metadata:generate_downloads', 'metadata:generate_projects']

desc "Generate package URI information"
task :generate_downloads do generate_downloads_metadata(); end
task :generate_downloads do generate_downloads_metadata_sftp(); end

desc "Generate JavaScript-readable project descriptions"
task :generate_projects do generate_projects_metadata(); end
Expand Down
Loading