Skip to content

Commit

Permalink
Merge pull request #185 from OpenDSA/docs
Browse files Browse the repository at this point in the history
OpenDSA Official Docs and HECVAT file added
  • Loading branch information
kwasimbnyarko authored Nov 8, 2024
2 parents f996c33 + 6685347 commit 9719c35
Show file tree
Hide file tree
Showing 4 changed files with 21 additions and 0 deletions.
Binary file added app/assets/docs/HECVAT3 _OpenDSA_20220830.xlsx
Binary file not shown.
6 changes: 6 additions & 0 deletions app/controllers/documentation_controller.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
class DocumentationController < ApplicationController
def hecvat_download
file_path = Rails.root.join('app', 'assets', 'docs', 'HECVAT3 _OpenDSA_20220830.xlsx')
send_file file_path, type: 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet', disposition: 'attachment', filename: 'HECVAT3.xlsx'
end
end
14 changes: 14 additions & 0 deletions app/views/layouts/_navbar.html.haml
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,20 @@
%li
%a{href: home_guide_path}
Instructor Guides
%li.dropdown
%a.dropdown-toggle{ href: organizations_path,
data: { toggle: 'dropdown' }, value: 'System Documentation' }
System Documentation
%ul.dropdown-menu
%li
.yamm-content
%ul.list-unstyled
%li
%a{href:"https://opendsa.readthedocs.io/"}
OpenDSA Official documentation
%li
-# %strong HECVAT3
= link_to 'HECVAT3', hecvat_download_path

%ul.nav.navbar-nav.navbar-right.nav-top
- if user_signed_in?
Expand Down
1 change: 1 addition & 0 deletions config/routes.rb
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,7 @@
post '/textbooks' => 'textbooks#create', as: :create_textbooks
post '/textbooks/compile/:course_offering_id' => 'textbooks#compile', as: :compile_textbooks

get '/documentation/hecvat' => 'documentation#hecvat_download', as: :hecvat_download

# All of the routes anchored at /gym
scope :gym do
Expand Down

0 comments on commit 9719c35

Please sign in to comment.