Skip to content
Merged
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
16 changes: 8 additions & 8 deletions apps/docs/content/postgresql/how-to/manage.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ For connection methods and environment variables, see the [Connect to PostgreSQL

You can use any PostgreSQL management tool of your choice to administer your databases in Zerops. For convenience, Zerops provides ready-to-use recipes for two popular web-based database management tools:

* [AdminerEvo](https://github.com/adminerevo/adminerevo) - developed by the AdminerEvo community and is a continuation of the [Adminer](https://www.adminer.org) project by Jakub Vrána
* [Adminer](https://www.adminer.org) - a lightweight database management tool by Jakub Vrána
* [phpMyAdmin](https://www.phpmyadmin.net) - a popular free database administration tool that works with both MySQL and PostgreSQL databases

### Installing Management Tools
Expand All @@ -49,13 +49,13 @@ You can install these tools with a simple one-click import in Zerops:
<TabbedCodeBlocks
tabs={[
{
label: 'AdminerEvo',
label: 'Adminer',
language: 'yaml',
code: `services:
- hostname: adminerevo
type: php-apache@8.3
- hostname: adminer
type: php-apache@8.5
enableSubdomainAccess: true
buildFromGit: https://github.com/zeropsio/recipe-adminerevo`
buildFromGit: https://github.com/zeropsio/recipe-adminer`
},
{
label: 'phpMyAdmin',
Expand All @@ -69,18 +69,18 @@ You can install these tools with a simple one-click import in Zerops:
buildFromGit: https://github.com/zeropsio/recipe-phpmyadmin@main`
}
]}
defaultTab="AdminerEvo"
defaultTab="Adminer"
/>

### Accessing Management Tools

After installation, you can access these tools via VPN:

1. [Start the Zerops VPN](/references/networking/vpn)
2. Type `http://adminerevo` or `http://phpmyadmin` in your browser
2. Type `http://adminer` or `http://phpmyadmin` in your browser

:::tip
Try `http://adminerevo.zerops` or `http://phpmyadmin.zerops` if you encounter any connection issues.
Try `http://adminer.zerops` or `http://phpmyadmin.zerops` if you encounter any connection issues.
:::

:::caution
Expand Down
15 changes: 8 additions & 7 deletions apps/docs/src/plugins/markdown-source/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -404,6 +404,10 @@ function cleanMarkdownForDisplay(content, filepath, siteDir, docsDir) {
// 5. Remove remaining import statements (after inlining MDX imports)
content = content.replace(/^import\s+.*?from\s+['"].*?['"];?\s*$/gm, '');

// 5b. Convert HTML tables to markdown tables (must run before substituteVariables
// expands {data.x} JSX attributes, which would break UnorderedCodeList matching)
content = convertHtmlTablesToMarkdown(content, siteDir);

// 6. Substitute variables like {data.something}
content = substituteVariables(content, siteDir);

Expand Down Expand Up @@ -519,15 +523,12 @@ function cleanMarkdownForDisplay(content, filepath, siteDir, docsDir) {
// 15. Convert details/summary components to readable markdown (preserve content)
content = convertDetailsToMarkdown(content);

// 16. Convert HTML tables to markdown tables
content = convertHtmlTablesToMarkdown(content, siteDir);

// 17. Remove custom React/MDX components while preserving tables
// 16. Remove custom React/MDX components while preserving tables
content = preserveTablesWhileProcessing(content, (section) => {
return section.replace(/<[A-Z][a-zA-Z]*[\s\S]*?(?:\/>|<\/[A-Z][a-zA-Z]*>)/g, '');
});

// 18. Remove consecutive blank lines (keep max 2 newlines = 1 blank line)
// 17. Remove consecutive blank lines (keep max 2 newlines = 1 blank line)
const lines = content.split('\n');
const processedLines = [];
let lastLineWasEmpty = false;
Expand All @@ -545,12 +546,12 @@ function cleanMarkdownForDisplay(content, filepath, siteDir, docsDir) {

content = processedLines.join('\n');

// 19. Add title as H1 at the beginning if it exists
// 18. Add title as H1 at the beginning if it exists
if (title) {
content = `# ${title}\n\n${content}`;
}

// 20. Remove any leading blank lines
// 19. Remove any leading blank lines
content = content.replace(/^\s*\n/, '');

return content;
Expand Down
4 changes: 2 additions & 2 deletions apps/docs/static/data.json
Original file line number Diff line number Diff line change
Expand Up @@ -118,12 +118,12 @@
"python": {
"default": "3",
"base": [
["python@3.14", "python@latest"],
["python@3.14 (Ubuntu only)", "python@latest"],
["python@3.12"],
["python@3.11"]
],
"import": [
["python@3.14"],
["python@3.14 (Ubuntu only)"],
["python@3.12"],
["python@3.11"]
],
Expand Down
6 changes: 3 additions & 3 deletions apps/docs/static/llms-full.txt
Original file line number Diff line number Diff line change
Expand Up @@ -16812,7 +16812,7 @@ For connection methods and environment variables, see the [Connect to PostgreSQL
:::
## Database Management Tools
You can use any PostgreSQL management tool of your choice to administer your databases in Zerops. For convenience, Zerops provides ready-to-use recipes for two popular web-based database management tools:
* [AdminerEvo](https://github.com/adminerevo/adminerevo) - developed by the AdminerEvo community and is a continuation of the [Adminer](https://www.adminer.org) project by Jakub Vrána
* [Adminer](https://www.adminer.org) - a lightweight database management tool by Jakub Vrána
* [phpMyAdmin](https://www.phpmyadmin.net) - a popular free database administration tool that works with both MySQL and PostgreSQL databases
### Installing Management Tools
You can install these tools with a simple one-click import in Zerops:
Expand All @@ -16821,9 +16821,9 @@ You can install these tools with a simple one-click import in Zerops:
### Accessing Management Tools
After installation, you can access these tools via VPN:
1. [Start the Zerops VPN](/references/networking/vpn)
2. Type `http://adminerevo` or `http://phpmyadmin` in your browser
2. Type `http://adminer` or `http://phpmyadmin` in your browser
:::tip
Try `http://adminerevo.zerops` or `http://phpmyadmin.zerops` if you encounter any connection issues.
Try `http://adminer.zerops` or `http://phpmyadmin.zerops` if you encounter any connection issues.
:::
:::caution
Do not use https when connecting to management tools via VPN.
Expand Down
6 changes: 3 additions & 3 deletions apps/docs/static/llms-small.txt
Original file line number Diff line number Diff line change
Expand Up @@ -16571,7 +16571,7 @@ For connection methods and environment variables, see the [Connect to PostgreSQL
:::
## Database Management Tools
You can use any PostgreSQL management tool of your choice to administer your databases in Zerops. For convenience, Zerops provides ready-to-use recipes for two popular web-based database management tools:
* [AdminerEvo](https://github.com/adminerevo/adminerevo) - developed by the AdminerEvo community and is a continuation of the [Adminer](https://www.adminer.org) project by Jakub Vrána
* [Adminer](https://www.adminer.org) - a lightweight database management tool by Jakub Vrána
* [phpMyAdmin](https://www.phpmyadmin.net) - a popular free database administration tool that works with both MySQL and PostgreSQL databases
### Installing Management Tools
You can install these tools with a simple one-click import in Zerops:
Expand All @@ -16580,9 +16580,9 @@ You can install these tools with a simple one-click import in Zerops:
### Accessing Management Tools
After installation, you can access these tools via VPN:
1. [Start the Zerops VPN](/references/networking/vpn)
2. Type `http://adminerevo` or `http://phpmyadmin` in your browser
2. Type `http://adminer` or `http://phpmyadmin` in your browser
:::tip
Try `http://adminerevo.zerops` or `http://phpmyadmin.zerops` if you encounter any connection issues.
Try `http://adminer.zerops` or `http://phpmyadmin.zerops` if you encounter any connection issues.
:::
:::caution
Do not use https when connecting to management tools via VPN.
Expand Down
Loading