Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added the ability to specify a pre-process function, enabling the inclusion of a custom function for data processing. #577

Closed
wants to merge 950 commits into from
This pull request is big! We’re only showing the most recent 250 commits.

Commits on Feb 1, 2023

  1. Merge pull request datopian#406 from flowershow/163-page-comments

    Closes datopian#163 
    
    New feat: Page comments / discussions
    
    ### Changes
    * Create components in core for giscus, utterances and disqus
    * Add configs in frontmatter and config.js
    * Core version bump 0.2.0
    * Add env variables ((netlify) for giscus
    * Create documentation
    khalilcodes authored Feb 1, 2023
    Configuration menu
    Copy the full SHA
    8f315a2 View commit details
    Browse the repository at this point in the history
  2. [packages/template,datopian#163][s]: add giscus json file

    Custom giscus.json file in site's root to restrict the domains that can load giscus with our repository's discussions.
    khalilcodes committed Feb 1, 2023
    Configuration menu
    Copy the full SHA
    b69e3e0 View commit details
    Browse the repository at this point in the history

Commits on Feb 3, 2023

  1. Configuration menu
    Copy the full SHA
    555357c View commit details
    Browse the repository at this point in the history
  2. [pkg/core,datopian#163][s]: add missing dependency for disqus

    add prop-types dependency as disqus-react fails to resolve module when creating new flowershow site.
    khalilcodes committed Feb 3, 2023
    Configuration menu
    Copy the full SHA
    43ee5ef View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    0a91f94 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    d7cf276 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    944fc8d View commit details
    Browse the repository at this point in the history

Commits on Feb 5, 2023

  1. Configuration menu
    Copy the full SHA
    80489a9 View commit details
    Browse the repository at this point in the history

Commits on Feb 6, 2023

  1. [packages/core,template;datopian#408][s]: site-wide toc v.2. with gro…

    …uping
    
    * basic grouping by 1st level content dir subfolders
    olayway authored Feb 6, 2023
    Configuration menu
    Copy the full SHA
    124e24e View commit details
    Browse the repository at this point in the history
  2. [/][s]: add build settings for netlify

    skip @netlify/plugin-nextjs (next-runtime) during build as we don't need it when using next export.
    https://github.com/netlify/next-runtime#use-with-next-export
    khalilcodes committed Feb 6, 2023
    Configuration menu
    Copy the full SHA
    1ee946f View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    9485871 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    1d62b10 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    4fe99c1 View commit details
    Browse the repository at this point in the history
  6. [packages/template-e2e,template;datopian#409][m]: fix test workflow

    - use nx target on template package to start the test webserver from within the `packages/template-e2e` folder (this is what caused errors in the workflow, as the server wouldn't start if using cd or npm run dev --prefix)
    olayway authored Feb 6, 2023
    Configuration menu
    Copy the full SHA
    9798d7f View commit details
    Browse the repository at this point in the history

Commits on Feb 14, 2023

  1. Configuration menu
    Copy the full SHA
    ccd893e View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    80a3d80 View commit details
    Browse the repository at this point in the history

Commits on Feb 15, 2023

  1. Configuration menu
    Copy the full SHA
    ffd2b6c View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    6699740 View commit details
    Browse the repository at this point in the history
  3. [/][xs]: update pnpm-lock

    olayway committed Feb 15, 2023
    Configuration menu
    Copy the full SHA
    2e6e938 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    0520975 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    6110a61 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    bab5787 View commit details
    Browse the repository at this point in the history

Commits on Feb 16, 2023

  1. [/][m]: update workspace deps

    olayway committed Feb 16, 2023
    Configuration menu
    Copy the full SHA
    a0db768 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    761cad2 View commit details
    Browse the repository at this point in the history

Commits on Feb 17, 2023

  1. Configuration menu
    Copy the full SHA
    d67cdde View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    99a33b0 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    2407bb8 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    46a6c28 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    c3d8ee3 View commit details
    Browse the repository at this point in the history
  6. add basic issue templates

    olayway committed Feb 17, 2023
    Configuration menu
    Copy the full SHA
    60f912e View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    8ca69ef View commit details
    Browse the repository at this point in the history

Commits on Feb 19, 2023

  1. Configuration menu
    Copy the full SHA
    657ef0b View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    d9c7414 View commit details
    Browse the repository at this point in the history

Commits on Feb 20, 2023

  1. Configuration menu
    Copy the full SHA
    ba21e28 View commit details
    Browse the repository at this point in the history

Commits on Feb 21, 2023

  1. Update index.md

    PhilippeduPreez authored Feb 21, 2023
    Configuration menu
    Copy the full SHA
    1050f4e View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    de9252f View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    3588a8e View commit details
    Browse the repository at this point in the history

Commits on Feb 24, 2023

  1. [pkg/core,site,datopian#120][s]: Remove navbar dropdown and frontpage…

    … edits
    
    * Remove navbar dropdown support
    * Bump core v0.3.2
    * Make images smaller in frontpage
    PhilippeduPreez authored Feb 24, 2023
    Configuration menu
    Copy the full SHA
    55a0a7d View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    68d4f05 View commit details
    Browse the repository at this point in the history

Commits on Feb 25, 2023

  1. [pkg/template,fix][s]: temp override conflicting peer dependencies

    * fix conflicts between next and contentlayer versions of @opentelemetry/api
    khalilcodes committed Feb 25, 2023
    Configuration menu
    Copy the full SHA
    fc4321b View commit details
    Browse the repository at this point in the history

Commits on Feb 26, 2023

  1. Configuration menu
    Copy the full SHA
    fedcf04 View commit details
    Browse the repository at this point in the history

Commits on Feb 27, 2023

  1. Configuration menu
    Copy the full SHA
    c5b25fc View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    d7a1389 View commit details
    Browse the repository at this point in the history
  3. Merge pull request datopian#440 from flowershow/386-Theme-switch

    Exporting Themeprovider from Core
    olayway authored Feb 27, 2023
    Configuration menu
    Copy the full SHA
    0d198b8 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    9ea0782 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    d6d8d03 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    ca7a691 View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    195ffba View commit details
    Browse the repository at this point in the history

Commits on Feb 28, 2023

  1. Configuration menu
    Copy the full SHA
    09446ca View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    aca92df View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    d9e1ee5 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    953083f View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    1f59d0b View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    299cadd View commit details
    Browse the repository at this point in the history

Commits on Mar 1, 2023

  1. Configuration menu
    Copy the full SHA
    acc5a8e View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    e811ddc View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    07f4401 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    aaea33f View commit details
    Browse the repository at this point in the history
  5. Merge pull request datopian#446 from flowershow/428-update-mermaid

    Update mermaid
    
    closes datopian#428 
    
    * Update mermaid in core `v10.0.1-rc.2`
    * create mermaid component in core
    * add `mdx-mermaid` plugin and mermaid component in template
    * remove `remark-code-extra` plugin
    khalilcodes authored Mar 1, 2023
    Configuration menu
    Copy the full SHA
    4608694 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    3a833e5 View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    b1c1f98 View commit details
    Browse the repository at this point in the history
  8. Configuration menu
    Copy the full SHA
    1dd5084 View commit details
    Browse the repository at this point in the history
  9. Configuration menu
    Copy the full SHA
    1e98321 View commit details
    Browse the repository at this point in the history
  10. Configuration menu
    Copy the full SHA
    e5c6e08 View commit details
    Browse the repository at this point in the history
  11. Configuration menu
    Copy the full SHA
    8d76529 View commit details
    Browse the repository at this point in the history
  12. Configuration menu
    Copy the full SHA
    963874a View commit details
    Browse the repository at this point in the history
  13. Merge pull request datopian#447 from flowershow/419-search-fix

    Update packages and fix search component
    closes datopian#419 
    
    * update all packages in core and template
    * refactor components in core - algolia, kbar and nav
    khalilcodes authored Mar 1, 2023
    Configuration menu
    Copy the full SHA
    ffa9dcd View commit details
    Browse the repository at this point in the history
  14. Configuration menu
    Copy the full SHA
    549c05a View commit details
    Browse the repository at this point in the history
  15. Configuration menu
    Copy the full SHA
    377d750 View commit details
    Browse the repository at this point in the history
  16. Configuration menu
    Copy the full SHA
    df1391a View commit details
    Browse the repository at this point in the history
  17. Configuration menu
    Copy the full SHA
    1a9f6c8 View commit details
    Browse the repository at this point in the history
  18. Configuration menu
    Copy the full SHA
    fec3785 View commit details
    Browse the repository at this point in the history
  19. Merge pull request datopian#442 from flowershow/297-extract-title-des…

    …cription
    
    Auto extract title and description from content
    closes datopian#297 
    
    * Add resolvers for title and description in computed fields - `contentlayer.config.ts`
    * Add package - https://github.com/remarkjs/strip-markdown
    * Handle repeating titles in `pages/[[...slug]].tsx`
    khalilcodes authored Mar 1, 2023
    Configuration menu
    Copy the full SHA
    7114369 View commit details
    Browse the repository at this point in the history
  20. Configuration menu
    Copy the full SHA
    8418ae5 View commit details
    Browse the repository at this point in the history

Commits on Mar 5, 2023

  1. Configuration menu
    Copy the full SHA
    3cb59ef View commit details
    Browse the repository at this point in the history

Commits on Mar 6, 2023

  1. Updated features (datopian#448)

    * [site/components][s]: Updated features
    PhilippeduPreez authored Mar 6, 2023
    Configuration menu
    Copy the full SHA
    225bab3 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    b36637b View commit details
    Browse the repository at this point in the history

Commits on Mar 7, 2023

  1. Configuration menu
    Copy the full SHA
    b8bdb62 View commit details
    Browse the repository at this point in the history
  2. [pkg/template,datopian#355][s]: add script dev dependencies

    * globby
    * prettier
    * esbuild-register
    khalilcodes committed Mar 7, 2023
    Configuration menu
    Copy the full SHA
    b4f53fd View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    6a63cac View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    e6b76a0 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    44599fb View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    8a4aa01 View commit details
    Browse the repository at this point in the history
  7. Custom page and layout tutorial (datopian#450)

    * [docs][xs]:Custom page and layout tutorial
    PhilippeduPreez authored Mar 7, 2023
    Configuration menu
    Copy the full SHA
    b8ef338 View commit details
    Browse the repository at this point in the history
  8. Configuration menu
    Copy the full SHA
    91862b2 View commit details
    Browse the repository at this point in the history
  9. Configuration menu
    Copy the full SHA
    39f3ba0 View commit details
    Browse the repository at this point in the history

Commits on Mar 9, 2023

  1. [packages/core][s]: extend public API

    - for use in custom Layouts
    olayway committed Mar 9, 2023
    Configuration menu
    Copy the full SHA
    19842b6 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    6370d9b View commit details
    Browse the repository at this point in the history

Commits on Mar 20, 2023

  1. Configuration menu
    Copy the full SHA
    a134101 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    6bc7200 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    57509b8 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    6f5bc5b View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    ec09da1 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    f032280 View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    2136ebb View commit details
    Browse the repository at this point in the history
  8. Merge pull request datopian#453 from flowershow/445-date-frontmatter

    Make date the default field in frontmatter
    olayway authored Mar 20, 2023
    Configuration menu
    Copy the full SHA
    35e6300 View commit details
    Browse the repository at this point in the history
  9. Configuration menu
    Copy the full SHA
    6aecafa View commit details
    Browse the repository at this point in the history
  10. Configuration menu
    Copy the full SHA
    488123b View commit details
    Browse the repository at this point in the history
  11. Configuration menu
    Copy the full SHA
    032716f View commit details
    Browse the repository at this point in the history
  12. Configuration menu
    Copy the full SHA
    4e803c1 View commit details
    Browse the repository at this point in the history
  13. Merge pull request datopian#454 from flowershow/355-generate-sitemap

    ### Summary
    
    This PR adds support for auto generating sitemaps in public folder if the `authorUrl` property is set in `config.mjs`
    
    ### Changes
    * Config file extension changed to `config.mjs` in `template` and `template-e2e`
    * Flowershow CLI updated to replace/create `config.mjs`
    * Add sitemap generation script
      * generates sitemap only if `authorUrl` present in config
    * Update search script
      * generates `search.json` only if using local search provider ie. kbar
    * Add dev dependencies - `globby`, `prettier`, `esbuild-register`
    * Add documentation @ [docs/sitemap](https://deploy-preview-454--spectacular-dragon-c1015c.netlify.app/docs/sitemap)
    olayway authored Mar 20, 2023
    Configuration menu
    Copy the full SHA
    c4ed6ed View commit details
    Browse the repository at this point in the history
  14. Configuration menu
    Copy the full SHA
    4914695 View commit details
    Browse the repository at this point in the history

Commits on Mar 21, 2023

  1. [packages/core][xs]: minor style adjustments

    - use named colors in Card and TableOfContents
    - replace fixed height and width in nav logo with class, so that it can
    - be referenced and adjusted
    olayway committed Mar 21, 2023
    Configuration menu
    Copy the full SHA
    0167dda View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    42f10f0 View commit details
    Browse the repository at this point in the history
  3. [.changeset][xs]: rm all template changesets

    - removing them as it's a mess and we haven't used them each time we
    made changes -> starting versioning now
    olayway committed Mar 21, 2023
    Configuration menu
    Copy the full SHA
    dcd80b3 View commit details
    Browse the repository at this point in the history
  4. [packages/template][xs]: add nav logo height

    - latest version of core has fixed height replaced with "nav-logo" class
    name, so that it can be easily adjusted by users in their projects
    olayway committed Mar 21, 2023
    Configuration menu
    Copy the full SHA
    c36fc89 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    f677248 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    9d9b142 View commit details
    Browse the repository at this point in the history
  7. [/][xs]: add changeset file

    olayway committed Mar 21, 2023
    Configuration menu
    Copy the full SHA
    0f2989e View commit details
    Browse the repository at this point in the history

Commits on Mar 23, 2023

  1. Configuration menu
    Copy the full SHA
    ae2bf0d View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    f59379c View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    dc51214 View commit details
    Browse the repository at this point in the history

Commits on Mar 24, 2023

  1. Configuration menu
    Copy the full SHA
    6e04357 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    5e7e206 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    f60ed3f View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    961659e View commit details
    Browse the repository at this point in the history

Commits on Mar 26, 2023

  1. Fix typos

    rdimaio committed Mar 26, 2023
    Configuration menu
    Copy the full SHA
    7267b8f View commit details
    Browse the repository at this point in the history

Commits on Mar 27, 2023

  1. Configuration menu
    Copy the full SHA
    a726d67 View commit details
    Browse the repository at this point in the history

Commits on Mar 29, 2023

  1. Remark wiki link refactor (datopian#467)

    ## Changes
    - `@flowershow/remark-wiki-link`
      - general code refactoring: tidying up, simplifying, using better naming etc.
      - disable passing markdown folder in plugin config -> export `getPermalinks` function, so that users (e.g. our template) can run it on their side and then use a standard config option `permalinks` to explicitly pass the permalinks list
      - extend tests coverage
      - refactor to TS
      - replace `mocha` with `jest`
    - `@flowershow/template`
      - import `getPermalinks` from `@flowershow/remark-wiki-link`, generate the permalinks list from the content folder on the template side (in `contentlayer.config.ts`), and pass it explicitly to the plugin instead of passing the path to markdown folder to it
    
    ## Notes
    I think there should be a way of using `micromark` extensions only - our `html` and `syntax` -  but maybe I'm missing sth (still not quite getting all the different elements of the system and ecosystem...) and we actually need to use `syntax` extension for `micromark` combined with `fromMarkdown` and `toMarkdown` for `mdast-util-from-markdown`. I actually started by writing `syntax` and `html` and both of them used in `micromark` do their job, i.e. they correctly convert md to html (see tests in `remark-wiki-link/tests/micromarkExtensionWikiLink.spec.ts` - mirror tests of `fromMarkdown`). But I couldn't make it work without using `fromMarkdown` - **which is almost identical to `html`** - and `toMarkdown`.
    For reference see also `remark-wiki-link/src/lib/remarkWikiLink.ts` file.
    olayway authored Mar 29, 2023
    Configuration menu
    Copy the full SHA
    970285b View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    4bc8f92 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    224e655 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    39fe4b5 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    71110e2 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    0db40da View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    91cab25 View commit details
    Browse the repository at this point in the history
  8. Configuration menu
    Copy the full SHA
    0dbc56d View commit details
    Browse the repository at this point in the history
  9. Configuration menu
    Copy the full SHA
    23b3cd3 View commit details
    Browse the repository at this point in the history
  10. [/][xs]: add changeset file

    olayway committed Mar 29, 2023
    Configuration menu
    Copy the full SHA
    ffa9766 View commit details
    Browse the repository at this point in the history
  11. Configuration menu
    Copy the full SHA
    aa8a496 View commit details
    Browse the repository at this point in the history
  12. Configuration menu
    Copy the full SHA
    866d97d View commit details
    Browse the repository at this point in the history
  13. [core][xs]: minor toolips fix

    olayway committed Mar 29, 2023
    Configuration menu
    Copy the full SHA
    52e91f9 View commit details
    Browse the repository at this point in the history
  14. [core][xs]: bump version

    olayway committed Mar 29, 2023
    Configuration menu
    Copy the full SHA
    1a9468e View commit details
    Browse the repository at this point in the history
  15. Configuration menu
    Copy the full SHA
    bbe732d View commit details
    Browse the repository at this point in the history

Commits on Mar 30, 2023

  1. Configuration menu
    Copy the full SHA
    d80f6b6 View commit details
    Browse the repository at this point in the history

Commits on Mar 31, 2023

  1. markdowndb package v.1. (datopian#470)

    Related to datopian#465 
    
    ## Changes
    - created a new package in `packages/markdowndb`
    - copied code from `datahub-next/lib/markdowndb`
    olayway authored Mar 31, 2023
    Configuration menu
    Copy the full SHA
    f73455f View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    0981c47 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    fb819fa View commit details
    Browse the repository at this point in the history
  4. [core][xs]: version bump

    olayway committed Mar 31, 2023
    Configuration menu
    Copy the full SHA
    9c45552 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    5fda68c View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    2c67706 View commit details
    Browse the repository at this point in the history
  7. extend package json

    olayway committed Mar 31, 2023
    Configuration menu
    Copy the full SHA
    efd1c60 View commit details
    Browse the repository at this point in the history
  8. Configuration menu
    Copy the full SHA
    8a8bf51 View commit details
    Browse the repository at this point in the history
  9. Configuration menu
    Copy the full SHA
    932fc2f View commit details
    Browse the repository at this point in the history

Commits on Apr 4, 2023

  1. MarkdownDB: extracting links plus refactor (datopian#472)

    Closes #473 
    
    ## Motivation
    As we plan to replace Contentlayer with our MarkdownDB package, we need a solid base upon which we can build a full-fledged "content-layer" solution. As the code in its current state is pretty hard to reason about and manipulate and is rather weakly typed, the development of any new functionality on top of it would only make it harder and harder to engineer, adjust and test. This PR aims to make the development of new features easier and (because of stronger typing) less error-prone.
    
    Note, there is still quite a lot of room for improvement - TODOs comments were left in the code but will probably be resolved after further discussions on implementation design.
    
    ## Changes
    - `markdowndb.ts` cleaned up and refactored. Most notably:
      - tables creation (and deletion) logic moved out to `schema.ts` and bound with relevant classes corresponding to tables (see below)
      - wrapped raw batch inserts on knex db with class methods to prevent SQL errors in the first place, instead of debugging them after they occur
      - `indexFolder` bound with MarkdownDB class as a method
      - removed duplication of db initialization -> there is only one `init` method on `MarkdownDB` now
      - replaced ambiguous `query` method with `getFiles`
        - commented out querying by folder (?) for now as I'm not sure if it's even needed, at least not in the current form
      - added `getFileByUrl` and `getFileById` method to retrieve single file file from the db (e.g. for finding its backlinks)
      - added `getLinks` method which supports querying back- or forward links
      - removed `types.ts` classes in `schema.ts` can also by used as types. Other types like e.g. `DatabaseQuery` moved directly to method signature, as they are striclty bound with it and it's not needed to have it in a separate file (there is no other use case for it)
      - cleaned up and extended tests of `markdowndb` lib and split into smaller unit tests grouped by tested functionalities
    - `schema.ts` created with four classes: `File`, `Link`, `Tag` and `FileTag`
      - each class is now a representation of a table, i.e. `files`, `links`, `tags`, `file_tags` and so it describes the fields (columns) existent on each table and has methods for creating a table, deleting it and batch-inserting data to it
      - it is a single source of truth about tables and data types stored in them,
    - `utils` folder created with `recursiveWalkDir.ts`, `parseFile.ts` and `extractWikiLinks.ts` each with its own, separate test suite 
    - stronger typing
    olayway authored Apr 4, 2023
    Configuration menu
    Copy the full SHA
    50f8c21 View commit details
    Browse the repository at this point in the history
  2. [remark-wiki-link][s]: add extra check to tests

    + minor fix in in pdf embeds
    olayway committed Apr 4, 2023
    Configuration menu
    Copy the full SHA
    d49d619 View commit details
    Browse the repository at this point in the history

Commits on Apr 6, 2023

  1. MarkdownDB fixes (datopian#475)

    ## Changes
    
    **`package.json`**
    - added missing dependencies
    - added `mddb` command that executes folder indexing (see `/src/bin/index.js`) - will probably be replaced with a full-blown CLI in the future
    
    **`/lib`**
    - introduced the distinction between simple object interfaces (e.g. `File`) from instances of database rows (e.g. `MddbFile`) represented by `Mddb...` classes that implement additional methods and in general should only be instantiated from records returned from the database
    - added a simple validation function that checks if some of the objects in an array have the same value of a given property
      - added this check in `batchInsert` methods on `Mddb...` classes to catch duplicate values in JS and display objects that would cause SQL errors (which are impossible to debug 😅)
      - maybe we could add some validation package in the future, but for now this should do
    
    \+ Bunch of other fixes caught after testing with `datahub-next`
    olayway authored Apr 6, 2023
    Configuration menu
    Copy the full SHA
    3f9e548 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    f6a0b64 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    99f8d34 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    714d580 View commit details
    Browse the repository at this point in the history

Commits on Apr 23, 2023

  1. Switch to MarkdownDB and md rendering pipeline (datopian#483)

    ## Changes
    
    ### Primary changes
    
    - removed `contentlayer` and `next-contentlayer` packages, along with the `contentlayer.config` file
    - created a temporary solution for contentlayer's computed fields in `lib/computeFields.ts` module (no distinction between document types; all fields will be returned for all pages, even if `null`)
    - installed `@flowershow/markdowndb` package as well as:
      - added `lib/mddb.mjs` with db connection creation module
      - added `mddb` script in `package.json`
    - copied over `lib/markdown.ts` from `datahub-next`
    
    ### Secondary changes
    
    - `type` frontmatter fields temporarily replaced with:
      - `layout: blog` for specifying layout, which was previously set as a field on `Blog` document type in `contentlayer.config`
      - `mddb.getFiles({ folder: `blog` })` for fetching e.g. on `/blog` page
    - replaced `content/index.md` document with `pages/index.tsx` page, and also:
      - moved all components that were imported there from `/site/components` (linked to `/components/custom`) back to root `/components` folder
      - created components for the rest of the content on the index page (e.g. `CloudPublishingSteps.tsx`) to make it cleaner
    - replaced `content/blog/index.md` document with `pages/blog.tsx` page
    - replaced **optional** catch-all page `[[...slug]].tsx` with **regular** catch-all `[...slug].tsx`, so that we can have `pages/index.tsx` page
    - copied over `DRD` page (under name `MdxPage`) from `datahub-next`
    - added basic typing for props returned by `getStaticProps` and required by corresponding page components and the custom `_app.tsx` page (but would be nice to work more on it), and as a result/related:
      - since `.tsx` pages are not indexed into markdowndb and so they don't have metadata, they now need to explicitly return metadata in `meta` property by their `getStaticProps` function (see `/pages/blog.tsx` as an example)
    - moved any `show-X` boolean values resolutions to `computeFields` (this should have been done even with contentlayer)
    - removed `getters` folder
    
    **Also (in docs)**:
    - hid tutorial and docs page on blogs for now as they need to be re-read and adjusted
    - hid doc page on `mdx` as it's invalid in most part
    - hid tutorial and docs page on custom layouts for now as they need to be re-read and adjusted
    
    ## Deprecated features
    - document types and hence:
      - `type` frontmatter field and importing all files of a given type
      - frontmatter fields validation
    - auto-extracting title (TBC can't remember why)
    - page "getters" 
    - `contentInclude` and `contentExclude` config fields for including/excluding content folders
    - `import` and `export` statements in markdown documents
    - hover-over tooltips (didn't have time to fix them + probably would be nice to implement them in a better way anyway)
    
    ## TBD
    - not sure why but I had to import `React` in all the pages and components, otherwise an error about not-configured loader would show up - not sure how this relates to the changes in this PR
    - adjust tests if needed (not sure)
    
    ## Changes required/suggested to @flowershow/markdowndb
    - implement document types in `@flowershow/markdowndb` with specific computed fields, helper methods (e.g. `BlogType.getAuthors()`) and frontmatter validation
    - support importing all documents of a given type (e.g. mddb.getFiles({ type: "Blog" }))
    - config file for `@flowershow/markdowndb`package with e.g. `contentExclude` and `contentInclude` contentlayer's counterparts
    olayway authored Apr 23, 2023
    Configuration menu
    Copy the full SHA
    e0f21bd View commit details
    Browse the repository at this point in the history

Commits on Apr 24, 2023

  1. It seems this markdowndb version (0.1.0) was never merged to main, ev…

    …en though it has been published to npm and tagged. This temporary branch - markdowndbv0.1.0 - was created only to get these chenges on main.
    olayway committed Apr 24, 2023
    Configuration menu
    Copy the full SHA
    6e75757 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    34770f3 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    c64e835 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    c4a6b3e View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    0d6adc5 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    0888c8a View commit details
    Browse the repository at this point in the history
  7. [packages/template][xs]:temp use fixed markdowndb version

    - workaround solution to force pnpm to use compiled version of the
    package, as otherwise running it's mddb bin file (see package.json of
    markdowndb) in npm script in the template would result in errors
    olayway committed Apr 24, 2023
    Configuration menu
    Copy the full SHA
    fba925d View commit details
    Browse the repository at this point in the history

Commits on Apr 26, 2023

  1. Configuration menu
    Copy the full SHA
    5b78aaf View commit details
    Browse the repository at this point in the history
  2. [template/package.json][xs]: temporarily force next v13.3.0

    - temporary solution to `SyntaxError: Named export 'useRouter' not
    found` in versions 13.3.1+
    - see this issue vercel/next.js#48801
    olayway committed Apr 26, 2023
    Configuration menu
    Copy the full SHA
    369d560 View commit details
    Browse the repository at this point in the history
  3. [cli/Installer][xs]: rm pages/index.tsx cloned from the template

    - after switching to MarkdownDB from Contentlayer we replaced index.mdx
    file with pages/index.tsx file for our home page, which results in users
    having our Flowershow home page displayed as well
    - this is a temporary solution, in the future we should finally create a
    separate project for our Flowershow website that would be built off of
    the clean Flowershow template (without e.g. pages/index.tsx)
    olayway committed Apr 26, 2023
    Configuration menu
    Copy the full SHA
    686d0e1 View commit details
    Browse the repository at this point in the history
  4. [/][xs]: add changesets

    olayway committed Apr 26, 2023
    Configuration menu
    Copy the full SHA
    f136048 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    edb9797 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    c56a7ea View commit details
    Browse the repository at this point in the history
  7. [site/docs][xs]: rm README.dev - we have all the up to date contributors

    docs in `/docs/contributors.md`
    olayway committed Apr 26, 2023
    Configuration menu
    Copy the full SHA
    7ba014a View commit details
    Browse the repository at this point in the history
  8. Docs updates after switch to MarkdownDB (datopian#492)

    All docs pages reviewed and updated to be in line with current Flowershow version, which uses MarkdownDB.
    Comprehensive list of changes in issue datopian#484.
    olayway authored Apr 26, 2023
    Configuration menu
    Copy the full SHA
    f3d3a60 View commit details
    Browse the repository at this point in the history
  9. Configuration menu
    Copy the full SHA
    2276420 View commit details
    Browse the repository at this point in the history
  10. [template/public][xs]: add avatarplaceholder directly to git

    - rm it from git lFS
    olayway committed Apr 26, 2023
    Configuration menu
    Copy the full SHA
    4a5dc8c View commit details
    Browse the repository at this point in the history
  11. Configuration menu
    Copy the full SHA
    f1f2c2b View commit details
    Browse the repository at this point in the history
  12. Configuration menu
    Copy the full SHA
    8557a06 View commit details
    Browse the repository at this point in the history
  13. [scripts/symlink-site][xs]: rm symlinking custom components

    - importing custom components in MD is no longer supported in Flowershow
    v.2 so this is not needed
    olayway committed Apr 26, 2023
    Configuration menu
    Copy the full SHA
    188aedc View commit details
    Browse the repository at this point in the history
  14. [/][xs]: refresh pnpm lock

    olayway committed Apr 26, 2023
    Configuration menu
    Copy the full SHA
    5fa723e View commit details
    Browse the repository at this point in the history
  15. [template][s]: temp add mddb indexing script back

    - when running content folder indexing via mddb command of
    @flowershow/markdowndb build on Netlify would fail with this error:
    
    ```
    Error: Command failed: npm run mddb
        at checkExecSyncError (node:child_process:826:11)
        ...
    ```
    
    with status 13: Unfinished Top-Level Await
    olayway committed Apr 26, 2023
    Configuration menu
    Copy the full SHA
    2f49d85 View commit details
    Browse the repository at this point in the history

Commits on Apr 27, 2023

  1. Configuration menu
    Copy the full SHA
    71ef6f2 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    78c67b9 View commit details
    Browse the repository at this point in the history
  3. [/][xs]: refresh pnpm-lock

    olayway committed Apr 27, 2023
    Configuration menu
    Copy the full SHA
    60ce52b View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    e235c68 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    fe29a2e View commit details
    Browse the repository at this point in the history
  6. test

    olayway committed Apr 27, 2023
    Configuration menu
    Copy the full SHA
    817333c View commit details
    Browse the repository at this point in the history

Commits on May 3, 2023

  1. Configuration menu
    Copy the full SHA
    df602b8 View commit details
    Browse the repository at this point in the history

Commits on May 12, 2023

  1. Configuration menu
    Copy the full SHA
    85a5668 View commit details
    Browse the repository at this point in the history
  2. [packages/cli][s]:use datopian/flowershow-template

    - we've migrated the template to a separate repo so that users of the
    flowershow obsidian plugin can clone it to their own repos (and not
    clone the whole monorepo)
    olayway committed May 12, 2023
    Configuration menu
    Copy the full SHA
    5a40bcd View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    537f0ef View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    8126079 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    0c95272 View commit details
    Browse the repository at this point in the history
  6. Revert "test"

    This reverts commit 817333c.
    olayway committed May 12, 2023
    Configuration menu
    Copy the full SHA
    7eca9ee View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    c5b0305 View commit details
    Browse the repository at this point in the history
  8. Configuration menu
    Copy the full SHA
    65c5868 View commit details
    Browse the repository at this point in the history
  9. Configuration menu
    Copy the full SHA
    21643f3 View commit details
    Browse the repository at this point in the history
  10. Configuration menu
    Copy the full SHA
    fc2e2a9 View commit details
    Browse the repository at this point in the history
  11. Configuration menu
    Copy the full SHA
    581f5e6 View commit details
    Browse the repository at this point in the history
  12. Configuration menu
    Copy the full SHA
    f896964 View commit details
    Browse the repository at this point in the history
  13. Configuration menu
    Copy the full SHA
    4d3e93f View commit details
    Browse the repository at this point in the history
  14. Configuration menu
    Copy the full SHA
    88d1f13 View commit details
    Browse the repository at this point in the history
  15. Configuration menu
    Copy the full SHA
    29c5c24 View commit details
    Browse the repository at this point in the history
  16. Configuration menu
    Copy the full SHA
    8d24f7b View commit details
    Browse the repository at this point in the history
  17. Configuration menu
    Copy the full SHA
    99555db View commit details
    Browse the repository at this point in the history
  18. Configuration menu
    Copy the full SHA
    0e191fa View commit details
    Browse the repository at this point in the history
  19. Configuration menu
    Copy the full SHA
    8581de0 View commit details
    Browse the repository at this point in the history
  20. [.github/workflows][xs]: don't run workspace lint

    - since the template is now a submodule, it will throw an error, saing
    that packages/template doesn't belong to any projects
    olayway committed May 12, 2023
    Configuration menu
    Copy the full SHA
    f227e68 View commit details
    Browse the repository at this point in the history
  21. Configuration menu
    Copy the full SHA
    ada9fe1 View commit details
    Browse the repository at this point in the history
  22. Configuration menu
    Copy the full SHA
    dc5d419 View commit details
    Browse the repository at this point in the history

Commits on May 15, 2023

  1. [/][s]: rm /site folder

    - all Flowershow website content has been moved to https://github.com/datopian/flowershow-app
    olayway committed May 15, 2023
    Configuration menu
    Copy the full SHA
    2acab13 View commit details
    Browse the repository at this point in the history

Commits on May 16, 2023

  1. Wiki links fixes (datopian#504)

    ## Changes
    - don't hyphentate or lowercase src/hrefs by default
    - add ignore patterns option to `getPermalinks` util function and allow passing custom paths -> permalinks converter function
    - fix regex patterns
    - adjust and extend tests
    olayway authored May 16, 2023
    Configuration menu
    Copy the full SHA
    5ef0262 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    7ca0f88 View commit details
    Browse the repository at this point in the history

Commits on May 23, 2023

  1. Configuration menu
    Copy the full SHA
    07dcf38 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    84acc30 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    54c1338 View commit details
    Browse the repository at this point in the history

Commits on Jun 8, 2023

  1. Configuration menu
    Copy the full SHA
    a13672b View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    fa7b0af View commit details
    Browse the repository at this point in the history

Commits on Jun 9, 2023

  1. Configuration menu
    Copy the full SHA
    79b106e View commit details
    Browse the repository at this point in the history

Commits on Jun 12, 2023

  1. Configuration menu
    Copy the full SHA
    cd3e125 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    ae47a3f View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    e9c00e7 View commit details
    Browse the repository at this point in the history

Commits on Jun 13, 2023

  1. Configuration menu
    Copy the full SHA
    e00c956 View commit details
    Browse the repository at this point in the history

Commits on Jun 14, 2023

  1. Configuration menu
    Copy the full SHA
    a36f373 View commit details
    Browse the repository at this point in the history

Commits on Jun 15, 2023

  1. Configuration menu
    Copy the full SHA
    aa591a8 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    2b16ecc View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    359c4cf View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    cd26c77 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    d143056 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    73f8ff0 View commit details
    Browse the repository at this point in the history

Commits on Jun 19, 2023

  1. Configuration menu
    Copy the full SHA
    f7e4ff2 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    4dfc6f8 View commit details
    Browse the repository at this point in the history

Commits on Jun 21, 2023

  1. Configuration menu
    Copy the full SHA
    9e42c0b View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    86e335b View commit details
    Browse the repository at this point in the history

Commits on Jun 22, 2023

  1. Configuration menu
    Copy the full SHA
    152b528 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    2ca757f View commit details
    Browse the repository at this point in the history

Commits on Jul 13, 2023

  1. Bump semver from 6.3.0 to 6.3.1

    Bumps [semver](https://github.com/npm/node-semver) from 6.3.0 to 6.3.1.
    - [Release notes](https://github.com/npm/node-semver/releases)
    - [Changelog](https://github.com/npm/node-semver/blob/v6.3.1/CHANGELOG.md)
    - [Commits](npm/node-semver@v6.3.0...v6.3.1)
    
    ---
    updated-dependencies:
    - dependency-name: semver
      dependency-type: indirect
    ...
    
    Signed-off-by: dependabot[bot] <support@github.com>
    dependabot[bot] authored Jul 13, 2023
    Configuration menu
    Copy the full SHA
    5ddf450 View commit details
    Browse the repository at this point in the history

Commits on Jul 14, 2023

  1. Merge pull request datopian#535 from datopian/dependabot/npm_and_yarn…

    …/semver-6.3.1
    
    Bump semver from 6.3.0 to 6.3.1
    anuveyatsu authored Jul 14, 2023
    Configuration menu
    Copy the full SHA
    4aa0acb View commit details
    Browse the repository at this point in the history

Commits on Aug 4, 2023

  1. Configuration menu
    Copy the full SHA
    0b3df9e View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    359e288 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    87695d4 View commit details
    Browse the repository at this point in the history
  4. [/][xs]: git rm .gitmodules

    olayway committed Aug 4, 2023
    Configuration menu
    Copy the full SHA
    6358242 View commit details
    Browse the repository at this point in the history

Commits on Aug 10, 2023

  1. Configuration menu
    Copy the full SHA
    64412b2 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    04d0d37 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    8a3e69e View commit details
    Browse the repository at this point in the history

Commits on Aug 14, 2023

  1. Configuration menu
    Copy the full SHA
    9dc6cfc View commit details
    Browse the repository at this point in the history

Commits on Sep 6, 2023

  1. Typo fix in README

    rdimaio authored Sep 6, 2023
    Configuration menu
    Copy the full SHA
    9083190 View commit details
    Browse the repository at this point in the history

Commits on Sep 11, 2023

  1. Merge pull request datopian#559 from rdimaio/patch-1

    Typo fix in README
    anuveyatsu authored Sep 11, 2023
    Configuration menu
    Copy the full SHA
    32dad51 View commit details
    Browse the repository at this point in the history

Commits on Sep 16, 2023

  1. Configuration menu
    Copy the full SHA
    00ab559 View commit details
    Browse the repository at this point in the history

Commits on Sep 19, 2023

  1. Merge pull request datopian#561 from nosovk/patch-1

    update actions version and bump nodejs to current lts
    Gutts-n authored Sep 19, 2023
    Configuration menu
    Copy the full SHA
    6a1af07 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    1a62062 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    9334d3e View commit details
    Browse the repository at this point in the history

Commits on Oct 4, 2023

  1. Configuration menu
    Copy the full SHA
    1798de9 View commit details
    Browse the repository at this point in the history

Commits on Oct 5, 2023

  1. Configuration menu
    Copy the full SHA
    1ef517f View commit details
    Browse the repository at this point in the history

Commits on Oct 6, 2023

  1. Configuration menu
    Copy the full SHA
    30490fb View commit details
    Browse the repository at this point in the history

Commits on Oct 9, 2023

  1. Merge pull request datopian#573 from datopian/fix/npm-i-error

    Fix flowershow install failing
    Gutts-n authored Oct 9, 2023
    Configuration menu
    Copy the full SHA
    3bc5229 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    196b477 View commit details
    Browse the repository at this point in the history

Commits on Oct 11, 2023

  1. Merge pull request datopian#564 from siam1113/563-fix-footer-position

    🛠️fix: footer position for page with short content
    rufuspollock authored Oct 11, 2023
    Configuration menu
    Copy the full SHA
    ba922ab View commit details
    Browse the repository at this point in the history

Commits on Oct 18, 2023

  1. Added the ability to specify a pre-process function, enabling the inc…

    …lusion of a custom function for data processing.
    mohamedsalem401 committed Oct 18, 2023
    Configuration menu
    Copy the full SHA
    f59b387 View commit details
    Browse the repository at this point in the history