Git Product home page Git Product logo

documentation's Introduction

Documentation for TriplyDB

This repository contains the TriplyDB documentation files. These files are used by the Triply documentation website over at https://triply.cc/docs.

Covered products

This repository includes documentation for the following Triply products:

TriplyDB
An integrated linked data environment for publishing and using linked data knowledge graphs.
TriplyETL
A library that is optimized for building production-grade linked data pipelines.
TriplyDB.js
A library for automating tasks in TriplyDB instances and for building applications that tap into a linked data knowledge graph.

Contributing

  • Feel free to open issues with questions about the documentation.
  • Feel free to create pull requests with adjustments or additions that you believe to be valuable.

Available markdown

You are able to use GitHub Flavored Markdown. As well as the following extensions

Custom ID headers: By default ID's will be created from the content of a header, allowing deep linking to them using the #hash part of a URL.

## My Header

This will result in link http://docs.triply.cc/path-to-file/#my-header.

Using the following syntax you are able to assign custom id's to headers if you do not want the default ID:

## My Header {: #my-custom-header-id}

This will result in link http://docs.triply.cc/path-to-file/#my-custom-header-id.

Guideline for authors

  • Always start your page with a heading of level 1 (1 hashsign)
  • Subheadings of level 2 (2 hashsigns) will appear as submenu on that page
  • Level 1 links in the menu that only contain subpage will not be clickable until a developer creates a mapping in docs/js/triply.js

Installation

This website uses MkDocs to convert Markdown to HTML so the documentation can be viewed in a web browser. Follow the instructions on their website to install MkDocs.

Required plugins:

  • To render mermaid you will need to install this plugin.

The following steps often work/suffice:

  1. Install Python and Pip.
  2. Run pip install mkdocs
  3. Run pip install mkdocs-mermaid2-plugin
  4. Run pip install mkdocs-redirects

Building and running the Documentation website

After you have successfully installed MkDocs, you can run a local web server with the following command (run from the root of this repository):

mkdocs serve --strict

To build a static HTML website for deployment, run this command:

mkdocs build

This will generate the required HTML and CSS in a folder ./site.

To publish this website, push your changes to the master branch. The live documentation site should be updated shortly after that. If there are any errors, you can find more details in the GitHub Actions.

Notes about syntax highlighting

This project uses highlightjs.org for rendering code blocks with syntax highlighting. This projects does not have support for Turtle/SPARQL by default. We use a custom build to provide syntax highlighting for these.

mkdir Highlight.js
cd Highlight.js
git clone https://github.com/highlightjs/highlight.js.git
git clone https://github.com/mightymax/highlightjs-turtle.git
cd highlight.js/src/languages
ln -s ../../../highlightjs-turtle/src/sparql.js
ln -s ../../../highlightjs-turtle/src/turtle.js
cd ../../
node tools/build.js turtle sparql typescript javascript
cp build/highlight.min.js <path-to-this-repo>/js
cp build/demo/styles/intellij-light.css <path-to-this-repo>/css

documentation's People

Contributors

anakonrad avatar bmark92 avatar charitha93 avatar companje avatar danielbeeke avatar dinikolop avatar dionenak avatar ekulno avatar elena-slavco avatar gerwinbosch avatar huxiaotriply avatar ivadimitrova07 avatar ivan-kovatchev avatar janagrimm avatar kathrinrin avatar kinow avatar laurensrietveld avatar mightymax avatar minatriply avatar mpvharmelen avatar philipperenzen avatar raboof avatar rosalinedehaan avatar rosscurry avatar rubenw avatar simonwtriply avatar tanjaronzhina avatar tiptup10 avatar tom-ch1 avatar wouterbeek avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

documentation's Issues

Mermaid visualizations are sometimes too large

Observed

All Mermaid visualizations take the full width of the documentation page. This means that smaller Mermaid diagrams are displayed much bigger than larger Mermaid diagrams. For the purpose of documentation, Mermaid diagrams are sometimes intentionally small, in order to show a small example. Specifically, this makes the text in smaller Mermaid diagrams much bigger than the running text.

The following screenshot was made on the graph validation page for TriplyETL:

Screenshot 2024-04-06 175740

Expected

The ability to determine the display width of Mermaid diagrams. This allows us to tune the size of the diagram such that the text inside the diagram is comparable in size to the running text.

Switch to ReadTheDocs

Requirements

  • The currently visited page is not highlighted in the left-hand menu.

Screenshot from 2023-07-21 08-19-56

  • The chapters inside a page (h2) are not visible in the left-hand menu. This makes it difficult to find the right version number on the changelog page, or the right function name of a page that documents several functions.

Screenshot from 2023-07-21 08-41-54

Nice to have

  • Red is not a good color for in-line code. It looks too much like something is wrong ("error"), especially when scrolling through a page.

Screenshot from 2023-07-21 08-32-03

  • The vertical space between "Bugfixes:" and the item list of bugfixes is too big. It is currently equivalent to the vertical space between two block elements that are distinct (e.g. two pragraphs). But in an item lists, the introduction and the items belong together. This may not be fixable in ReadTheDocs, because it requires me to write an item list as follows:
Bugfixes:

- Installation on Windows.
- Fixed warnings for a dependency (async-saxophone for XML processing), which did not yet officially support Node.js 18.

Instead of:

Bugfixes:

- Installation on Windows.
- Fixed warnings for a dependency (async-saxophone for XML processing), which did not yet officially support Node.js 18.

So there is not way to distinguish a regular paragraph from a paragraph that introduces an item list.

Screenshot from 2023-07-21 08-34-40

This issue also exists in the real ReadThe Docs (e.g. https://docs.conan.io/2/tutorial/consuming_packages/cross_building_with_conan.html).

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.