Skip to content

rfulton-lf/developer.laserfiche.com

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Forked from Laserfiche Repo

Building documentation locally

Prerequisites:

  • Follow the instructions here to install jekyll and bundler.

  • Check installations and versions:

    gem --version
    bundle --version
    jekyll --version
    
  • Troubleshoot:

    • Certificate issues:

      1. Export the certificate (Base64) you need and save it as a .pem file.
      2. Copy the .pem file to the RubyGems certificate directory in your installation. E.g., C:\Ruby32-x64\lib\ruby\3.2.0\rubygems\ssl_certs\rubygems.org
      3. Run gem update --system
      4. If you still see the certificate issue, copy the .pem file also to the site_ruby certificate directory, e.g., C:\Ruby32-x64\lib\ruby\site_ruby\3.2.0\rubygems\ssl_certs\rubygems.org. Then run gem update --system again.
      • More details here.
    • Dependency issues:

      1. Install the dependencies from local .gem files if you see errors like'fetch_http': bad response Forbidden 403 (https://index.rubygems.org/gems/google-protobuf-3.25.3-x64-mingw-ucrt.gem?_sm_nck=1) when run gem install jekyll.
        1. Find the dependency needed in your local drive or go to https://index.rubygems.org/gems and download the package file.
        2. Run gem install --local <path_to_gem/filename.gem>.

Build the static website and serve locally

  1. Navigate to directory <project_path>/src.
  2. Run bundle install to install all the dependencies needed to serve.
    • Troubleshoot:
      • If you see error Gem::RemoteFetcher::FetchError bad response Forbidden 403, stay under directory /src and follow the steps in the dependency issues in the prerequisites to install the dependency from a local .gem file.
  3. Run bundle exec jekyll serve --destination ../_site to build and serve the documentation.
  4. Open localhost:4000 in a browser.

Adding a new page, or modifying an existing one

All website content is defined under the folder /src/docs. Each page is defined by a folder containing a file named index.md, and optionally linked static assets such as images.

The index.md jekyll front matter defines page data such as navigation order, title, and optional nested pages. For example:

---
layout: default
title: Laserfiche SharePoint Online Integration Administration Guide
nav_order: 2
has_children: true
---

to view changes in the browser, run jekyll serve --watch and browse http://localhost:4000. Refresh to see changes.

Configuring Redirects

To redirect from a list of links to a page, add a redirect-from key in the front matter of the page, and then list the links you want to redirect from in a bulleted list. For example:

---
layout: default
title: Save a Document to Laserfiche
redirect_from:
  - /docs/user-documentation/save-to-laserfiche
  - /docs/user-docs/save-to-lf
nav_order: 1
parent: Laserfiche SharePoint Online Integration User Guide
---

Pushing to production

To push documentation changes to production, create a Pull Request to merge into the default branch. The PR completion will trigger the documentation build pipeline which builds and publishes the documentation. You can view the results on Github Pages.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published