couchbase-orm 2.0.4 → 2.0.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (45) hide show
  1. checksums.yaml +4 -4
  2. data/.github/workflows/deploy.yml +45 -0
  3. data/.github/workflows/test.yml +18 -13
  4. data/README.md +12 -0
  5. data/couchbase-orm.gemspec +2 -2
  6. data/docusaurus/.gitignore +20 -0
  7. data/docusaurus/README.md +41 -0
  8. data/docusaurus/babel.config.js +3 -0
  9. data/docusaurus/docs/tutorial-ruby-couchbase-orm/01-introduction.md +49 -0
  10. data/docusaurus/docs/tutorial-ruby-couchbase-orm/02-installation.md +108 -0
  11. data/docusaurus/docs/tutorial-ruby-couchbase-orm/03-defining-models.md +239 -0
  12. data/docusaurus/docs/tutorial-ruby-couchbase-orm/04-querying.md +154 -0
  13. data/docusaurus/docs/tutorial-ruby-couchbase-orm/05-persistence.md +93 -0
  14. data/docusaurus/docs/tutorial-ruby-couchbase-orm/06-associations-and-validations.md +236 -0
  15. data/docusaurus/docs/tutorial-ruby-couchbase-orm/07-sqlpp-queries.md +180 -0
  16. data/docusaurus/docs/tutorial-ruby-couchbase-orm/08-views.md +158 -0
  17. data/docusaurus/docs/tutorial-ruby-couchbase-orm/09-nested-documents.md +138 -0
  18. data/docusaurus/docs/tutorial-ruby-couchbase-orm/10-enums.md +91 -0
  19. data/docusaurus/docs/tutorial-ruby-couchbase-orm/11-encryption.md +114 -0
  20. data/docusaurus/docs/tutorial-ruby-couchbase-orm/12-logging.md +48 -0
  21. data/docusaurus/docs/tutorial-ruby-couchbase-orm/13-troubleshooting.md +41 -0
  22. data/docusaurus/docs/tutorial-ruby-couchbase-orm/_category_.json +8 -0
  23. data/docusaurus/docusaurus.config.ts +122 -0
  24. data/docusaurus/package-lock.json +14540 -0
  25. data/docusaurus/package.json +47 -0
  26. data/docusaurus/sidebars.ts +31 -0
  27. data/docusaurus/src/components/HomepageFeatures/index.tsx +69 -0
  28. data/docusaurus/src/components/HomepageFeatures/styles.module.css +11 -0
  29. data/docusaurus/src/css/custom.css +30 -0
  30. data/docusaurus/src/pages/index.module.css +23 -0
  31. data/docusaurus/src/pages/index.tsx +43 -0
  32. data/docusaurus/src/pages/markdown-page.md +7 -0
  33. data/docusaurus/static/.nojekyll +0 -0
  34. data/docusaurus/static/CNAME +1 -0
  35. data/docusaurus/static/img/familiar.svg +1 -0
  36. data/docusaurus/static/img/fast.svg +1 -0
  37. data/docusaurus/static/img/logo.svg +1 -0
  38. data/docusaurus/static/img/undraw_docusaurus_mountain.svg +171 -0
  39. data/docusaurus/static/img/undraw_docusaurus_react.svg +170 -0
  40. data/docusaurus/static/img/undraw_docusaurus_tree.svg +40 -0
  41. data/docusaurus/tsconfig.json +7 -0
  42. data/lib/couchbase-orm/types/date_time.rb +2 -1
  43. data/lib/couchbase-orm/utilities/query_helper.rb +1 -1
  44. data/lib/couchbase-orm/version.rb +1 -1
  45. metadata +43 -10
@@ -0,0 +1,122 @@
1
+ import { themes as prismThemes } from 'prism-react-renderer';
2
+ import type { Config } from '@docusaurus/types';
3
+ import type * as Preset from '@docusaurus/preset-classic';
4
+
5
+ const config: Config = {
6
+ title: 'Ruby Couchbase ORM',
7
+ tagline: 'Quickstart guide for Ruby Couchbase ORM',
8
+ favicon: 'img/logo.svg',
9
+
10
+ // Set the production url of your site here
11
+ url: 'https://ruby-cb-orm.com',
12
+ // Set the /<baseUrl>/ pathname under which your site is served
13
+ // For GitHub pages deployment, it is often '/<projectName>/'
14
+ baseUrl: '/',
15
+
16
+ // GitHub pages deployment config.
17
+ // If you aren't using GitHub pages, you don't need these.
18
+ organizationName: 'couchbase-examples', // Usually your GitHub org/user name.
19
+ projectName: 'ruby-couchbase-orm-quickstart', // Usually your repo name.
20
+ trailingSlash: false,
21
+
22
+ onBrokenLinks: 'warn', // TODO: 'throw' when all links are fixed
23
+ onBrokenMarkdownLinks: 'warn',
24
+
25
+ // Even if you don't use internationalization, you can use this field to set
26
+ // useful metadata like html lang. For example, if your site is Chinese, you
27
+ // may want to replace "en" with "zh-Hans".
28
+ i18n: {
29
+ defaultLocale: 'en',
30
+ locales: ['en'],
31
+ },
32
+
33
+ presets: [
34
+ [
35
+ 'classic',
36
+ {
37
+ docs: {
38
+ sidebarPath: require.resolve('./sidebars.ts'),
39
+ // Please change this to your repo.
40
+ // Remove this to remove the "edit this page" links.
41
+ editUrl: `https://github.com/couchbase-examples/ruby-couchbase-orm-quickstart/tree/docs/docusaurus/docusaurus/docs`,
42
+ },
43
+ theme: {
44
+ customCss: require.resolve('./src/css/custom.css'),
45
+ },
46
+ } satisfies Preset.Options,
47
+ ],
48
+ ],
49
+
50
+ themeConfig: {
51
+ // Replace with your project's social card
52
+ image: 'img/docusaurus-social-card.jpg',
53
+ navbar: {
54
+ title: 'Ruby Couchbase ORM',
55
+ logo: {
56
+ alt: 'Ruby Couchbase ORM Tutorial Logo',
57
+ src: 'img/logo.svg',
58
+ },
59
+ items: [
60
+ {
61
+ type: 'docSidebar',
62
+ sidebarId: 'tutorialSidebar',
63
+ position: 'left',
64
+ label: 'Tutorial',
65
+ },
66
+ {
67
+ href: 'https://github.com/Couchbase-Ecosystem/ruby-orm',
68
+ label: 'GitHub',
69
+ position: 'right',
70
+ },
71
+ ],
72
+ },
73
+ footer: {
74
+ style: 'dark',
75
+ links: [
76
+ {
77
+ title: 'Docs',
78
+ items: [
79
+ {
80
+ label: 'Tutorial',
81
+ to: '/docs/intro',
82
+ },
83
+ ],
84
+ },
85
+ {
86
+ title: 'Community',
87
+ items: [
88
+ {
89
+ label: 'Stack Overflow',
90
+ href: 'https://stackoverflow.com/questions/tagged/couchbase',
91
+ },
92
+ {
93
+ label: 'Discord',
94
+ href: 'https://bit.ly/3JGCeUg',
95
+ },
96
+ {
97
+ label: 'Twitter',
98
+ href: 'https://x.com/couchbase',
99
+ },
100
+ ],
101
+ },
102
+ {
103
+ title: 'More',
104
+ items: [
105
+
106
+ {
107
+ label: 'GitHub',
108
+ href: 'https://github.com/Couchbase-Ecosystem/couchbase-ruby-orm',
109
+ },
110
+ ],
111
+ },
112
+ ],
113
+ copyright: `Copyright © ${new Date().getFullYear()} Couchbase, Inc. Licensed under the Apache License, Version 2.0.`,
114
+ },
115
+ prism: {
116
+ theme: prismThemes.github,
117
+ darkTheme: prismThemes.dracula,
118
+ },
119
+ } satisfies Preset.ThemeConfig,
120
+ };
121
+
122
+ export default config;