Skip to content

GitLab

  • Menu
Projects Groups Snippets
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
  • G gitlabhq1
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 21
    • Issues 21
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 12
    • Merge requests 12
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Monitor
    • Monitor
    • Incidents
  • Packages & Registries
    • Packages & Registries
    • Package Registry
    • Infrastructure Registry
  • Analytics
    • Analytics
    • CI/CD
    • Repository
    • Value stream
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • gpt
  • large_projects
  • gitlabhq1
  • Merge requests
  • !6402

Closed
Created Feb 24, 2014 by Administrator@rootOwner
  • Report abuse
Report abuse

Add documentation for project services and display it

  • Overview 21
  • Commits 6
  • Changes 10

Created by: gonzoyumo

his PR adds support for project services documentation. It allows service owners to provide a short documentation that is displayed on the service page to help Gitlab user setting up the service.

It's done the following way:

  • a markdown file must be placed in doc/services folder and its name must match Service#to_param value
  • a new class called Gitlab::ServiceDoc is responsible for loading the documentations files and serves their content on demand
  • a new initializer loads the documentation (read the files) only once when app is loaded
  • a new instance method called Service#doc provide access to this documentation from the Service instance
  • the service's _form partial has been modified to display the documentation (using markdown)

Specs and spinach features are provided and I've added documentation for the Gemnasium service that I maintain.

Here is a screenshot of the Gemnasium service page with the documentation section: olivier_gonzalez___vip___gitlab

Assignee
Assign to
Reviewer
Request review from
Time tracking
Source branch: github/fork/gemnasium/add_project_service_documentation