Skip to content

Commit

Permalink
Add html5 doctype to static renderer (#486)
Browse files Browse the repository at this point in the history
- Add `<!DOCTYPE html>` to the top of static rendered pages
  • Loading branch information
AndrewBarba authored May 24, 2022
1 parent 2e7f561 commit 3081f55
Show file tree
Hide file tree
Showing 16 changed files with 23 additions and 0 deletions.
1 change: 1 addition & 0 deletions Sources/TokamakStaticHTML/StaticHTMLRenderer.swift
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,7 @@ public final class StaticHTMLRenderer: Renderer {

public func render(shouldSortAttributes: Bool = false) -> String {
"""
<!DOCTYPE html>
<html>
<head>
<title>\(title)</title>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
<!DOCTYPE html>
<html>
<head>
<title>Tokamak 2</title>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
<!DOCTYPE html>
<html>
<head>
<title>Tokamak 2</title>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
<!DOCTYPE html>
<html>
<head>
<title></title>

<style>
._tokamak-stack {
display: grid;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
<!DOCTYPE html>
<html>
<head>
<title></title>

<style>
._tokamak-stack {
display: grid;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
<!DOCTYPE html>
<html>
<head>
<title></title>

<style>
._tokamak-stack {
display: grid;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
<!DOCTYPE html>
<html>
<head>
<title></title>

<style>
._tokamak-stack {
display: grid;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
<!DOCTYPE html>
<html>
<head>
<title></title>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
<!DOCTYPE html>
<html>
<head>
<title></title>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
<!DOCTYPE html>
<html>
<head>
<title></title>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
<!DOCTYPE html>
<html>
<head>
<title></title>

<style>
._tokamak-stack {
display: grid;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
<!DOCTYPE html>
<html>
<head>
<title></title>

<style>
._tokamak-stack {
display: grid;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
<!DOCTYPE html>
<html>
<head>
<title></title>

<style>
._tokamak-stack {
display: grid;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
<!DOCTYPE html>
<html>
<head>
<title>Tokamak 3</title>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
<!DOCTYPE html>
<html>
<head>
<title>Tokamak</title>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
<!DOCTYPE html>
<html>
<head>
<title>Tokamak</title>
Expand Down

0 comments on commit 3081f55

Please sign in to comment.