Making sphinx documentation private

前端 未结 3 758
佛祖请我去吃肉
佛祖请我去吃肉 2020-12-19 17:21

So this is a reoccurring issue and I\'m not qualified to fix it but I need it fixed so I\'m going to have to learn. See this question for an outdated / not feasible solution

相关标签:
3条回答
  • 2020-12-19 18:20

    GitLab now supports access control for pages:

    https://docs.gitlab.com/ce/administration/pages/#access-control

    Pages access control is currently disabled by default. To enable it, you must:

    1. Enable it in /etc/gitlab/gitlab.rb

      gitlab_pages['access_control'] = true

    2. Reconfigure GitLab

    0 讨论(0)
  • 2020-12-19 18:20

    So I've made a rudimentary fix that works for now:

    This gitlab repo shows a working example here.

    It uses static password protection and is also discussed in this issue.

    0 讨论(0)
  • 2020-12-19 18:25

    Now GitLab Pages works with the same permissions as in the project. If the project is private, the Pages will also be private.

    I've tried this tutorial: https://gitlab.com/pages/sphinx/tree/master

    0 讨论(0)
提交回复
热议问题