Skip to content

Commit 77058c3

Browse files
mereged in changes related to v021 docs
1 parent 9ec7055 commit 77058c3

File tree

4 files changed

+21
-20
lines changed

4 files changed

+21
-20
lines changed

docs/source/APIDOCS.md

Lines changed: 9 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -19,14 +19,8 @@ For example, at the time of writing, a billion row version of the IOT data set e
1919
can be generated and written to a Delta table in
2020
[under 2 minutes using a 12 node x 8 core cluster (using DBR 8.3)](#scaling-it-up)
2121

22-
> NOTE: The markup version of this document does not cover all of the classes and methods in the codebase.
23-
> For further information on classes and methods contained in these modules, and
24-
> to explore the python documentation for these modules, build the HTML documentation from
25-
> the main project directory using `make docs`. Use your browser to explore the documentation by
26-
> starting with the html file `./docs/build/html/index.html`
27-
>
28-
> If you are viewing the online help version of this document, the classes and methods are already included.
29-
22+
> NOTE: The markup version of this document does not cover all of the classes and methods in the codebase and some links
23+
> may not work. To see the documentation for the latest release, see the online documentation.
3024
3125
## General Overview
3226

@@ -54,8 +48,9 @@ and [formatting on string columns](textdata)
5448

5549
## Tutorials and examples
5650

57-
In the [root directory](https://github.com/databrickslabs/dbldatagen) of the project, there are a number of
58-
examples and tutorials.
51+
In the
52+
[Github project directory](https://github.com/databrickslabs/dbldatagen/tree/release/v0.2.1) ,
53+
there are a number of examples and tutorials.
5954

6055
The Python examples in the `examples` folder can be run directly or imported into the Databricks runtime environment
6156
as Python files.
@@ -100,24 +95,22 @@ There is also support for applying arbitrary SQL expressions, and generation of
10095
### Getting started
10196

10297
Before using the data generator, you need to install the package in your environment and import it in your code.
103-
You can install the package from the Github releases as a library on your cluster.
98+
You can install the package from PyPi as a library on your cluster.
10499

105100
> NOTE: When running in a Databricks notebook environment, you can install directly using
106101
> the `%pip` command in a notebook cell
107102
>
108103
> To install as a notebook scoped library, add a cell with the following text and execute it:
109104
>
110-
> `%pip install git+https://github.com/databrickslabs/dbldatagen@current`
105+
> `%pip install dbldatagen`
111106
112107
The `%pip install` method will work in the Databricks Community Environment and in Delta Live Tables pipelines also.
113108

114-
You can also manually download a wheel file from the releases and install it in your environment.
109+
You can find more details and alternative installation methods at [Installation notes](installation_notes)
115110

116-
The releases are located at
111+
The Github based releases are located at
117112
[Databricks Labs Data Generator releases](https://github.com/databrickslabs/dbldatagen/releases)
118113

119-
You can find more details at [Installation notes](installation_notes)
120-
121114
Once installed, import the framework in your Python code to use it.
122115

123116
For example:

docs/source/installation_notes.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -66,12 +66,12 @@ The following tags will be used to pick up specific versions:
6666

6767
* `VCS support in pip <https://pip.pypa.io/en/stable/cli/pip_install/>`_
6868

69-
Installing from pre-built release wheel
70-
---------------------------------------
69+
Installing from Github releases
70+
-------------------------------
7171

7272
In some cases, you may wish to down the Python wheel directly from the Github releases.
7373

74-
These can be accessed `here <https://github.com/databrickslabs/dbldatagen/releases>`_
74+
These can be accessed `here <https://github.com/databrickslabs/dbldatagen/releases>`_.
7575

7676
You can install a specific wheel using either `%pip install` or the manual method
7777

docs/source/textdata.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ The Data Generation framework provides a number of classes for general purpose t
6868
The Ipsum lorem text generator generates sequences of words, sentances, and paragraphs following the
6969
Ipsum Lorem convention used in UI mockups. It originates from a technique used in type setting.
7070
71-
See `Wikipedia article on `Lorem Ipsum<https://en.wikipedia.org/wiki/Lorem_ipsum>`_
71+
See ``Wikipedia article`` on `Lorem Ipsum <https://en.wikipedia.org/wiki/Lorem_ipsum>`_
7272
7373
The following example illustrates its use:
7474

makefile

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,14 @@ dev-docs: dev-install
6060
@echo "$(OK_COLOR)=> Creating docs ...$(NO_COLOR)"
6161
@cd docs && make docs
6262

63+
prep-doc-release:
64+
@echo "$(OK_COLOR)=> Preparing docs for release ...$(NO_COLOR)"
65+
cp -r docs/build/html docs/public_docs/
66+
touch docs/.nojekyll
67+
touch docs/public_docs/.nojekyll
68+
69+
70+
6371
# Tests
6472
test: export OBJC_DISABLE_INITIALIZE_FORK_SAFETY=YES
6573

0 commit comments

Comments
 (0)