Current section

Files

Jump to
ex_doc lib ex_doc formatter html templates head_template.eex
Raw

lib/ex_doc/formatter/html/templates/head_template.eex

<!DOCTYPE html>
<html lang="<%= config.language %>">
<head>
<meta charset="utf-8">
<meta http-equiv="x-ua-compatible" content="ie=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="generator" content="ExDoc v<%= ExDoc.version %>">
<title><%= page.title %><%= config.project %> v<%= config.version %></title>
<link rel="stylesheet" href="<%= asset_rev config.output, "dist/html*.css" %>" />
<%= if config.canonical do %>
<link rel="canonical" href="<%= config.canonical %>" />
<% end %>
<script src="<%= asset_rev config.output, "dist/sidebar_items*.js" %>"></script>
<%# Extra content needed by the current markdown processor (e.g. custom CSS) %>
<%= ExDoc.Markdown.get_markdown_processor().before_closing_head_tag(:html) %>
<%# Extra content specified by the user (e.g. custom CSS) %>
<%= config.before_closing_head_tag.(:html) %>
</head>
<body data-type="<%= sidebar_type(page.type) %>">
<script>try { if(localStorage.getItem('night-mode')) document.body.className += ' night-mode'; } catch (e) { }</script>