|
1 | | -# tuxcare-documentation |
| 1 | +# TuxCare Documentation |
2 | 2 |
|
| 3 | +VuePress-based documentation site for TuxCare products and services. |
3 | 4 |
|
4 | | -## Install dependencies |
| 5 | +## Tech Stack |
5 | 6 |
|
6 | | -``` |
7 | | -$ yarn |
| 7 | +- VuePress 2.0.0-beta.61 |
| 8 | +- Vue 3 + TypeScript |
| 9 | +- Vite bundler |
| 10 | +- Custom Vue components |
| 11 | + |
| 12 | +## Prerequisites |
| 13 | + |
| 14 | +- Node.js 22.x |
| 15 | +- Yarn (required) |
| 16 | + |
| 17 | +**⚠️ Important**: This project uses Yarn. Please do not use npm to avoid conflicts with the GitHub Actions deployment workflow. |
| 18 | + |
| 19 | +## Quick Start |
| 20 | + |
| 21 | +```bash |
| 22 | +# Install dependencies |
| 23 | +yarn install |
| 24 | + |
| 25 | +# Start development server |
| 26 | +yarn docs:dev |
| 27 | + |
| 28 | +# Visit http://localhost:8080 |
8 | 29 | ``` |
9 | 30 |
|
10 | | -## Start local server |
| 31 | +## Available Scripts |
| 32 | + |
| 33 | +| Command | Description | |
| 34 | +|---------|-------------| |
| 35 | +| `yarn docs:dev` | Start VuePress dev server with hot reload | |
| 36 | +| `yarn docs:build` | Build static site for production | |
| 37 | +| `yarn dev` | Start Vite dev server | |
| 38 | +| `yarn build` | Build with TypeScript compilation | |
| 39 | +| `yarn preview` | Preview production build locally | |
| 40 | + |
| 41 | +## Project Structure |
11 | 42 |
|
12 | | -```sh |
13 | | -$ yarn docs:dev |
14 | 43 | ``` |
| 44 | +docs/ |
| 45 | +├── .vuepress/ # VuePress config and components |
| 46 | +├── els-for-os/ # Extended Lifecycle Support for OS |
| 47 | +├── els-for-runtimes-and-libraries/ # ELS for languages/frameworks |
| 48 | +├── els-for-applications/ # ELS for applications |
| 49 | +├── enterprise-support-for-almalinux/ |
| 50 | +├── eportal/ # Enterprise portal docs |
| 51 | +└── ... |
| 52 | +``` |
| 53 | + |
| 54 | +## Troubleshooting |
15 | 55 |
|
16 | | -For some environments there could be an error: |
| 56 | +### OpenSSL Error (Legacy Node.js) |
| 57 | + |
| 58 | +If you encounter an OpenSSL initialization error: |
17 | 59 |
|
18 | 60 | ``` |
19 | | -opensslErrorStack: [ 'error:03000086:digital envelope routines::initialization error' ], |
20 | | -library: 'digital envelope routines', |
21 | | -reason: 'unsupported', |
22 | | -code: 'ERR_OSSL_EVP_UNSUPPORTED' |
| 61 | +ERR_OSSL_EVP_UNSUPPORTED |
23 | 62 | ``` |
24 | 63 |
|
25 | | -For workaround you can use |
| 64 | +Set the legacy OpenSSL provider before running dev server: |
26 | 65 |
|
27 | | -```sh |
28 | | -$ export NODE_OPTIONS=--openssl-legacy-provider |
| 66 | +```bash |
| 67 | +export NODE_OPTIONS=--openssl-legacy-provider |
| 68 | +yarn docs:dev |
29 | 69 | ``` |
30 | 70 |
|
31 | | -before starting dev server. |
| 71 | +## Deployment |
32 | 72 |
|
| 73 | +The site automatically deploys to GitHub Pages when changes are pushed to the `master` branch. The GitHub Actions workflow: |
33 | 74 |
|
34 | | -## Static assets |
| 75 | +1. Installs dependencies with `yarn install --frozen-lockfile` |
| 76 | +2. Builds the site with `yarn docs:build` |
| 77 | +3. Deploys to the `gh-pages` branch |
| 78 | + |
| 79 | +See `.github/workflows/deploy.yml` for the complete CI/CD configuration. |
35 | 80 |
|
36 | | -```sh |
37 | | -$ yarn docs:build |
38 | | -``` |
|
0 commit comments