diff --git a/README.md b/README.md index 2f09e00d..5cb893da 100644 --- a/README.md +++ b/README.md @@ -7,19 +7,19 @@ See https://github.com/Unibeautify/website/blob/master/scripts/beautifiers.ts fo | # | Beautifier | Preinstalled | Documentation | | --- | --- | --- | --- | -| 1 | Black | :warning: | https://unibeautify.com/docs/beautifier-black.html | -| 2 | CSScomb | :white_check_mark: | https://unibeautify.com/docs/beautifier-csscomb.html | -| 3 | ClangFormat | :warning: | https://unibeautify.com/docs/beautifier-clangformat.html | -| 4 | ESLint | :white_check_mark: | https://unibeautify.com/docs/beautifier-eslint.html | -| 5 | Gofmt | :warning: | https://unibeautify.com/docs/beautifier-gofmt.html | -| 6 | JS-Beautify | :white_check_mark: | https://unibeautify.com/docs/beautifier-js-beautify.html | -| 7 | PHP-CS-Fixer | :warning: | https://unibeautify.com/docs/beautifier-php-cs-fixer.html | -| 8 | PHP_CodeSniffer | :warning: | https://unibeautify.com/docs/beautifier-php_codesniffer.html | -| 9 | Prettier | :white_check_mark: | https://unibeautify.com/docs/beautifier-prettier.html | -| 10 | Pretty Diff | :white_check_mark: | https://unibeautify.com/docs/beautifier-pretty-diff.html | -| 11 | TSLint | :white_check_mark: | https://unibeautify.com/docs/beautifier-tslint.html | -| 12 | YAPF | :warning: | https://unibeautify.com/docs/beautifier-yapf.html | -| 13 | sqlformat | :warning: | https://unibeautify.com/docs/beautifier-sqlformat.html | +| 1 | Black | :warning: | https://unibeautify.com/docs/beautifier-black | +| 2 | CSScomb | :white_check_mark: | https://unibeautify.com/docs/beautifier-csscomb | +| 3 | ClangFormat | :warning: | https://unibeautify.com/docs/beautifier-clangformat | +| 4 | ESLint | :white_check_mark: | https://unibeautify.com/docs/beautifier-eslint | +| 5 | Gofmt | :warning: | https://unibeautify.com/docs/beautifier-gofmt | +| 6 | JS-Beautify | :white_check_mark: | https://unibeautify.com/docs/beautifier-js-beautify | +| 7 | PHP-CS-Fixer | :warning: | https://unibeautify.com/docs/beautifier-php-cs-fixer | +| 8 | PHP_CodeSniffer | :warning: | https://unibeautify.com/docs/beautifier-php_codesniffer | +| 9 | Prettier | :white_check_mark: | https://unibeautify.com/docs/beautifier-prettier | +| 10 | Pretty Diff | :white_check_mark: | https://unibeautify.com/docs/beautifier-pretty-diff | +| 11 | TSLint | :white_check_mark: | https://unibeautify.com/docs/beautifier-tslint | +| 12 | YAPF | :warning: | https://unibeautify.com/docs/beautifier-yapf | +| 13 | sqlformat | :warning: | https://unibeautify.com/docs/beautifier-sqlformat | ## Contributing diff --git a/docs/editors.md b/docs/editors.md index b618bd20..20ff0482 100644 --- a/docs/editors.md +++ b/docs/editors.md @@ -162,7 +162,7 @@ WebStorm is not yet supported. Please help us by contributing! Thanks in advance "name": "How to format on save in Atom?", "acceptedAnswer": { "@type": "Answer", - "text": "In Atom-Beautify, format/beautify on save can be enabled or disabled for each language individually. For example, for language HTML go into Atom-Beautify's package settings (Atom ➔ Preferences ➔ Search for atom-beautify), find HTML, and toggle the Beautify On Save option." + "text": "In Atom-Beautify, format/beautify on save can be enabled or disabled for each language individually. For example, for language HTML go into Atom-Beautify's package settings (Atom ➔ Preferences ➔ Search for atom-beautify), find HTML, and toggle the Beautify On Save option." } }, { "@type": "Question", diff --git a/docs/options-for-beautifiers.md b/docs/options-for-beautifiers.md index c35b49cf..b3402426 100644 --- a/docs/options-for-beautifiers.md +++ b/docs/options-for-beautifiers.md @@ -16,7 +16,7 @@ LANGUAGE_NAME: # Language path: "/absolute/path/to/executable" ``` -For example, consider the [PHP-CS-Fixer beautifier](/docs/beautifier-php-cs-fixer.html): +For example, consider the [PHP-CS-Fixer beautifier](/docs/beautifier-php-cs-fixer): ```yaml --- @@ -35,7 +35,7 @@ After enabling `prefer_beautifier_config` option for a beautifier Unibeautify wi If the beautifier's configuration file is found then Unibeautify's own configuration file (e.g. `.unibeautifyrc`) will be ignored. This is useful when Unibeautify does not support an option and you want more control over a specific beautifier. -> Only certain beautifiers support the `prefer_beautifier_config` option. See the `Advanced` section on a beautifier's page to see what beautifier options are supported. For example, see the [PHP-CS-Fixer beautifier](/docs/beautifier-php-cs-fixer.html#advanced). +> Only certain beautifiers support the `prefer_beautifier_config` option. See the `Advanced` section on a beautifier's page to see what beautifier options are supported. For example, see the [PHP-CS-Fixer beautifier](/docs/beautifier-php-cs-fixer#advanced). ### Config File Path You can also specify the absolute path to the beautifier's config file by putting a string in the `prefer_beautifier_config` option. It will otherwise look in the directory of the file being beautified, and if it doesn't find it there, will go to the parent directory. diff --git a/scripts/generate-docs/MarkdownBuilder.ts b/scripts/generate-docs/MarkdownBuilder.ts index 45dd271b..7f8850c1 100644 --- a/scripts/generate-docs/MarkdownBuilder.ts +++ b/scripts/generate-docs/MarkdownBuilder.ts @@ -59,7 +59,7 @@ export default class MarkdownBuilder { docId: string, queryParam?: string ): string { - let dest: string = `/docs/${docId}.html`; + let dest: string = `/docs/${docId}`; if (queryParam) { dest += `?${queryParam}`; } diff --git a/scripts/update-readme.ts b/scripts/update-readme.ts index 4c73ba0c..44da4e5f 100644 --- a/scripts/update-readme.ts +++ b/scripts/update-readme.ts @@ -79,7 +79,7 @@ class SupportTableReplacer extends SectionReplacer { function docUrl(beautifierName: string): string { return `https://unibeautify.com/docs/beautifier-${slugify( beautifierName - )}.html`; + )}`; } function slugify(beautifierName: string): string { diff --git a/website/core/Footer.js b/website/core/Footer.js index ea52ce86..1de32e08 100644 --- a/website/core/Footer.js +++ b/website/core/Footer.js @@ -39,14 +39,14 @@ class Footer extends React.Component {