Websites/app/views/oceanic_ws/docs/index.html.erb

43 lines
1.2 KiB
Plaintext
Raw Normal View History

2024-05-03 03:04:43 +00:00
<% content_for(:html_head) do %>
<% description = "A NodeJS library for interfacing with Discord." %>
<%= render "head_images",
manifest_path: oceanic_ws_home_manifest_path(:json)
%>
<%= render "twitter_card",
card_creator: "@Donovan_DMC",
card_site: "@OceanicJS",
card_description: description,
card_image: image_path("#{assets_path}/icon.png"),
card_image_alt: "Oceanic Icon"
%>
<%= render "dublin_core",
dc_creator: "Donovan_DMC",
dc_description: description
%>
<%= render "open_graph",
og_description: description,
og_image: image_path("#{assets_path}/icon.png"),
og_image_type: "image/png",
og_image_width: 363,
og_image_height: 363,
og_image_alt: "Oceanic Icon"
%>
<% end %>
<% @versions[:branches].each_slice(4) do |row| %>
<h2>
<% row.each do |version| %>
<%= link_to version, "/#{version}" %>&emsp;
<% end %>
</h2>
<% end %>
<% @versions[:tags].each_slice(4) do |row| %>
<h2>
<% row.each do |version| %>
<%= link_to version, "/#{version}" %>&emsp;
<% end %>
</h2>
<% end %>