Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 5 additions & 3 deletions _includes/footer.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,10 @@
<script async src="https://www.googletagmanager.com/gtag/js?id=G-0SJWMV04JW"></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());
function gtag() {
dataLayer.push(arguments);
}
gtag("js", new Date());

gtag('config', 'G-0SJWMV04JW');
gtag("config", "G-0SJWMV04JW");
</script>
27 changes: 12 additions & 15 deletions _includes/head.html
Original file line number Diff line number Diff line change
@@ -1,25 +1,22 @@
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8">
<meta http-equiv="content-type" content="text/html; charset=utf-8" />

<!-- Enable responsiveness on mobile devices-->
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1">
<meta name="description" content="{{ site.title }}">
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1" />
<meta name="description" content="{{ site.title }}" />

<link rel="apple-touch-icon" sizes="180x180" href="{{ site.baseurl }}/apple-touch-icon.png">
<link rel="icon" type="image/png" sizes="32x32" href="{{ site.baseurl }}/favicon-32x32.png">
<link rel="icon" type="image/png" sizes="16x16" href="{{ site.baseurl }}/favicon-16x16.png">
<link rel="shortcut icon" href="{{ site.baseurl }}/favicon.ico">
<link rel="apple-touch-icon" sizes="180x180" href="{{ site.baseurl }}/apple-touch-icon.png" />
<link rel="icon" type="image/png" sizes="32x32" href="{{ site.baseurl }}/favicon-32x32.png" />
<link rel="icon" type="image/png" sizes="16x16" href="{{ site.baseurl }}/favicon-16x16.png" />
<link rel="shortcut icon" href="{{ site.baseurl }}/favicon.ico" />

<title>
{% if page.title == "Home" %}
{{ site.title }} &middot; {{ site.tagline }}
{% else %}
{{ page.title }} &middot; {{ site.title }}
{% endif %}
{% if page.title == "Home" %} {{ site.title }} &middot; {{ site.tagline }} {% else %} {{ page.title }} &middot; {{
site.title }} {% endif %}
</title>

<!-- CSS -->
<link rel="stylesheet" href="{{ site.baseurl }}/css/simple.min.css">
<link rel="stylesheet" href="{{ site.baseurl }}/css/highlight.css">
<link rel="stylesheet" href="{{ site.baseurl }}/css/custom.css?bust={{ site.time | date: '%s' }}">
<link rel="stylesheet" href="{{ site.baseurl }}/css/simple.min.css" />
<link rel="stylesheet" href="{{ site.baseurl }}/css/highlight.css" />
<link rel="stylesheet" href="{{ site.baseurl }}/css/custom.css?bust={{ site.time | date: '%s' }}" />
</head>
4 changes: 2 additions & 2 deletions _includes/languages.html
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<select id="languages">
{% for language in site.data.languages %}
<option value="{{language.id}}">{{language.name}}</option>
<option value="{{language.id}}">{{language.name}}</option>
{% endfor %}
</select>
</select>
3 changes: 1 addition & 2 deletions _layouts/default.html
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
<!DOCTYPE html>
<!doctype html>
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en-us">

{% include head.html %}

<body>
Expand Down
4 changes: 1 addition & 3 deletions _layouts/javascript.html
Original file line number Diff line number Diff line change
@@ -1,10 +1,8 @@
<!DOCTYPE html>
<!doctype html>
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en-us">

{% include head.html %}

<body>

{% include javascript_header.html %}

<main>
Expand Down
4 changes: 1 addition & 3 deletions _layouts/ruby.html
Original file line number Diff line number Diff line change
@@ -1,10 +1,8 @@
<!DOCTYPE html>
<!doctype html>
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en-us">

{% include head.html %}

<body>

{% include ruby_header.html %}

<main>
Expand Down
23 changes: 14 additions & 9 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,10 @@
title: Write snippet code to rewrite your source code
---

<p>Different than other linter tools (e.g. rubocop) or codemod tools (e.g. jscodeshift), synvert allows you to write snippet code to rewrite your source code.</p>
<p>
Different than other linter tools (e.g. rubocop) or codemod tools (e.g. jscodeshift), synvert allows you to write
snippet code to rewrite your source code.
</p>

<ul>
<li>It is a complete solution to automatically rewrite (refactor) your source code.</li>
Expand All @@ -16,7 +19,9 @@
<div class="downloads">
<a id="mac-download" href="#"><button>Download Mac App</button></a>
<a id="win-download" href="#"><button>Download Windows App</button></a>
<a href="https://marketplace.visualstudio.com/items?itemName=xinminlabs.synvert" target="_blank"><button>Install VSCode Extension</button></a>
<a href="https://marketplace.visualstudio.com/items?itemName=xinminlabs.synvert" target="_blank"
><button>Install VSCode Extension</button></a
>
<a href="/ruby/docs/"><button>Install Ruby CLI</button></a>
<a href="/javascript/docs/"><button>Install Javascript CLI</button></a>
</div>
Expand All @@ -26,9 +31,9 @@
<div class="text">
<h4>Run snippet code</h4>
<p>
Synvert rewrites source code based on snippet code.<br/>
It provides many powerful APIs to write snippet code,<br/>
to find AST node, to check node <br/>
Synvert rewrites source code based on snippet code.<br />
It provides many powerful APIs to write snippet code,<br />
to find AST node, to check node <br />
and to insert / delete / replace source code.
</p>
</div>
Expand All @@ -39,8 +44,8 @@ <h4>Run snippet code</h4>
<div class="text">
<h4>Automatically generate snippet code</h4>
<p>
Synvert allows you to fill in some input code and expected output code,<br/>
then it can generate the snippet code automatically for you,<br/>
Synvert allows you to fill in some input code and expected output code,<br />
then it can generate the snippet code automatically for you,<br />
usually you can use the generated code to rewrite your source code.
</p>
</div>
Expand All @@ -49,8 +54,8 @@ <h4>Automatically generate snippet code</h4>
<div class="text">
<h4>Show diff view</h4>
<p>
Synvert GUI can show the diff view before rewriting,<br/>
so you can review the changes one by one,<br/>
Synvert GUI can show the diff view before rewriting,<br />
so you can review the changes one by one,<br />
then selectivly replace them.
</p>
</div>
Expand Down