chore(website): More updates
MODIFY
website/package.json
website/package.json
"build:styles": "sass --style=compressed src/styles:src/_includes/styles",
"start": "npm-run-all build:styles --parallel watch:*",
"watch:eleventy": "eleventy --serve",
- "watch:sass": "npm run build:styles -- --watch --recursive"
+ "watch:sass": "npm run build:styles -- --watch"
},
"devDependencies": {
"@11ty/eleventy": "^0.11.0",

MODIFY
website/src/_includes/docs/formatter.md
website/src/_includes/docs/formatter.md
## Formatter
-You can use our formatter using our VS Code extension.
+You can use the formatter via [our VS Code extension](https://marketplace.visualstudio.com/items?itemName=rome.rome).

DELETE
website/src/_includes/docs/formatting.md
-## Formatter

MODIFY
website/src/_includes/docs/intro.md
website/src/_includes/docs/intro.md
+
<section>
+## About Rome
<!-- GENERATED:START(hash:62ccf90aeb8e7fa260c04d350a1a148b77d011c2,id:main) Everything below is automatically generated. DO NOT MODIFY. Run `./rome run scripts/generated-files/website-intro` to update. -->
+
**Rome** is a formatter, linter, bundler, and [more](#development-status) for JavaScript, TypeScript, JSON, HTML, Markdown, and CSS.
**Rome** is designed to replace [Babel](https://babeljs.io/), [ESLint](https://eslint.org/), [webpack](https://webpack.js.org/), [Prettier](https://prettier.io/), [Jest](https://jestjs.io/), and others.

MODIFY
website/src/_includes/layouts/homepage.liquid
website/src/_includes/layouts/homepage.liquid
@@ -6,80 +6,6 @@ social-image: social-logo.png
{% assign post = collections.post | reverse | first %}
-<div class="new-hero">
- <div class="heading">
- <span><em>Rome</em> is a</span>
-
- <div class="mobile-scroller scroller">
- <ul class="reverse">
- <li>
- <span class="text"><span class="typescript">TypeScript</span> Linter</span>
- <span class="big-text">TypeScript Linter</span>
- </li>
- <li>
- <span class="text"><span class="javascript">JavaScript</span> Compiler</span>
- <span class="big-text">JavaScript Compiler</span>
- </li>
- <li>
- <span class="text"><span class="html">HTML</span> Minifier</span>
- <span class="big-text">HTML Minifier</span>
- </li>
- <li>
- <span class="text"><span class="css">CSS</span> Formatter</span>
- <span class="big-text">CSS Formatter</span>
- </li>
- </ul>
- </div>
-
- <div class="desktop-scrollers">
- <div class="scroller">
- <ul class="reverse">
- <li class="typescript">
- <span class="text">TypeScript</span>
- <span class="big-text">TypeScript</span>
- </li>
- <li class="javascript">
- <span class="text">JavaScript</span>
- <span class="big-text">JavaScript</span>
- </li>
- <li class="html">
- <span class="text">HTML</span>
- <span class="big-text">HTML</span>
- </li>
- <li class="css">
- <span class="text">CSS</span>
- <span class="big-text">CSS</span>
- </li>
- </ul>
- </div>
- <div class="scroller">
- <ul>
- <li>
- <span class="text">Linter</span>
- <span class="big-text">Linter</span>
- </li>
- <li>
- <span class="text">Formatter</span>
- <span class="big-text">Formatter</span>
- </li>
- <li>
- <span class="text">Compiler</span>
- <span class="big-text">Compiler</span>
- </li>
- <li>
- <span class="text">Bundler</span>
- <span class="big-text">Bundler</span>
- </li>
- <li>
- <span class="text">Minifier</span>
- <span class="big-text">Minifier</span>
- </li>
- </ul>
- </div>
- </div>
- </div>
-</div>
-
<aside hidden class="latest-post" aria-labelledby="latest-post">
<h2>Latest blog post</h2>
<div class="info">

MODIFY
website/src/credits.md
website/src/credits.md
@@ -421,45 +421,30 @@ layout: layouts/page.liquid
Rome contains code forked from other projects. They have been transformed in some way, sometimes
substantially rewritten.
-- [`crates/rslint_parser`]()
-- [`internal/codec-source-map`](https://github.com/rome/tools/tree/main/internal/codec-source-map)
- - **Original**: [mozilla/source-map](https://github.com/mozilla/source-map)
- - **Author**: [Mozilla Foundation and contributors](https://foundation.mozilla.org/en/)
- - **License**: BSD-3-Clause
-
-- [`internal/formatter`](https://github.com/rome/tools/tree/main/internal/formatter)
- - **Original**: [babel/babel-generator](https://github.com/babel/babel/tree/main/packages/babel-generator) by [Sebastian McKenzie and contributors](https://twitter.com/sebmck)
+- [`crates/rslint_errors`](https://github.com/rome/tools/tree/main/crates/rslint_errors)
+ - **Original**: [`rslint/rslint_errors`](https://github.com/rslint/rslint/tree/master/crates/rslint_errors)
- **License**: MIT
-- [`internal/js-parser`](https://github.com/rome/tools/tree/main/internal/js-parser)
- - **Original**: [babel/babel-parser](https://github.com/babel/babel/tree/main/packages/babel-parser) by [various contributors](https://github.com/rome/tools/tree/main/internal/js-parser/AUTHORS)
- - **Parent**: [acornjs/acorn](https://github.com/acornjs/acorn)
- - **Author**: MIT
-
-- [`internal/string-diff`](https://github.com/rome/tools/tree/main/internal/string-diff)
- - **Original**: [jhchen/fast-diff](https://github.com/jhchen/fast-diff) by [Jason Chen](https://github.com/jhchen)
- - **Parent**: [google-diff-match-patch](http://code.google.com/p/google-diff-match-patch/)
- - **Copyholder**: Google Inc
- - **License**: Apache-2.0
+- [`crates/rslint_parser`](https://github.com/rome/tools/tree/main/crates/rslint_parser)
+ - **Original**: [`rslint/rslint_parser`](https://github.com/rslint/rslint/tree/master/crates/rslint_parser)
+ - **License**: MIT
-- [`internal/string-escape/escapeJSString.ts`](https://github.com/rome/tools/tree/main/internal/string-escape/escapeJSString.ts)
- - **Original**: [mathiasbynens/jsesc](https://github.com/mathiasbynens/jsesc) by [Mathias Bynens](https://mathiasbynens.be/)
+- [`crates/rslint_lexer`](https://github.com/rome/tools/tree/main/crates/rslint_lexer)
+ - **Original**: [`rslint/rslint_lexer`](https://github.com/rslint/rslint/tree/master/crates/rslint_lexer)
- **License**: MIT
-- [`internal/string-escape/escapeRegex.ts`](https://github.com/rome/tools/tree/main/internal/string-escape/escapeRegex.ts)
- - **Original**: [sindresorhus/escape-string-regexp](https://github.com/sindresorhus/escape-string-regexp) by [Sindre Sorhus](https://sindresorhus.com)
+- [`crates/rslint_regex`](https://github.com/rome/tools/tree/main/crates/rslint_regex)
+ - **Original**: [`rslint/rslint_regex`](https://github.com/rslint/rslint/tree/master/crates/rslint_errors)
- **License**: MIT
-- [`internal/string-utils/humanizeFileSize.ts`](https://github.com/rome/tools/tree/main/internal/string-utils/humanizeFileSize.ts)
- - **Original**: [sindresorhus/pretty-bytes](https://github.com/sindresorhus/pretty-bytes) by [Sindre Sorhus](https://sindresorhus.com)
+- [`crates/rslint_syntax`](https://github.com/rome/tools/tree/main/crates/rslint_syntax)
+ - **Original**: [`rslint/rslint_syntax`](https://github.com/rslint/rslint/tree/master/crates/rslint_errors)
- **License**: MIT
-- [`internal/string-utils/naturalCompare.ts`](https://github.com/rome/tools/tree/main/internal/string-utils/naturalCompare.ts)
- - **Original**: [nwoltman/string-natural-compare](https://github.com/nwoltman/string-natural-compare)
- - **Author**: [Nathan Woltman](https://github.com/nwoltman)
+- [`crates/rslint_text_edit`](https://github.com/rome/tools/tree/main/crates/rslint_text_edit)
+ - **Original**: [`rslint/rslint_text_edit`](https://github.com/rslint/rslint/tree/master/crates/rslint_errors)
- **License**: MIT
-- [`internal/codec-binary-serial/CachedKeyDecoder.ts`](https://github.com/rome/tools/tree/main/internal/codec-binary-serial/CachedKeyDecoder.ts) [`internal/codec-binary-serial/utf8.ts`](https://github.com/rome/tools/tree/main/internal/codec-binary-serial/utf8.ts)
- - **Original**: [msgpack/msgpack-javascript](https://github.com/msgpack/msgpack-javascript)
- - **Author**: [The MessagePack Community](https://msgpack.org/)
- - **License**: ISC
+- [`crates/rome_rowan`](https://github.com/rome/tools/tree/main/crates/rome_rowan)
+ - **Original**: [`rust-analyzer/rowan`](https://github.com/rust-analyzer/rowan)
+ - **License**: Apache License, Version 2.0

MODIFY
website/src/styles/_homepage.scss
website/src/styles/_homepage.scss
@@ -175,94 +175,6 @@ pre.collapsable {
}
}
-.new-hero {
- margin-top: $unit;
- margin-left: $unit;
- border: 1px solid var(--soft-border-color);
- @include pattern;
- position: relative;
-
- @include mobile-only() {
- margin-left: 0;
- border-left: none;
-
- &::before {
- display: none;
- }
- }
-
- &::before {
- position: absolute;
- content: "";
- top: 0;
- left: 0;
- right: 0;
- bottom: 0;
- box-shadow: inset 0 30px 30px -30px var(--container-color), inset 0 -30px 30px -30px var(--container-color);
- z-index: 999;
- }
-
- em {
- font-family: "Libre Baskerville", serif;
- font-weight: bold;
- }
-
- .desktop-scrollers {
- display: none;
- flex-direction: row;
-
- @include large-screen-only {
- display: flex;
- }
- }
-
- .mobile-scroller {
- display: none;
- text-align: center;
-
- @include small-screen-only {
- display: block;
- }
-
- &.scroller ul li .text {
- font-size: 1em;
- transition: none;
- }
- }
-
- .heading {
- justify-content: center;
- font-size: 2.2em;
- display: flex;
- flex-direction: row;
- line-height: 50px;
- height: 150px;
- align-items: center;
-
- > span, .scroller {
- flex-grow: 0;
- margin: 0 8px;
- }
-
- @include small-screen-only {
- flex-direction: column;
- height: 150px;
-
- .scroller {
- height: 50px;
-
- &:first-child {
- text-align: right;
- }
-
- ul {
- padding: 0;
- }
- }
- }
- }
-}
-
.scroller {
overflow: hidden;
align-items: top;

chore(website): More updates (#2201)