1
0
mirror of https://github.com/tabler/tabler.git synced 2025-12-21 17:34:25 +04:00

Remove Ruby and Bundler dependencies from workflow and documentation

This commit is contained in:
codecalm
2025-01-22 22:22:06 +01:00
parent be69fd6c08
commit 782f0f5726
5 changed files with 9 additions and 48 deletions

View File

@@ -27,13 +27,6 @@ jobs:
with: with:
version: 8 version: 8
- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: 3.2
bundler-cache: true
- run: ruby --version
- run: node --version - run: node --version
- name: Install pnpm dependencies - name: Install pnpm dependencies

View File

@@ -3,8 +3,6 @@ FROM ruby:3.2-alpine
WORKDIR /app WORKDIR /app
ADD _config.yml /app/ ADD _config.yml /app/
ADD _config_prod.yml /app/ ADD _config_prod.yml /app/
ADD Gemfile /app/
ADD Gemfile.lock /app/
ADD package.json /app/ ADD package.json /app/
ADD pnpm-lock.yaml /app/ ADD pnpm-lock.yaml /app/
ADD gulpfile.js /app/ ADD gulpfile.js /app/
@@ -13,7 +11,6 @@ RUN apk add --virtual build-dependencies build-base npm
RUN apk upgrade RUN apk upgrade
RUN npm i -g pnpm RUN npm i -g pnpm
RUN pnpm install RUN pnpm install
RUN bundle config --global silence_root_warning 1 && bundler install --verbose
# website # website
EXPOSE 3000 EXPOSE 3000

View File

@@ -91,32 +91,19 @@ To use our build system and run our documentation locally, you'll need a copy of
1. [Install Node.js](https://nodejs.org/download/), which we use to manage our dependencies. 1. [Install Node.js](https://nodejs.org/download/), which we use to manage our dependencies.
2. Navigate to the root `/tabler` directory and run `pnpm install` to install our local dependencies listed in `package.json`. 2. Navigate to the root `/tabler` directory and run `pnpm install` to install our local dependencies listed in `package.json`.
3. [Install Ruby](https://www.ruby-lang.org/en/documentation/installation/) - the recommended version is [2.7.6](https://cache.ruby-lang.org/pub/ruby/2.7/ruby-2.7.6.tar.gz).
4. [Install Bundler](https://bundler.io) with `gem install bundler` and finally run `bundle install`. It will install all Ruby dependencies, such as [Jekyll and plugins](https://jekyllrb.com).
**OSX users**: **OSX users**:
1. NPM ```pnpm install``` ```pnpm install```
2. install Ruby (2.5.* recommended)
```brew install ruby @2.5``` and then
3. install bundler
```gem install bundler```
4. install
```bundle install```
- if bundler get any errors try
```
sudo rm -rf /Library/Developer/CommandLineTools
sudo xcode-select --install
```
5. Run NPM
```npm run start``` ```npm run start```
**Windows users**: **Windows users**:
1. [Install Git](https://git-scm.com/download/win) in `C:\Program Files\git\bin` directory and run `npm config set script-shell "C:\\Program Files\\git\\bin\\bash.exe"` to change the default shell. [Install Git](https://git-scm.com/download/win) in `C:\Program Files\git\bin` directory and run `npm config set script-shell "C:\\Program Files\\git\\bin\\bash.exe"` to change the default shell.
2. [Install Ruby+Devkit](https://rubyinstaller.org/downloads/) - the recommended version is [2.7.6](https://github.com/oneclick/rubyinstaller2/releases/download/RubyInstaller-2.7.6-1/rubyinstaller-devkit-2.7.6-1-x64.exe).
3. [Read guide](https://jekyllrb.com/docs/installation/windows/) to get Jekyll up and running without problems.
Once you complete the setup, you'll be able to run the various commands provided from the command line. Once you complete the setup, you'll be able to run the various commands provided from the command line.
@@ -125,10 +112,8 @@ Once you complete the setup, you'll be able to run the various commands provided
You need to have `pnpm` and `bundler` installed. You need to have `pnpm` and `bundler` installed.
1. From the root `/tabler` directory, run installation in the command line: 1. From the root `/tabler` directory, run installation in the command line: `pnpm install`
- `pnpm install` 2. Then execute `pnpm run start` to start up the application stack.
- `bundler install`
2. Then execute `pnpm run start-plugins` to start up the application stack.
3. Open [http://localhost:3000](http://localhost:3000) in your browser, and voilà. 3. Open [http://localhost:3000](http://localhost:3000) in your browser, and voilà.
4. Any change in the `/src` directory will build the application and refresh the page. 4. Any change in the `/src` directory will build the application and refresh the page.
@@ -148,7 +133,7 @@ npm install --save @tabler/core
**Plain Docker** **Plain Docker**
If you don't want to install node/npm/ruby and the dependencies on your local environment, you can use the provided Dockerfile to build a docker image. If you don't want to install node/npm and the dependencies on your local environment, you can use the provided Dockerfile to build a docker image.
This Dockerfile is provided as an example to spin-up a container running Tabler. This Dockerfile is provided as an example to spin-up a container running Tabler.
Example of how to use this image: Example of how to use this image:

View File

@@ -46,10 +46,6 @@ Youll need Node.js (v20 or higher) and pnpm to compile Tablers files. If y
- [Node.js](https://nodejs.org/) - [Node.js](https://nodejs.org/)
- [pnpm](https://pnpm.io/) - [pnpm](https://pnpm.io/)
### Install Ruby and Bundler
Tabler uses Ruby and Bundler to manage dependencies. Install Ruby and Bundler by following the instructions in the [Ruby documentation](https://www.ruby-lang.org/en/documentation/installation/) and the [Bundler website](https://bundler.io/).
### Install dependencies ### Install dependencies
Run the following command to install all required npm packages. We recommend using pnpm for faster installation: Run the following command to install all required npm packages. We recommend using pnpm for faster installation:
@@ -58,14 +54,6 @@ Run the following command to install all required npm packages. We recommend usi
pnpm install pnpm install
``` ```
### Install Jekyll
Tabler uses Jekyll to build the documentation. Install Jekyll by running the following command:
```bash
bundle install
```
### Start developer mode ### Start developer mode
Use the following command to enable autocompilation with live reload. This will start a local server at `http://localhost:3000/`: Use the following command to enable autocompilation with live reload. This will start a local server at `http://localhost:3000/`:

View File

@@ -6,8 +6,6 @@
<a href="#" data-debug="fullscreen">Fullscreen</a> <a href="#" data-debug="fullscreen">Fullscreen</a>
<a href="#" data-debug="header-sticky">Sticky header</a> <a href="#" data-debug="header-sticky">Sticky header</a>
<a href="{{ page | relative }}/pages.html">All pages</a> <a href="{{ page | relative }}/pages.html">All pages</a>
<div class="debug-info">Jekyll {{ jekyll.version }}</div>
</div> </div>
<style> <style>
.card-debug { .card-debug {