Skip to content

Commit 1e8bbb9

Browse files
authored
Merge pull request #36 from i80and/DOP-4809
DOP-4809: Inline the mongodb/mongoid docs submodule into this repository
2 parents 5776316 + 5ff331a commit 1e8bbb9

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

57 files changed

+16554
-5
lines changed

.gitmodules

Lines changed: 0 additions & 4 deletions
This file was deleted.

mongoid

Lines changed: 0 additions & 1 deletion
This file was deleted.

source/.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
_build

source/Makefile

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
# Minimal makefile for Sphinx documentation
2+
#
3+
4+
# You can set these variables from the command line, and also
5+
# from the environment for the first two.
6+
SPHINXOPTS ?=
7+
SPHINXBUILD ?= sphinx-build
8+
SOURCEDIR = .
9+
BUILDDIR = _build
10+
11+
# Put it first so that "make" without argument is like "make help".
12+
help:
13+
@$(SPHINXBUILD) -M help "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O)
14+
15+
.PHONY: help Makefile
16+
17+
# Catch-all target: route all unknown targets to Sphinx using the new
18+
# "make mode" option. $(O) is meant as a shortcut for $(SPHINXOPTS).
19+
%: Makefile
20+
@$(SPHINXBUILD) -M $@ "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O)

source/README.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
Mongoid Documentation
2+
=================================
3+
4+
This subdirectory contains the high-level driver documentation, including
5+
tutorials and the reference.
6+
7+
To build the documentation locally for review, install `sphinx` and
8+
`sphinx-book-theme`, then execute `make html` in this directory:
9+
10+
pip install 'sphinx<4.3' sphinx-book-theme
11+
make html
12+
13+
Note: sphinx 4.3 is currently breaking when trying to render Mongoid
14+
documentation.

source/additional-resources.txt

Lines changed: 61 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,61 @@
1+
********************
2+
Additional Resources
3+
********************
4+
5+
.. default-domain:: mongodb
6+
7+
.. contents:: On this page
8+
:local:
9+
:backlinks: none
10+
:depth: 2
11+
:class: singlecol
12+
13+
This page lists some of the third-party guides and blog posts about Mongoid,
14+
as well as sample Mongoid applications. Additional resources for the driver
15+
are listed on the `respective driver page
16+
<https://mongodb.com/docs/ruby-driver/current/reference/additional-resources/>`_.
17+
18+
19+
Screencasts
20+
===========
21+
22+
- `RailsCasts: Mongoid (revised)
23+
<https://www.youtube.com/watch?v=L0RqU2MdqXU>`_
24+
25+
An overview of Mongoid, by Ryan Bates including the basics
26+
of setting up an app, querying for documents, adding embedded
27+
associations, overriding the id, and more.
28+
29+
- `Ruby on Rails Web Services and Integration with MongoDB, Week 3: Mongoid
30+
<https://www.youtube.com/watch?v=9LylgiMYsUM>`_
31+
32+
A detailed introduction to Mongoid and Ruby on Rails web services.
33+
34+
- `Create a search bar in Rails with Mongoid
35+
<https://www.youtube.com/watch?v=zusWR8jS5-A>`_
36+
37+
A Tutorial explaining how to implement text search with Mongoid.
38+
39+
40+
Articles
41+
========
42+
43+
- `A Simple Content Management System in Sinatra <https://www.sitepoint.com/a-simple-content-management-system-in-sinatra>`_
44+
45+
Building a content management application with Sinatra and Mongoid.
46+
47+
- `How To Create A Ruby API With Sinatra <https://x-team.com/blog/how-to-create-a-ruby-api-with-sinatra>`_
48+
49+
Creating a Sinatra API with Mongoid.
50+
51+
- `Converting an existing Ruby on Rails application to MongoDB <https://ibraheem.ca/posts/convert-rails-to-mongodb>`_
52+
53+
How to Convert an existing Ruby on Rails application to use MongoDB and Mongoid.
54+
55+
56+
Sample Applications
57+
===================
58+
59+
- `Mongoid Demo <https://github.com/mongoid/mongoid-demo>`_
60+
61+
A repository containing sample applications using Mongoid.

source/conf.py

Lines changed: 57 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,57 @@
1+
# Configuration file for the Sphinx documentation builder.
2+
#
3+
# This file only contains a selection of the most common options. For a full
4+
# list see the documentation:
5+
# https://www.sphinx-doc.org/en/master/usage/configuration.html
6+
7+
# -- Path setup --------------------------------------------------------------
8+
9+
# If extensions (or modules to document with autodoc) are in another directory,
10+
# add these directories to sys.path here. If the directory is relative to the
11+
# documentation root, use os.path.abspath to make it absolute, like shown here.
12+
#
13+
# import os
14+
# import sys
15+
# sys.path.insert(0, os.path.abspath('.'))
16+
17+
18+
# -- Project information -----------------------------------------------------
19+
20+
project = 'Mongoid'
21+
copyright = '2021, MongoDB'
22+
23+
24+
# -- General configuration ---------------------------------------------------
25+
26+
# Add any Sphinx extension module names here, as strings. They can be
27+
# extensions coming with Sphinx (named 'sphinx.ext.*') or your custom
28+
# ones.
29+
extensions = [
30+
]
31+
32+
# Add any paths that contain templates here, relative to this directory.
33+
templates_path = ['_templates']
34+
35+
# List of patterns, relative to source directory, that match files and
36+
# directories to ignore when looking for source files.
37+
# This pattern also affects html_static_path and html_extra_path.
38+
exclude_patterns = ['_build', 'Thumbs.db', '.DS_Store']
39+
40+
41+
# -- Options for HTML output -------------------------------------------------
42+
43+
# The theme to use for HTML and HTML Help pages. See the documentation for
44+
# a list of builtin themes.
45+
#
46+
html_theme = 'alabaster'
47+
48+
# Add any paths that contain custom static files (such as style sheets) here,
49+
# relative to this directory. They are copied after the builtin static files,
50+
# so a file named "default.css" will overwrite the builtin "default.css".
51+
html_static_path = ['_static']
52+
53+
source_suffix = {
54+
'.txt': 'restructuredtext',
55+
}
56+
57+
html_theme = 'sphinx_book_theme'

source/contributing.txt

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
.. _contributing:
2+
3+
************
4+
Contributing
5+
************
6+
7+
.. default-domain:: mongodb
8+
9+
.. toctree::
10+
:titlesonly:
11+
12+
contributing/code-documentation
13+
contributing/contributing-guidelines
14+
15+
Overview
16+
--------
17+
18+
Learn how to contribute to the Mongoid repository in the following sections:
19+
20+
- :ref:`Code Documentation <code-documentation>`
21+
- :ref:`Contributing Guidelines <contributing-guidelines>`

0 commit comments

Comments
 (0)