Skip to content

Commit

Permalink
Split code from content (#2937)
Browse files Browse the repository at this point in the history
* remove code and add new config files and assets

* Add _documentation/index.md page

* Add GitHub Package registry auth token

* Update GH actions.

* Remove package.json.

We are bundling all the assets in the gem, so this is no longer needed.

* Update app.json.

Removes unnecessary configs, and algolia indexes refresh for now.

* Update Procfile so it uses nexmo-developer gem.

* Update app.json.

* add api and tools landing pages to custom

* add sample env variables to env.example for gem

* Remove Rakefile, tasks now live in the gem.

* moved all landing pages to custom

* remove unneeded config/ files

* Bump nexmo-developer.

* cleaned up readme a bit

* fix getting started rendering

* add community and extend to top nav

* updated footer for ndp

* Bump nexmo-developer.

* Fix `oas_url`

* add team page

* Add package.json and markdown-spellchecker.

* Add npm to CI workflow.

* Remove redundant step.

* Fix typo.

* Bump nexmo-developer.

* up version of gem to 0.0.63

* bump to 0.0.66

* add stitch files

* all sdk stitch paths

* covert stitch links to symlinks

* add redirect HTML files

* upgrade gem to 0.0.68

* increment to 0.0.69

* Add missing landing pages.

* Bump nexmo-developer.

* Lock oas_parser to 0.25.1.

Version 0.25.2 raises when parsing reports OAS.

* bumo markdown-renderer.

* Bump nexmo-developer

* Bump nexmo-markdown-renderer.

* bump nexmo-developer.

* bump nexmo-developer.

* Bump nexmo-markdown-renderer.

* bump nexmo-developer.

* Run station's rake tasks in the CI.

* bump nexmo-developer.

* Trigger Github's actions.

* Fix GH action.

* add normalized words config file

* remove normalized_words config

* Bump nexmo-developer.

* Remove vonage-business-cloud/* from config/products.yml, they now live
in VDP.

* Fix checkspelling task and update OAS_PATH

* bump nexmo-developer.

* Remove unneeded file.

* Don't use relative paths for env variables.

* Bump nexmo-developer

* Bump nexmo-developer.

* Specify nexmo-oas-renderer version.

* Fix sign-up url

* Fix sign-up button

* add jwt landing page

* Add base_url to config.

* Bump nexmo-developer

Co-authored-by: benhayehudi <[email protected]>
Co-authored-by: Michael Heap <[email protected]>
  • Loading branch information
3 people authored Jul 9, 2020
1 parent eaf731a commit 4de8f66
Show file tree
Hide file tree
Showing 745 changed files with 1,283 additions and 81,807 deletions.
8 changes: 8 additions & 0 deletions .env.example
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,14 @@
# USERNAME=user
# PASSWORD=password

RAILS_SERVE_STATIC_FILES=true

DISABLE_SSL=1

RACK_ENV=production

RAILS_ENV=production

ALLOW_ROBOTS=false

SEGMENT_WRITE_KEY=abc123
Expand Down
22 changes: 9 additions & 13 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -57,28 +57,24 @@ jobs:
- name: Bundle Install
env:
POSTGRES_USERNAME: postgres
BUNDLE_RUBYGEMS__PKG__GITHUB__COM: "NexmoDev:${{ secrets.GH_ADMIN_TOKEN }}"
run: |
gem update --system 3.0.3 -N
gem install --no-document bundler
bundle config path vendor/bundle
bundle install --jobs 4 --retry 3
- name: Run Tests
- name: Check spelling
env:
POSTGRES_USERNAME: postgres
DOCS_BASE_PATH: "."
OAS_PATH: "_open_api/api_specs/definitions"
FORCE_COLOR: true
run: |
bundle exec rails db:create
bundle exec rails db:migrate
bundle exec rake spec
bundle exec rubocop
bundle exec rake ci:verify_pages
bundle exec rake ci:verify_navigation
bundle exec rake ci:verify_oas_reference
bundle exec rake ci:verify_error_urls_resolve
bundle exec rake ci:check_word_blocklist
bundle exec rake ci:check_ruby_version
RAILS_ENV=test bundle exec rake webpacker:compile
./node_modules/.bin/mdspell -r -n -a --en-us '_documentation/en/**/*.md' '_partials/*.md' '_partials/**/*.md' '_modals/**/*.md' '_tutorials/**/*.md'
yarn test
- name: Run rake tasks
env:
POSTGRES_USERNAME: postgres
OAS_PATH: "_open_api/api_specs/definitions"
FORCE_COLOR: true
run: |
RAILS_ENV=test bundle exec nexmo-developer --docs=. --rake-ci
1 change: 0 additions & 1 deletion .nvmrc

This file was deleted.

2 changes: 0 additions & 2 deletions .rspec

This file was deleted.

160 changes: 0 additions & 160 deletions .rubocop.yml

This file was deleted.

Loading

0 comments on commit 4de8f66

Please sign in to comment.