Skip to content

Commit ee2bb85

Browse files
committed
chore: move all .now.sh references to .vercel.app
1 parent 0c7cc9d commit ee2bb85

8 files changed

Lines changed: 20 additions & 23 deletions

File tree

CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
7676
## [1.2.0](https://github.com/vincentdoerig/latex-css/compare/v1.1.0...v1.2.0) 2020-08-11
7777

7878
### Added
79-
- Sidenotes. See https://latex.now.sh/#sidenotes for more information
79+
- Sidenotes. See https://latex.vercel.app/#sidenotes for more information
8080
- `scroll-wrapper` class
8181
- Add support for the following languages
8282
- Simplified and Traditional Chinese

README.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# [LaTeX.CSS](https://latex.now.sh/)
1+
# [LaTeX.CSS](https://latex.vercel.app/)
22

33
[![License: MIT](https://img.shields.io/badge/License-MIT-blue.svg)](https://opensource.org/licenses/MIT)
44
[![latex.css on NPM](https://img.shields.io/npm/v/latex.css.svg?color=green&label=latex.css)](https://www.npmjs.com/package/latex.css)
@@ -12,7 +12,7 @@
1212
Add the following code in the head of your project.
1313

1414
```html
15-
<link rel="stylesheet" href="https://latex.now.sh/style.min.css" />
15+
<link rel="stylesheet" href="https://latex.vercel.app/style.min.css" />
1616
```
1717

1818
or use a CDN like Unpkg:
@@ -35,14 +35,14 @@ Yarn:
3535
yarn add latex.css
3636
```
3737

38-
Add any optional classnames to elements with special styles (author subtitle, abstract, lemmas, theorems, etc.). A list of supported class-based elements can be found [here](https://latex.now.sh/#class-based-elements).
38+
Add any optional classnames to elements with special styles (author subtitle, abstract, lemmas, theorems, etc.). A list of supported class-based elements can be found [here](https://latex.vercel.app/#class-based-elements).
3939

4040
## Languages
4141

4242
The labels of theorems, definitions, lemmas and proofs can be changed to other [supported languages](lang) by including the following snippet in addition to the main CSS file.
4343

4444
```html
45-
<link rel="stylesheet" href="https://latex.now.sh/lang/es.css" />
45+
<link rel="stylesheet" href="https://latex.vercel.app/lang/es.css" />
4646
```
4747

4848
and changing the html `lang` attribute:
@@ -51,7 +51,7 @@ and changing the html `lang` attribute:
5151
<html lang="es">
5252
```
5353

54-
Have a look at the [language support page](https://latex.now.sh/languages) for more info and a demo of the different languages.
54+
Have a look at the [language support page](https://latex.vercel.app/languages) for more info and a demo of the different languages.
5555

5656
## Contributing
5757

@@ -63,7 +63,7 @@ This project is based on David Zollikofer's project [latexCSS](https://github.co
6363

6464
Most of the CSS reset is based on Andy Bell's [Modern CSS Reset](https://hankchizljaw.com/wrote/a-modern-css-reset/).
6565

66-
The sample [HTML5 markup test page](https://latex.now.sh/elements) is based on [html5-test-page](https://github.com/cbracco/html5-test-page) by @cbracco.
66+
The sample [HTML5 markup test page](https://latex.vercel.app/elements) is based on [html5-test-page](https://github.com/cbracco/html5-test-page) by @cbracco.
6767

6868
The idea of sidenotes was taken and adpated from [Tufte CSS](https://edwardtufte.github.io/tufte-css/).
6969

elements.html

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -512,7 +512,6 @@ <h1>Form elements</h1>
512512
</main>
513513
</div>
514514

515-
<script async defer data-domain="latex.now.sh" src="https://plausible.io/js/plausible.js"></script>
516515
</body>
517516

518517
</html>

index.html

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
content="A minimal, almost class-less CSS library to write modern websites that look like LaTeX documents." />
1212
<meta name="keywords" content="latex.css,css library,class-less css,latex css" />
1313
<meta property="og:title" content="LaTeX.css" />
14-
<meta property="og:url" content="https://latex.now.sh" />
14+
<meta property="og:url" content="https://latex.vercel.app" />
1515
<meta property="og:description"
1616
content="A minimal, almost class-less CSS library to write modern websites that look like LaTeX documents." />
1717
<meta property="og:type" content="website" />
@@ -37,7 +37,7 @@ <h2>Abstract</h2>
3737
<span class="latex">L<span>a</span>T<span>e</span>X</span>
3838
document. Write semantic HTML, add
3939
<code class="language-html">&lt;link rel="stylesheet"
40-
href="https://latex.now.sh/style.css"&gt;</code>
40+
href="https://latex.vercel.app/style.css"&gt;</code>
4141
to the <code class="language-html">&lt;head&gt;</code> of your project and you are good to go.
4242
The source code can be found on GitHub at
4343
<a href="https://github.com/vincentdoerig/latex-css">https://github.com/vincentdoerig/latex-css</a>.
@@ -100,7 +100,7 @@ <h2 id="getting-started">Getting Started</h2>
100100
<li>
101101
Add
102102
<code class="language-html">&lt;link rel="stylesheet"
103-
href="https://latex.now.sh/style.css"&gt;</code>
103+
href="https://latex.vercel.app/style.css"&gt;</code>
104104
to the <code class="language-html">&lt;head&gt;</code> of your website or install the
105105
package using <code>npm install latex.css</code>.
106106
</li>
@@ -124,7 +124,7 @@ <h2 id="getting-started">Getting Started</h2>
124124
(optional) If you need syntax highlighting, add
125125
the following script to include
126126
<a href="https://prismjs.com/">Prism</a> and the Prism LaTeX stylesheet (or use any other):
127-
<pre><code class="language-html">&lt;link rel="stylesheet" href="https://latex.now.sh/prism/prism.css"&gt;
127+
<pre><code class="language-html">&lt;link rel="stylesheet" href="https://latex.vercel.app/prism/prism.css"&gt;
128128

129129
&lt;script src="https://cdn.jsdelivr.net/npm/prismjs/prism.min.js"&gt;&lt;/script&gt;</code></pre>
130130
</li>
@@ -214,7 +214,7 @@ <h4 id="table-borders">Custom Table Borders</h4>
214214
<p>
215215
To add custom borders to the table, you should use the class
216216
<code class="language-html">borders-custom</code> with <code>&lt;table&gt;</code>
217-
tag, to begin with a table without any border. The classes
217+
tag, to begin with a table without any border. The classes
218218
<code>border-&lt;position&gt;-thin</code> and <code>border-&lt;position&gt;-thick</code>,
219219
are available, where <code>&lt;position&gt;</code> can take one of the values:
220220
<code>top</code>, <code>right</code>, <code>bottom</code>, <code>left</code>.
@@ -255,7 +255,7 @@ <h2 id="language-support">Language Support</h2>
255255
by including the following snippet, linking to the desired language in
256256
addition to the main CSS file.
257257
</p>
258-
<pre><code class="language-html">&lt;link rel="stylesheet" href="https://latex.now.sh/lang/es.css" /&gt;
258+
<pre><code class="language-html">&lt;link rel="stylesheet" href="https://latex.vercel.app/lang/es.css" /&gt;
259259
...
260260
&lt;html lang="es"&gt;</code></pre>
261261
<p>
@@ -300,7 +300,7 @@ <h2 id="sidenotes">Sidenotes</h2>
300300
<!-- <blockquote>You could also have sidenotes inside blockquotes just like this one <label for="sn-quote"
301301
class="sidenote-toggle">🔖</label><input type="checkbox" id="sn-quote" class="sidenote-toggle" /><span
302302
class="sidenote">Hello there!</span>.</blockquote> -->
303-
303+
304304
<h2 id="dark-mode">Dark Mode</h2>
305305
<p>There is built-in support for dark mode. By default, the document is in light mode. To enable dark mode, add
306306
the
@@ -620,7 +620,7 @@ <h3 id="syntax-highlighting">Syntax Highlighting</h3>
620620
<p>If you need syntax highlighting for code, LaTeX.css provides a <a href="https://prismjs.com/">PrismJS</a> theme
621621
that immitates the <a href="https://github.com/gpoore/minted">minted</a> package for LaTeX. Add the following
622622
stylesheet and script:</p>
623-
<pre><code class="language-html">&lt;link rel="stylesheet" href="https://latex.now.sh/prism/prism.css"&gt;
623+
<pre><code class="language-html">&lt;link rel="stylesheet" href="https://latex.vercel.app/prism/prism.css"&gt;
624624

625625
&lt;script src="https://cdn.jsdelivr.net/npm/prismjs/prism.min.js"&gt;&lt;/script&gt;</code></pre>
626626
<p>And use it like this:</p>
@@ -670,7 +670,6 @@ <h3 id="syntax-highlighting">Syntax Highlighting</h3>
670670
<script id="MathJax-script" async src="https://cdn.jsdelivr.net/npm/mathjax@3/es5/tex-mml-chtml.js"></script>
671671
<script async src="prism/prism.js"></script>
672672

673-
<script async defer data-domain="latex.now.sh" src="https://plausible.io/js/plausible.js"></script>
674673
</body>
675674

676675
</html>

languages.html

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ <h5>Abstract</h5>
2323
to change it to a
2424
<a href="https://github.com/vincentdoerig/latex-css/tree/master/lang">supported language</a>,
2525
by setting the <code>lang</code> attribute to the desired language code
26-
and importing the corresponding language file (<code>&lt;link rel="stylesheet" href="https://latex.now.sh/lang/[lang].css"
26+
and importing the corresponding language file (<code>&lt;link rel="stylesheet" href="https://latex.vercel.app/lang/[lang].css"
2727
/&gt;</code>) in addition to the main stylesheet.
2828
</p>
2929
</div>
@@ -84,7 +84,6 @@ <h5>Abstract</h5>
8484
});
8585
</script>
8686

87-
<script async defer data-domain="latex.now.sh" src="https://plausible.io/js/plausible.js"></script>
8887
</body>
8988

9089
</html>

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
"bugs": {
3030
"url": "https://github.com/vincentdoerig/latex-css/issues"
3131
},
32-
"homepage": "https://latex.now.sh",
32+
"homepage": "https://latex.vercel.app",
3333
"devDependencies": {
3434
"vite": "^4.4.9"
3535
}

prism/prism.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*!
2-
* LaTeX prism.css (https://latex.now.sh/#syntax-highlighting)
2+
* LaTeX prism.css (https://latex.vercel.app/#syntax-highlighting)
33
* Based on the default prism.js theme for JavaScript, CSS and HTML by Lea Verou
44
*
55
* Source: https://github.com/vincentdoerig/latex-css/tree/master/prism

style.css

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*!
2-
* LaTeX.css (https://latex.now.sh/)
2+
* LaTeX.css (https://latex.vercel.app/)
33
*
44
* Source: https://github.com/vincentdoerig/latex-css
55
* Licensed under MIT (https://github.com/vincentdoerig/latex-css/blob/master/LICENSE)
@@ -116,7 +116,7 @@
116116
--text-indent-size: 1.463rem; /* In 12pt [Latin Modern font] LaTeX article
117117
\parindent =~ 17.625pt; taking also into account the ratio
118118
1pt[LaTeX] = (72 / 72.27) * 1pt[HTML], with default 12pt/1rem LaTeX.css font
119-
size, the identation value in rem CSS units is:
119+
size, the identation value in rem CSS units is:
120120
\parindent =~ 17.625 * (72 / 72.27) / 12 = 1.463rem. */
121121
}
122122

0 commit comments

Comments
 (0)