adambard / learnxinyminutes-site

44 stars 61 forks source link

Update pygments.rb #108

Closed verhovsky closed 7 months ago

verhovsky commented 1 year ago

I pinned haml to version 5 in the Gemfile (because version 5 is already in Gemfile.lock and version 6 doesn't seem to work) then I ran

gem install bundler:1.16.1
bundle update
bundle install
bundle exec middleman build

cd build
python -m http.server

chrome 'http://localhost:8000'

Fixes #110 and allows highlighting Zig code (see https://github.com/adambard/learnxinyminutes-docs/issues/4507 and https://github.com/adambard/learnxinyminutes-docs/issues/4536 )

KaneRoot commented 1 year ago

Thanks!

verhovsky commented 11 months ago

@adambard ping

vendethiel commented 10 months ago

Also interested in this.

adambard commented 7 months ago

@verhovsky @vendethiel I find myself apologizing once again for my lack of responsibility for this project.

I propose that we implement the building of this project as a github workflow, to be deployed to a static site hosting vendor of choice. This would put the whole pipeline in the hands of this site's community, though I would of course be happy to continue hosting it.

The branch build-github-action contains a brief attempt, but unfortunately it seems like it might be real work to get building. I'll try to get back to it this week, but I'm open to contributions.

verhovsky commented 7 months ago

@adambard I haven't been able to build learnxinyminutes-site using Ruby 3 while working on this either. If you try

      - name: Set up Ruby
        uses: ruby/setup-ruby@v1
        with:
          ruby-version: "2.6"

it'll probably work.

verhovsky commented 7 months ago

@adambard if you accept #114 it should work with Ruby 3.3

verhovsky commented 7 months ago

@adambard I think you need something like this

      - uses: actions/checkout@v4
      - uses: actions/checkout@v4
        repository: https://github.com/adambard/learnxinyminutes-docs
        path: learnxinyminutes-site/learnxinyminutes-site/source/docs

not sure about the path: part. Also there are still some errors in some files in learnxinyminutes-docs so bundle exec middleman build will fail anyway, I've submitted https://github.com/adambard/learnxinyminutes-docs/pull/4873 with a few of them fixed

verhovsky commented 7 months ago

@adambard I fixed that error in https://github.com/adambard/learnxinyminutes-docs/pull/4873