1 В избранное 0 Ответвления 0

OSCHINA-MIRROR/vertx-china-vertx-web-site

Присоединиться к Gitlife
Откройте для себя и примите участие в публичных проектах с открытым исходным кодом с участием более 10 миллионов разработчиков. Приватные репозитории также полностью бесплатны :)
Присоединиться бесплатно
Клонировать/Скачать
Внести вклад в разработку кода
Синхронизировать код
Отмена
Подсказка: Поскольку Git не поддерживает пустые директории, создание директории приведёт к созданию пустого файла .keep.
Loading...
README.md

Vert.x Website Deploy

翻译说明

This repository contains the source of the Vert.x website (https://vertx.io).

Quickstart

Initialize local copy:

npm i

Download, extract and compile AsciiDoc source files of the Vert.x documentation:

npm run update-docs

Start the website in development mode:

npm run dev

Export a static website:

npm run build

The website will be exported the out directory.

Test the exported website:

cd out
npx serve

Docker

If you don't want to install Node.js, use Docker instead:

# Initialize local copy
rm -rf node_modules docs/node_modules
docker run -it -v $(pwd):/vertx node:16-slim sh -c "cd /vertx && npm i"

# Download, extract, and compile docs
docker run -it -v $(pwd):/vertx node:16-slim sh -c "cd /vertx && npm run update-docs"

# Start website in development mode
docker run -it -v $(pwd):/vertx -p 3000:3000 node:16-slim \
  sh -c "cd /vertx && npm run dev"

Alternatively, build a Docker image that runs the static website inside NGINX (no hot reloading!):

docker build -t vertx-web-site .
docker run -it -p 80:80 vertx-web-site

Automatic generation of the list of contributors

The community page contains a list of people who have contributed to any of the Vert.x repositories. Generating this list takes some time and requires you to authenticate against the GitHub API. Due to this, it is disabled by default.

If you want to generate the list of contributors, first create a personal access token. Then, set the environment variable GITHUB_ACCESS_TOKEN to this token. For example,

GITHUB_ACCESS_TOKEN=abcdefghijklmnopqrs0123456789 npm run build

Automated deployment

The Deploy Workflow runs every time a new commit is pushed. It publishes the website to https://vertx.io/.

Комментарии ( 0 )

Вы можете оставить комментарий после Вход в систему

Введение

Проект перевода сайта Vert.x версии 4. Развернуть Свернуть
Apache-2.0
Отмена

Обновления

Пока нет обновлений

Участники

все

Недавние действия

Загрузить больше
Больше нет результатов для загрузки
1
https://api.gitlife.ru/oschina-mirror/vertx-china-vertx-web-site.git
git@api.gitlife.ru:oschina-mirror/vertx-china-vertx-web-site.git
oschina-mirror
vertx-china-vertx-web-site
vertx-china-vertx-web-site
master