add pro setup (#1201)

This commit is contained in:
Konnor Rogers
2025-07-18 13:41:03 -04:00
committed by GitHub
parent 11519625ed
commit bd2a3c3b64
2 changed files with 14 additions and 0 deletions

View File

@@ -46,6 +46,18 @@ Font Awesome users can set their kit code to unlock Font Awesome Pro icons. You
---
{# This looks weird, but without it, markdownItAttrs flags the raw calls incorrectly. #}
<div>
{%- raw -%}
{% if currentUser.hasPro %}
<div>
{% include "server/pro-setup.njk" ignore missing %}
</div>
{% endif %}
{% endraw %}
</div>
## Advanced Setup
The autoloader is the easiest way to use Web Awesome, but different projects (or your own preferences!) may require different installation methods.

View File

@@ -147,6 +147,8 @@ export async function generateDocs(options = {}) {
} catch (error) {
console.warn = originalWarn;
console.error('\n\n' + chalk.red(error) + '\n');
if (spinner) {
spinner.fail(chalk.red(`Error while writing the docs.`));
} else {