diff --git a/docs/Collection/Collection.and().md b/_api_ref/Collection/Collection.and().md
similarity index 100%
rename from docs/Collection/Collection.and().md
rename to _api_ref/Collection/Collection.and().md
diff --git a/docs/Collection/Collection.clone().md b/_api_ref/Collection/Collection.clone().md
similarity index 100%
rename from docs/Collection/Collection.clone().md
rename to _api_ref/Collection/Collection.clone().md
diff --git a/docs/Collection/Collection.count().md b/_api_ref/Collection/Collection.count().md
similarity index 100%
rename from docs/Collection/Collection.count().md
rename to _api_ref/Collection/Collection.count().md
diff --git a/docs/Collection/Collection.delete().md b/_api_ref/Collection/Collection.delete().md
similarity index 100%
rename from docs/Collection/Collection.delete().md
rename to _api_ref/Collection/Collection.delete().md
diff --git a/docs/Collection/Collection.desc().md b/_api_ref/Collection/Collection.desc().md
similarity index 100%
rename from docs/Collection/Collection.desc().md
rename to _api_ref/Collection/Collection.desc().md
diff --git a/docs/Collection/Collection.distinct().md b/_api_ref/Collection/Collection.distinct().md
similarity index 100%
rename from docs/Collection/Collection.distinct().md
rename to _api_ref/Collection/Collection.distinct().md
diff --git a/docs/Collection/Collection.each().md b/_api_ref/Collection/Collection.each().md
similarity index 100%
rename from docs/Collection/Collection.each().md
rename to _api_ref/Collection/Collection.each().md
diff --git a/docs/Collection/Collection.eachKey().md b/_api_ref/Collection/Collection.eachKey().md
similarity index 100%
rename from docs/Collection/Collection.eachKey().md
rename to _api_ref/Collection/Collection.eachKey().md
diff --git a/docs/Collection/Collection.eachPrimaryKey().md b/_api_ref/Collection/Collection.eachPrimaryKey().md
similarity index 100%
rename from docs/Collection/Collection.eachPrimaryKey().md
rename to _api_ref/Collection/Collection.eachPrimaryKey().md
diff --git a/docs/Collection/Collection.eachUniqueKey().md b/_api_ref/Collection/Collection.eachUniqueKey().md
similarity index 100%
rename from docs/Collection/Collection.eachUniqueKey().md
rename to _api_ref/Collection/Collection.eachUniqueKey().md
diff --git a/docs/Collection/Collection.filter().md b/_api_ref/Collection/Collection.filter().md
similarity index 100%
rename from docs/Collection/Collection.filter().md
rename to _api_ref/Collection/Collection.filter().md
diff --git a/docs/Collection/Collection.first().md b/_api_ref/Collection/Collection.first().md
similarity index 100%
rename from docs/Collection/Collection.first().md
rename to _api_ref/Collection/Collection.first().md
diff --git a/docs/Collection/Collection.keys().md b/_api_ref/Collection/Collection.keys().md
similarity index 100%
rename from docs/Collection/Collection.keys().md
rename to _api_ref/Collection/Collection.keys().md
diff --git a/docs/Collection/Collection.last().md b/_api_ref/Collection/Collection.last().md
similarity index 100%
rename from docs/Collection/Collection.last().md
rename to _api_ref/Collection/Collection.last().md
diff --git a/docs/Collection/Collection.limit().md b/_api_ref/Collection/Collection.limit().md
similarity index 100%
rename from docs/Collection/Collection.limit().md
rename to _api_ref/Collection/Collection.limit().md
diff --git a/docs/Collection/Collection.md b/_api_ref/Collection/Collection.md
similarity index 100%
rename from docs/Collection/Collection.md
rename to _api_ref/Collection/Collection.md
diff --git a/docs/Collection/Collection.modify().md b/_api_ref/Collection/Collection.modify().md
similarity index 100%
rename from docs/Collection/Collection.modify().md
rename to _api_ref/Collection/Collection.modify().md
diff --git a/docs/Collection/Collection.offset().md b/_api_ref/Collection/Collection.offset().md
similarity index 100%
rename from docs/Collection/Collection.offset().md
rename to _api_ref/Collection/Collection.offset().md
diff --git a/docs/Collection/Collection.or().md b/_api_ref/Collection/Collection.or().md
similarity index 100%
rename from docs/Collection/Collection.or().md
rename to _api_ref/Collection/Collection.or().md
diff --git a/docs/Collection/Collection.primaryKeys().md b/_api_ref/Collection/Collection.primaryKeys().md
similarity index 100%
rename from docs/Collection/Collection.primaryKeys().md
rename to _api_ref/Collection/Collection.primaryKeys().md
diff --git a/docs/Collection/Collection.raw().md b/_api_ref/Collection/Collection.raw().md
similarity index 100%
rename from docs/Collection/Collection.raw().md
rename to _api_ref/Collection/Collection.raw().md
diff --git a/docs/Collection/Collection.reverse().md b/_api_ref/Collection/Collection.reverse().md
similarity index 100%
rename from docs/Collection/Collection.reverse().md
rename to _api_ref/Collection/Collection.reverse().md
diff --git a/docs/Collection/Collection.sortBy().md b/_api_ref/Collection/Collection.sortBy().md
similarity index 100%
rename from docs/Collection/Collection.sortBy().md
rename to _api_ref/Collection/Collection.sortBy().md
diff --git a/docs/Collection/Collection.toArray().md b/_api_ref/Collection/Collection.toArray().md
similarity index 100%
rename from docs/Collection/Collection.toArray().md
rename to _api_ref/Collection/Collection.toArray().md
diff --git a/docs/Collection/Collection.uniqueKeys().md b/_api_ref/Collection/Collection.uniqueKeys().md
similarity index 100%
rename from docs/Collection/Collection.uniqueKeys().md
rename to _api_ref/Collection/Collection.uniqueKeys().md
diff --git a/docs/Collection/Collection.until().md b/_api_ref/Collection/Collection.until().md
similarity index 100%
rename from docs/Collection/Collection.until().md
rename to _api_ref/Collection/Collection.until().md
diff --git a/docs/Dexie/Dexie.[table].md b/_api_ref/Dexie/Dexie.[table].md
similarity index 100%
rename from docs/Dexie/Dexie.[table].md
rename to _api_ref/Dexie/Dexie.[table].md
diff --git a/docs/Dexie/Dexie.addons.md b/_api_ref/Dexie/Dexie.addons.md
similarity index 100%
rename from docs/Dexie/Dexie.addons.md
rename to _api_ref/Dexie/Dexie.addons.md
diff --git a/docs/Dexie/Dexie.async().md b/_api_ref/Dexie/Dexie.async().md
similarity index 100%
rename from docs/Dexie/Dexie.async().md
rename to _api_ref/Dexie/Dexie.async().md
diff --git a/docs/Dexie/Dexie.backendDB().md b/_api_ref/Dexie/Dexie.backendDB().md
similarity index 100%
rename from docs/Dexie/Dexie.backendDB().md
rename to _api_ref/Dexie/Dexie.backendDB().md
diff --git a/docs/Dexie/Dexie.close().md b/_api_ref/Dexie/Dexie.close().md
similarity index 100%
rename from docs/Dexie/Dexie.close().md
rename to _api_ref/Dexie/Dexie.close().md
diff --git a/docs/Dexie/Dexie.currentTransaction.md b/_api_ref/Dexie/Dexie.currentTransaction.md
similarity index 100%
rename from docs/Dexie/Dexie.currentTransaction.md
rename to _api_ref/Dexie/Dexie.currentTransaction.md
diff --git a/docs/Dexie/Dexie.debug.md b/_api_ref/Dexie/Dexie.debug.md
similarity index 100%
rename from docs/Dexie/Dexie.debug.md
rename to _api_ref/Dexie/Dexie.debug.md
diff --git a/docs/Dexie/Dexie.deepClone().md b/_api_ref/Dexie/Dexie.deepClone().md
similarity index 100%
rename from docs/Dexie/Dexie.deepClone().md
rename to _api_ref/Dexie/Dexie.deepClone().md
diff --git a/docs/Dexie/Dexie.defineClass().md b/_api_ref/Dexie/Dexie.defineClass().md
similarity index 100%
rename from docs/Dexie/Dexie.defineClass().md
rename to _api_ref/Dexie/Dexie.defineClass().md
diff --git a/docs/Dexie/Dexie.delByKeyPath().md b/_api_ref/Dexie/Dexie.delByKeyPath().md
similarity index 100%
rename from docs/Dexie/Dexie.delByKeyPath().md
rename to _api_ref/Dexie/Dexie.delByKeyPath().md
diff --git a/docs/Dexie/Dexie.delete().md b/_api_ref/Dexie/Dexie.delete().md
similarity index 100%
rename from docs/Dexie/Dexie.delete().md
rename to _api_ref/Dexie/Dexie.delete().md
diff --git a/docs/Dexie/Dexie.derive().md b/_api_ref/Dexie/Dexie.derive().md
similarity index 100%
rename from docs/Dexie/Dexie.derive().md
rename to _api_ref/Dexie/Dexie.derive().md
diff --git a/docs/Dexie/Dexie.events().md b/_api_ref/Dexie/Dexie.events().md
similarity index 100%
rename from docs/Dexie/Dexie.events().md
rename to _api_ref/Dexie/Dexie.events().md
diff --git a/docs/Dexie/Dexie.exists().md b/_api_ref/Dexie/Dexie.exists().md
similarity index 100%
rename from docs/Dexie/Dexie.exists().md
rename to _api_ref/Dexie/Dexie.exists().md
diff --git a/docs/Dexie/Dexie.extend().md b/_api_ref/Dexie/Dexie.extend().md
similarity index 100%
rename from docs/Dexie/Dexie.extend().md
rename to _api_ref/Dexie/Dexie.extend().md
diff --git a/docs/Dexie/Dexie.fakeAutoComplete().md b/_api_ref/Dexie/Dexie.fakeAutoComplete().md
similarity index 100%
rename from docs/Dexie/Dexie.fakeAutoComplete().md
rename to _api_ref/Dexie/Dexie.fakeAutoComplete().md
diff --git a/docs/Dexie/Dexie.getByKeyPath().md b/_api_ref/Dexie/Dexie.getByKeyPath().md
similarity index 100%
rename from docs/Dexie/Dexie.getByKeyPath().md
rename to _api_ref/Dexie/Dexie.getByKeyPath().md
diff --git a/docs/Dexie/Dexie.getDatabaseNames().md b/_api_ref/Dexie/Dexie.getDatabaseNames().md
similarity index 100%
rename from docs/Dexie/Dexie.getDatabaseNames().md
rename to _api_ref/Dexie/Dexie.getDatabaseNames().md
diff --git a/docs/Dexie/Dexie.hasFailed().md b/_api_ref/Dexie/Dexie.hasFailed().md
similarity index 100%
rename from docs/Dexie/Dexie.hasFailed().md
rename to _api_ref/Dexie/Dexie.hasFailed().md
diff --git a/docs/Dexie/Dexie.ignoreTransaction().md b/_api_ref/Dexie/Dexie.ignoreTransaction().md
similarity index 100%
rename from docs/Dexie/Dexie.ignoreTransaction().md
rename to _api_ref/Dexie/Dexie.ignoreTransaction().md
diff --git a/docs/Dexie/Dexie.isOpen().md b/_api_ref/Dexie/Dexie.isOpen().md
similarity index 100%
rename from docs/Dexie/Dexie.isOpen().md
rename to _api_ref/Dexie/Dexie.isOpen().md
diff --git a/docs/Dexie/Dexie.md b/_api_ref/Dexie/Dexie.md
similarity index 100%
rename from docs/Dexie/Dexie.md
rename to _api_ref/Dexie/Dexie.md
diff --git a/docs/Dexie/Dexie.name.md b/_api_ref/Dexie/Dexie.name.md
similarity index 100%
rename from docs/Dexie/Dexie.name.md
rename to _api_ref/Dexie/Dexie.name.md
diff --git a/docs/Dexie/Dexie.on().md b/_api_ref/Dexie/Dexie.on().md
similarity index 100%
rename from docs/Dexie/Dexie.on().md
rename to _api_ref/Dexie/Dexie.on().md
diff --git a/docs/Dexie/Dexie.on.blocked.md b/_api_ref/Dexie/Dexie.on.blocked.md
similarity index 100%
rename from docs/Dexie/Dexie.on.blocked.md
rename to _api_ref/Dexie/Dexie.on.blocked.md
diff --git a/docs/Dexie/Dexie.on.error.md b/_api_ref/Dexie/Dexie.on.error.md
similarity index 100%
rename from docs/Dexie/Dexie.on.error.md
rename to _api_ref/Dexie/Dexie.on.error.md
diff --git a/docs/Dexie/Dexie.on.populate-(old-version).md b/_api_ref/Dexie/Dexie.on.populate-(old-version).md
similarity index 100%
rename from docs/Dexie/Dexie.on.populate-(old-version).md
rename to _api_ref/Dexie/Dexie.on.populate-(old-version).md
diff --git a/docs/Dexie/Dexie.on.populate.md b/_api_ref/Dexie/Dexie.on.populate.md
similarity index 100%
rename from docs/Dexie/Dexie.on.populate.md
rename to _api_ref/Dexie/Dexie.on.populate.md
diff --git a/docs/Dexie/Dexie.on.ready.md b/_api_ref/Dexie/Dexie.on.ready.md
similarity index 100%
rename from docs/Dexie/Dexie.on.ready.md
rename to _api_ref/Dexie/Dexie.on.ready.md
diff --git a/docs/Dexie/Dexie.on.versionchange.md b/_api_ref/Dexie/Dexie.on.versionchange.md
similarity index 100%
rename from docs/Dexie/Dexie.on.versionchange.md
rename to _api_ref/Dexie/Dexie.on.versionchange.md
diff --git a/docs/Dexie/Dexie.open().md b/_api_ref/Dexie/Dexie.open().md
similarity index 100%
rename from docs/Dexie/Dexie.open().md
rename to _api_ref/Dexie/Dexie.open().md
diff --git a/docs/Dexie/Dexie.override().md b/_api_ref/Dexie/Dexie.override().md
similarity index 100%
rename from docs/Dexie/Dexie.override().md
rename to _api_ref/Dexie/Dexie.override().md
diff --git a/docs/Dexie/Dexie.semVer.md b/_api_ref/Dexie/Dexie.semVer.md
similarity index 100%
rename from docs/Dexie/Dexie.semVer.md
rename to _api_ref/Dexie/Dexie.semVer.md
diff --git a/docs/Dexie/Dexie.setByKeyPath().md b/_api_ref/Dexie/Dexie.setByKeyPath().md
similarity index 100%
rename from docs/Dexie/Dexie.setByKeyPath().md
rename to _api_ref/Dexie/Dexie.setByKeyPath().md
diff --git a/docs/Dexie/Dexie.shallowClone().md b/_api_ref/Dexie/Dexie.shallowClone().md
similarity index 100%
rename from docs/Dexie/Dexie.shallowClone().md
rename to _api_ref/Dexie/Dexie.shallowClone().md
diff --git a/docs/Dexie/Dexie.spawn().md b/_api_ref/Dexie/Dexie.spawn().md
similarity index 100%
rename from docs/Dexie/Dexie.spawn().md
rename to _api_ref/Dexie/Dexie.spawn().md
diff --git a/docs/Dexie/Dexie.table().md b/_api_ref/Dexie/Dexie.table().md
similarity index 100%
rename from docs/Dexie/Dexie.table().md
rename to _api_ref/Dexie/Dexie.table().md
diff --git a/docs/Dexie/Dexie.tables.md b/_api_ref/Dexie/Dexie.tables.md
similarity index 100%
rename from docs/Dexie/Dexie.tables.md
rename to _api_ref/Dexie/Dexie.tables.md
diff --git a/docs/Dexie/Dexie.transaction()-(old-version).md b/_api_ref/Dexie/Dexie.transaction()-(old-version).md
similarity index 100%
rename from docs/Dexie/Dexie.transaction()-(old-version).md
rename to _api_ref/Dexie/Dexie.transaction()-(old-version).md
diff --git a/docs/Dexie/Dexie.transaction().md b/_api_ref/Dexie/Dexie.transaction().md
similarity index 100%
rename from docs/Dexie/Dexie.transaction().md
rename to _api_ref/Dexie/Dexie.transaction().md
diff --git a/docs/Dexie/Dexie.verno.md b/_api_ref/Dexie/Dexie.verno.md
similarity index 100%
rename from docs/Dexie/Dexie.verno.md
rename to _api_ref/Dexie/Dexie.verno.md
diff --git a/docs/Dexie/Dexie.version().md b/_api_ref/Dexie/Dexie.version().md
similarity index 100%
rename from docs/Dexie/Dexie.version().md
rename to _api_ref/Dexie/Dexie.version().md
diff --git a/docs/Dexie/Dexie.version.md b/_api_ref/Dexie/Dexie.version.md
similarity index 100%
rename from docs/Dexie/Dexie.version.md
rename to _api_ref/Dexie/Dexie.version.md
diff --git a/docs/Dexie/Dexie.vip().md b/_api_ref/Dexie/Dexie.vip().md
similarity index 100%
rename from docs/Dexie/Dexie.vip().md
rename to _api_ref/Dexie/Dexie.vip().md
diff --git a/docs/Dexie/Dexie.waitFor().md b/_api_ref/Dexie/Dexie.waitFor().md
similarity index 100%
rename from docs/Dexie/Dexie.waitFor().md
rename to _api_ref/Dexie/Dexie.waitFor().md
diff --git a/docs/DexieErrors/Dexie.AbortError.md b/_api_ref/DexieErrors/Dexie.AbortError.md
similarity index 100%
rename from docs/DexieErrors/Dexie.AbortError.md
rename to _api_ref/DexieErrors/Dexie.AbortError.md
diff --git a/docs/DexieErrors/Dexie.BulkError.md b/_api_ref/DexieErrors/Dexie.BulkError.md
similarity index 100%
rename from docs/DexieErrors/Dexie.BulkError.md
rename to _api_ref/DexieErrors/Dexie.BulkError.md
diff --git a/docs/DexieErrors/Dexie.ConstraintError.md b/_api_ref/DexieErrors/Dexie.ConstraintError.md
similarity index 100%
rename from docs/DexieErrors/Dexie.ConstraintError.md
rename to _api_ref/DexieErrors/Dexie.ConstraintError.md
diff --git a/docs/DexieErrors/Dexie.DataCloneError.md b/_api_ref/DexieErrors/Dexie.DataCloneError.md
similarity index 100%
rename from docs/DexieErrors/Dexie.DataCloneError.md
rename to _api_ref/DexieErrors/Dexie.DataCloneError.md
diff --git a/docs/DexieErrors/Dexie.DataError.md b/_api_ref/DexieErrors/Dexie.DataError.md
similarity index 100%
rename from docs/DexieErrors/Dexie.DataError.md
rename to _api_ref/DexieErrors/Dexie.DataError.md
diff --git a/docs/DexieErrors/Dexie.DatabaseClosedError.md b/_api_ref/DexieErrors/Dexie.DatabaseClosedError.md
similarity index 100%
rename from docs/DexieErrors/Dexie.DatabaseClosedError.md
rename to _api_ref/DexieErrors/Dexie.DatabaseClosedError.md
diff --git a/docs/DexieErrors/Dexie.IncompatiblePromiseError.md b/_api_ref/DexieErrors/Dexie.IncompatiblePromiseError.md
similarity index 100%
rename from docs/DexieErrors/Dexie.IncompatiblePromiseError.md
rename to _api_ref/DexieErrors/Dexie.IncompatiblePromiseError.md
diff --git a/docs/DexieErrors/Dexie.InternalError.md b/_api_ref/DexieErrors/Dexie.InternalError.md
similarity index 100%
rename from docs/DexieErrors/Dexie.InternalError.md
rename to _api_ref/DexieErrors/Dexie.InternalError.md
diff --git a/docs/DexieErrors/Dexie.InvalidAccessError.md b/_api_ref/DexieErrors/Dexie.InvalidAccessError.md
similarity index 100%
rename from docs/DexieErrors/Dexie.InvalidAccessError.md
rename to _api_ref/DexieErrors/Dexie.InvalidAccessError.md
diff --git a/docs/DexieErrors/Dexie.InvalidArgumentError.md b/_api_ref/DexieErrors/Dexie.InvalidArgumentError.md
similarity index 100%
rename from docs/DexieErrors/Dexie.InvalidArgumentError.md
rename to _api_ref/DexieErrors/Dexie.InvalidArgumentError.md
diff --git a/docs/DexieErrors/Dexie.InvalidStateError.md b/_api_ref/DexieErrors/Dexie.InvalidStateError.md
similarity index 100%
rename from docs/DexieErrors/Dexie.InvalidStateError.md
rename to _api_ref/DexieErrors/Dexie.InvalidStateError.md
diff --git a/docs/DexieErrors/Dexie.InvalidTableError.md b/_api_ref/DexieErrors/Dexie.InvalidTableError.md
similarity index 100%
rename from docs/DexieErrors/Dexie.InvalidTableError.md
rename to _api_ref/DexieErrors/Dexie.InvalidTableError.md
diff --git a/docs/DexieErrors/Dexie.MissingAPIError.md b/_api_ref/DexieErrors/Dexie.MissingAPIError.md
similarity index 100%
rename from docs/DexieErrors/Dexie.MissingAPIError.md
rename to _api_ref/DexieErrors/Dexie.MissingAPIError.md
diff --git a/docs/DexieErrors/Dexie.ModifyError.md b/_api_ref/DexieErrors/Dexie.ModifyError.md
similarity index 100%
rename from docs/DexieErrors/Dexie.ModifyError.md
rename to _api_ref/DexieErrors/Dexie.ModifyError.md
diff --git a/docs/DexieErrors/Dexie.NoSuchDatabaseError.md b/_api_ref/DexieErrors/Dexie.NoSuchDatabaseError.md
similarity index 100%
rename from docs/DexieErrors/Dexie.NoSuchDatabaseError.md
rename to _api_ref/DexieErrors/Dexie.NoSuchDatabaseError.md
diff --git a/docs/DexieErrors/Dexie.NotFoundError.md b/_api_ref/DexieErrors/Dexie.NotFoundError.md
similarity index 100%
rename from docs/DexieErrors/Dexie.NotFoundError.md
rename to _api_ref/DexieErrors/Dexie.NotFoundError.md
diff --git a/docs/DexieErrors/Dexie.OpenFailedError.md b/_api_ref/DexieErrors/Dexie.OpenFailedError.md
similarity index 100%
rename from docs/DexieErrors/Dexie.OpenFailedError.md
rename to _api_ref/DexieErrors/Dexie.OpenFailedError.md
diff --git a/docs/DexieErrors/Dexie.PrematureCommitError.md b/_api_ref/DexieErrors/Dexie.PrematureCommitError.md
similarity index 100%
rename from docs/DexieErrors/Dexie.PrematureCommitError.md
rename to _api_ref/DexieErrors/Dexie.PrematureCommitError.md
diff --git a/docs/DexieErrors/Dexie.QuotaExceededError.md b/_api_ref/DexieErrors/Dexie.QuotaExceededError.md
similarity index 100%
rename from docs/DexieErrors/Dexie.QuotaExceededError.md
rename to _api_ref/DexieErrors/Dexie.QuotaExceededError.md
diff --git a/docs/DexieErrors/Dexie.ReadOnlyError.md b/_api_ref/DexieErrors/Dexie.ReadOnlyError.md
similarity index 100%
rename from docs/DexieErrors/Dexie.ReadOnlyError.md
rename to _api_ref/DexieErrors/Dexie.ReadOnlyError.md
diff --git a/docs/DexieErrors/Dexie.SchemaError.md b/_api_ref/DexieErrors/Dexie.SchemaError.md
similarity index 100%
rename from docs/DexieErrors/Dexie.SchemaError.md
rename to _api_ref/DexieErrors/Dexie.SchemaError.md
diff --git a/docs/DexieErrors/Dexie.SubTransactionError.md b/_api_ref/DexieErrors/Dexie.SubTransactionError.md
similarity index 100%
rename from docs/DexieErrors/Dexie.SubTransactionError.md
rename to _api_ref/DexieErrors/Dexie.SubTransactionError.md
diff --git a/docs/DexieErrors/Dexie.TimeoutError.md b/_api_ref/DexieErrors/Dexie.TimeoutError.md
similarity index 100%
rename from docs/DexieErrors/Dexie.TimeoutError.md
rename to _api_ref/DexieErrors/Dexie.TimeoutError.md
diff --git a/docs/DexieErrors/Dexie.TransactionInactiveError.md b/_api_ref/DexieErrors/Dexie.TransactionInactiveError.md
similarity index 100%
rename from docs/DexieErrors/Dexie.TransactionInactiveError.md
rename to _api_ref/DexieErrors/Dexie.TransactionInactiveError.md
diff --git a/docs/DexieErrors/Dexie.UnknownError.md b/_api_ref/DexieErrors/Dexie.UnknownError.md
similarity index 100%
rename from docs/DexieErrors/Dexie.UnknownError.md
rename to _api_ref/DexieErrors/Dexie.UnknownError.md
diff --git a/docs/DexieErrors/Dexie.UnsupportedError.md b/_api_ref/DexieErrors/Dexie.UnsupportedError.md
similarity index 100%
rename from docs/DexieErrors/Dexie.UnsupportedError.md
rename to _api_ref/DexieErrors/Dexie.UnsupportedError.md
diff --git a/docs/DexieErrors/Dexie.UpgradeError.md b/_api_ref/DexieErrors/Dexie.UpgradeError.md
similarity index 100%
rename from docs/DexieErrors/Dexie.UpgradeError.md
rename to _api_ref/DexieErrors/Dexie.UpgradeError.md
diff --git a/docs/DexieErrors/Dexie.VersionChangeError.md b/_api_ref/DexieErrors/Dexie.VersionChangeError.md
similarity index 100%
rename from docs/DexieErrors/Dexie.VersionChangeError.md
rename to _api_ref/DexieErrors/Dexie.VersionChangeError.md
diff --git a/docs/DexieErrors/Dexie.VersionError.md b/_api_ref/DexieErrors/Dexie.VersionError.md
similarity index 100%
rename from docs/DexieErrors/Dexie.VersionError.md
rename to _api_ref/DexieErrors/Dexie.VersionError.md
diff --git a/docs/DexieErrors/DexieError.md b/_api_ref/DexieErrors/DexieError.md
similarity index 99%
rename from docs/DexieErrors/DexieError.md
rename to _api_ref/DexieErrors/DexieError.md
index f2cf6d3f..c3554e65 100644
--- a/docs/DexieErrors/DexieError.md
+++ b/_api_ref/DexieErrors/DexieError.md
@@ -1,6 +1,7 @@
---
layout: docs
title: 'DexieError'
+index: yes
---
*since v.1.3.3*
diff --git a/docs/Observable/Dexie.Observable.DatabaseChange.md b/_api_ref/Observable/Dexie.Observable.DatabaseChange.md
similarity index 100%
rename from docs/Observable/Dexie.Observable.DatabaseChange.md
rename to _api_ref/Observable/Dexie.Observable.DatabaseChange.md
diff --git a/docs/Observable/Dexie.Observable.md b/_api_ref/Observable/Dexie.Observable.md
similarity index 100%
rename from docs/Observable/Dexie.Observable.md
rename to _api_ref/Observable/Dexie.Observable.md
diff --git a/docs/Promise/Promise.PSD.md b/_api_ref/Promise/Promise.PSD.md
similarity index 100%
rename from docs/Promise/Promise.PSD.md
rename to _api_ref/Promise/Promise.PSD.md
diff --git a/docs/Promise/Promise.catch().md b/_api_ref/Promise/Promise.catch().md
similarity index 100%
rename from docs/Promise/Promise.catch().md
rename to _api_ref/Promise/Promise.catch().md
diff --git a/docs/Promise/Promise.finally().md b/_api_ref/Promise/Promise.finally().md
similarity index 100%
rename from docs/Promise/Promise.finally().md
rename to _api_ref/Promise/Promise.finally().md
diff --git a/docs/Promise/Promise.md b/_api_ref/Promise/Promise.md
similarity index 100%
rename from docs/Promise/Promise.md
rename to _api_ref/Promise/Promise.md
diff --git a/docs/Promise/Promise.on.error.md b/_api_ref/Promise/Promise.on.error.md
similarity index 100%
rename from docs/Promise/Promise.on.error.md
rename to _api_ref/Promise/Promise.on.error.md
diff --git a/docs/Promise/Promise.onuncatched.md b/_api_ref/Promise/Promise.onuncatched.md
similarity index 100%
rename from docs/Promise/Promise.onuncatched.md
rename to _api_ref/Promise/Promise.onuncatched.md
diff --git a/docs/Promise/unhandledrejection-event.md b/_api_ref/Promise/unhandledrejection-event.md
similarity index 100%
rename from docs/Promise/unhandledrejection-event.md
rename to _api_ref/Promise/unhandledrejection-event.md
diff --git a/docs/Syncable/Dexie.Syncable.IDatabaseChange.md b/_api_ref/Syncable/Dexie.Syncable.IDatabaseChange.md
similarity index 100%
rename from docs/Syncable/Dexie.Syncable.IDatabaseChange.md
rename to _api_ref/Syncable/Dexie.Syncable.IDatabaseChange.md
diff --git a/docs/Syncable/Dexie.Syncable.IPersistedContext.md b/_api_ref/Syncable/Dexie.Syncable.IPersistedContext.md
similarity index 100%
rename from docs/Syncable/Dexie.Syncable.IPersistedContext.md
rename to _api_ref/Syncable/Dexie.Syncable.IPersistedContext.md
diff --git a/docs/Syncable/Dexie.Syncable.ISyncProtocol.md b/_api_ref/Syncable/Dexie.Syncable.ISyncProtocol.md
similarity index 100%
rename from docs/Syncable/Dexie.Syncable.ISyncProtocol.md
rename to _api_ref/Syncable/Dexie.Syncable.ISyncProtocol.md
diff --git a/docs/Syncable/Dexie.Syncable.StatusTexts.md b/_api_ref/Syncable/Dexie.Syncable.StatusTexts.md
similarity index 100%
rename from docs/Syncable/Dexie.Syncable.StatusTexts.md
rename to _api_ref/Syncable/Dexie.Syncable.StatusTexts.md
diff --git a/docs/Syncable/Dexie.Syncable.Statuses.md b/_api_ref/Syncable/Dexie.Syncable.Statuses.md
similarity index 100%
rename from docs/Syncable/Dexie.Syncable.Statuses.md
rename to _api_ref/Syncable/Dexie.Syncable.Statuses.md
diff --git a/docs/Syncable/Dexie.Syncable.js.md b/_api_ref/Syncable/Dexie.Syncable.js.md
similarity index 100%
rename from docs/Syncable/Dexie.Syncable.js.md
rename to _api_ref/Syncable/Dexie.Syncable.js.md
diff --git a/docs/Syncable/Dexie.Syncable.registerSyncProtocol().md b/_api_ref/Syncable/Dexie.Syncable.registerSyncProtocol().md
similarity index 100%
rename from docs/Syncable/Dexie.Syncable.registerSyncProtocol().md
rename to _api_ref/Syncable/Dexie.Syncable.registerSyncProtocol().md
diff --git a/docs/Syncable/db.syncable.connect().md b/_api_ref/Syncable/db.syncable.connect().md
similarity index 100%
rename from docs/Syncable/db.syncable.connect().md
rename to _api_ref/Syncable/db.syncable.connect().md
diff --git a/docs/Syncable/db.syncable.delete().md b/_api_ref/Syncable/db.syncable.delete().md
similarity index 100%
rename from docs/Syncable/db.syncable.delete().md
rename to _api_ref/Syncable/db.syncable.delete().md
diff --git a/docs/Syncable/db.syncable.disconnect().md b/_api_ref/Syncable/db.syncable.disconnect().md
similarity index 100%
rename from docs/Syncable/db.syncable.disconnect().md
rename to _api_ref/Syncable/db.syncable.disconnect().md
diff --git a/docs/Syncable/db.syncable.getOptions().md b/_api_ref/Syncable/db.syncable.getOptions().md
similarity index 100%
rename from docs/Syncable/db.syncable.getOptions().md
rename to _api_ref/Syncable/db.syncable.getOptions().md
diff --git a/docs/Syncable/db.syncable.getStatus().md b/_api_ref/Syncable/db.syncable.getStatus().md
similarity index 100%
rename from docs/Syncable/db.syncable.getStatus().md
rename to _api_ref/Syncable/db.syncable.getStatus().md
diff --git a/docs/Syncable/db.syncable.list().md b/_api_ref/Syncable/db.syncable.list().md
similarity index 100%
rename from docs/Syncable/db.syncable.list().md
rename to _api_ref/Syncable/db.syncable.list().md
diff --git a/docs/Syncable/db.syncable.on('statusChanged').md b/_api_ref/Syncable/db.syncable.on('statusChanged').md
similarity index 100%
rename from docs/Syncable/db.syncable.on('statusChanged').md
rename to _api_ref/Syncable/db.syncable.on('statusChanged').md
diff --git a/docs/Syncable/db.syncable.setFilter().md b/_api_ref/Syncable/db.syncable.setFilter().md
similarity index 100%
rename from docs/Syncable/db.syncable.setFilter().md
rename to _api_ref/Syncable/db.syncable.setFilter().md
diff --git a/docs/Table/Table.add().md b/_api_ref/Table/Table.add().md
similarity index 100%
rename from docs/Table/Table.add().md
rename to _api_ref/Table/Table.add().md
diff --git a/docs/Table/Table.bulkAdd().md b/_api_ref/Table/Table.bulkAdd().md
similarity index 100%
rename from docs/Table/Table.bulkAdd().md
rename to _api_ref/Table/Table.bulkAdd().md
diff --git a/docs/Table/Table.bulkDelete().md b/_api_ref/Table/Table.bulkDelete().md
similarity index 100%
rename from docs/Table/Table.bulkDelete().md
rename to _api_ref/Table/Table.bulkDelete().md
diff --git a/docs/Table/Table.bulkPut().md b/_api_ref/Table/Table.bulkPut().md
similarity index 100%
rename from docs/Table/Table.bulkPut().md
rename to _api_ref/Table/Table.bulkPut().md
diff --git a/docs/Table/Table.clear().md b/_api_ref/Table/Table.clear().md
similarity index 100%
rename from docs/Table/Table.clear().md
rename to _api_ref/Table/Table.clear().md
diff --git a/docs/Table/Table.count().md b/_api_ref/Table/Table.count().md
similarity index 100%
rename from docs/Table/Table.count().md
rename to _api_ref/Table/Table.count().md
diff --git a/docs/Table/Table.defineClass().md b/_api_ref/Table/Table.defineClass().md
similarity index 100%
rename from docs/Table/Table.defineClass().md
rename to _api_ref/Table/Table.defineClass().md
diff --git a/docs/Table/Table.delete().md b/_api_ref/Table/Table.delete().md
similarity index 100%
rename from docs/Table/Table.delete().md
rename to _api_ref/Table/Table.delete().md
diff --git a/docs/Table/Table.each().md b/_api_ref/Table/Table.each().md
similarity index 100%
rename from docs/Table/Table.each().md
rename to _api_ref/Table/Table.each().md
diff --git a/docs/Table/Table.filter().md b/_api_ref/Table/Table.filter().md
similarity index 100%
rename from docs/Table/Table.filter().md
rename to _api_ref/Table/Table.filter().md
diff --git a/docs/Table/Table.get().md b/_api_ref/Table/Table.get().md
similarity index 100%
rename from docs/Table/Table.get().md
rename to _api_ref/Table/Table.get().md
diff --git a/docs/Table/Table.hook('creating').md b/_api_ref/Table/Table.hook('creating').md
similarity index 100%
rename from docs/Table/Table.hook('creating').md
rename to _api_ref/Table/Table.hook('creating').md
diff --git a/docs/Table/Table.hook('deleting').md b/_api_ref/Table/Table.hook('deleting').md
similarity index 100%
rename from docs/Table/Table.hook('deleting').md
rename to _api_ref/Table/Table.hook('deleting').md
diff --git a/docs/Table/Table.hook('reading').md b/_api_ref/Table/Table.hook('reading').md
similarity index 100%
rename from docs/Table/Table.hook('reading').md
rename to _api_ref/Table/Table.hook('reading').md
diff --git a/docs/Table/Table.hook('updating').md b/_api_ref/Table/Table.hook('updating').md
similarity index 100%
rename from docs/Table/Table.hook('updating').md
rename to _api_ref/Table/Table.hook('updating').md
diff --git a/docs/Table/Table.limit().md b/_api_ref/Table/Table.limit().md
similarity index 100%
rename from docs/Table/Table.limit().md
rename to _api_ref/Table/Table.limit().md
diff --git a/docs/Table/Table.mapToClass().md b/_api_ref/Table/Table.mapToClass().md
similarity index 100%
rename from docs/Table/Table.mapToClass().md
rename to _api_ref/Table/Table.mapToClass().md
diff --git a/docs/Table/Table.md b/_api_ref/Table/Table.md
similarity index 100%
rename from docs/Table/Table.md
rename to _api_ref/Table/Table.md
diff --git a/docs/Table/Table.name.md b/_api_ref/Table/Table.name.md
similarity index 100%
rename from docs/Table/Table.name.md
rename to _api_ref/Table/Table.name.md
diff --git a/docs/Table/Table.offset().md b/_api_ref/Table/Table.offset().md
similarity index 100%
rename from docs/Table/Table.offset().md
rename to _api_ref/Table/Table.offset().md
diff --git a/docs/Table/Table.orderBy().md b/_api_ref/Table/Table.orderBy().md
similarity index 100%
rename from docs/Table/Table.orderBy().md
rename to _api_ref/Table/Table.orderBy().md
diff --git a/docs/Table/Table.put().md b/_api_ref/Table/Table.put().md
similarity index 100%
rename from docs/Table/Table.put().md
rename to _api_ref/Table/Table.put().md
diff --git a/docs/Table/Table.reverse().md b/_api_ref/Table/Table.reverse().md
similarity index 100%
rename from docs/Table/Table.reverse().md
rename to _api_ref/Table/Table.reverse().md
diff --git a/docs/Table/Table.schema.md b/_api_ref/Table/Table.schema.md
similarity index 100%
rename from docs/Table/Table.schema.md
rename to _api_ref/Table/Table.schema.md
diff --git a/docs/Table/Table.toArray().md b/_api_ref/Table/Table.toArray().md
similarity index 100%
rename from docs/Table/Table.toArray().md
rename to _api_ref/Table/Table.toArray().md
diff --git a/docs/Table/Table.toCollection().md b/_api_ref/Table/Table.toCollection().md
similarity index 100%
rename from docs/Table/Table.toCollection().md
rename to _api_ref/Table/Table.toCollection().md
diff --git a/docs/Table/Table.update().md b/_api_ref/Table/Table.update().md
similarity index 100%
rename from docs/Table/Table.update().md
rename to _api_ref/Table/Table.update().md
diff --git a/docs/Table/Table.where().md b/_api_ref/Table/Table.where().md
similarity index 100%
rename from docs/Table/Table.where().md
rename to _api_ref/Table/Table.where().md
diff --git a/docs/Transaction/Transaction.abort().md b/_api_ref/Transaction/Transaction.abort().md
similarity index 100%
rename from docs/Transaction/Transaction.abort().md
rename to _api_ref/Transaction/Transaction.abort().md
diff --git a/docs/Transaction/Transaction.md b/_api_ref/Transaction/Transaction.md
similarity index 100%
rename from docs/Transaction/Transaction.md
rename to _api_ref/Transaction/Transaction.md
diff --git a/docs/Transaction/Transaction.on.abort.md b/_api_ref/Transaction/Transaction.on.abort.md
similarity index 100%
rename from docs/Transaction/Transaction.on.abort.md
rename to _api_ref/Transaction/Transaction.on.abort.md
diff --git a/docs/Transaction/Transaction.on.complete.md b/_api_ref/Transaction/Transaction.on.complete.md
similarity index 100%
rename from docs/Transaction/Transaction.on.complete.md
rename to _api_ref/Transaction/Transaction.on.complete.md
diff --git a/docs/Transaction/Transaction.on.error.md b/_api_ref/Transaction/Transaction.on.error.md
similarity index 100%
rename from docs/Transaction/Transaction.on.error.md
rename to _api_ref/Transaction/Transaction.on.error.md
diff --git a/docs/Transaction/Transaction.table().md b/_api_ref/Transaction/Transaction.table().md
similarity index 100%
rename from docs/Transaction/Transaction.table().md
rename to _api_ref/Transaction/Transaction.table().md
diff --git a/docs/Version/Version.md b/_api_ref/Version/Version.md
similarity index 100%
rename from docs/Version/Version.md
rename to _api_ref/Version/Version.md
diff --git a/docs/Version/Version.stores().md b/_api_ref/Version/Version.stores().md
similarity index 100%
rename from docs/Version/Version.stores().md
rename to _api_ref/Version/Version.stores().md
diff --git a/docs/Version/Version.upgrade().md b/_api_ref/Version/Version.upgrade().md
similarity index 100%
rename from docs/Version/Version.upgrade().md
rename to _api_ref/Version/Version.upgrade().md
diff --git a/docs/WhereClause/WhereClause.above().md b/_api_ref/WhereClause/WhereClause.above().md
similarity index 100%
rename from docs/WhereClause/WhereClause.above().md
rename to _api_ref/WhereClause/WhereClause.above().md
diff --git a/docs/WhereClause/WhereClause.aboveOrEqual().md b/_api_ref/WhereClause/WhereClause.aboveOrEqual().md
similarity index 100%
rename from docs/WhereClause/WhereClause.aboveOrEqual().md
rename to _api_ref/WhereClause/WhereClause.aboveOrEqual().md
diff --git a/docs/WhereClause/WhereClause.anyOf().md b/_api_ref/WhereClause/WhereClause.anyOf().md
similarity index 100%
rename from docs/WhereClause/WhereClause.anyOf().md
rename to _api_ref/WhereClause/WhereClause.anyOf().md
diff --git a/docs/WhereClause/WhereClause.anyOfIgnoreCase().md b/_api_ref/WhereClause/WhereClause.anyOfIgnoreCase().md
similarity index 100%
rename from docs/WhereClause/WhereClause.anyOfIgnoreCase().md
rename to _api_ref/WhereClause/WhereClause.anyOfIgnoreCase().md
diff --git a/docs/WhereClause/WhereClause.below().md b/_api_ref/WhereClause/WhereClause.below().md
similarity index 100%
rename from docs/WhereClause/WhereClause.below().md
rename to _api_ref/WhereClause/WhereClause.below().md
diff --git a/docs/WhereClause/WhereClause.belowOrEqual().md b/_api_ref/WhereClause/WhereClause.belowOrEqual().md
similarity index 100%
rename from docs/WhereClause/WhereClause.belowOrEqual().md
rename to _api_ref/WhereClause/WhereClause.belowOrEqual().md
diff --git a/docs/WhereClause/WhereClause.between().md b/_api_ref/WhereClause/WhereClause.between().md
similarity index 100%
rename from docs/WhereClause/WhereClause.between().md
rename to _api_ref/WhereClause/WhereClause.between().md
diff --git a/docs/WhereClause/WhereClause.equals().md b/_api_ref/WhereClause/WhereClause.equals().md
similarity index 100%
rename from docs/WhereClause/WhereClause.equals().md
rename to _api_ref/WhereClause/WhereClause.equals().md
diff --git a/docs/WhereClause/WhereClause.equalsIgnoreCase().md b/_api_ref/WhereClause/WhereClause.equalsIgnoreCase().md
similarity index 100%
rename from docs/WhereClause/WhereClause.equalsIgnoreCase().md
rename to _api_ref/WhereClause/WhereClause.equalsIgnoreCase().md
diff --git a/docs/WhereClause/WhereClause.inAnyRange().md b/_api_ref/WhereClause/WhereClause.inAnyRange().md
similarity index 100%
rename from docs/WhereClause/WhereClause.inAnyRange().md
rename to _api_ref/WhereClause/WhereClause.inAnyRange().md
diff --git a/docs/WhereClause/WhereClause.md b/_api_ref/WhereClause/WhereClause.md
similarity index 100%
rename from docs/WhereClause/WhereClause.md
rename to _api_ref/WhereClause/WhereClause.md
diff --git a/docs/WhereClause/WhereClause.noneOf().md b/_api_ref/WhereClause/WhereClause.noneOf().md
similarity index 100%
rename from docs/WhereClause/WhereClause.noneOf().md
rename to _api_ref/WhereClause/WhereClause.noneOf().md
diff --git a/docs/WhereClause/WhereClause.notEqual().md b/_api_ref/WhereClause/WhereClause.notEqual().md
similarity index 100%
rename from docs/WhereClause/WhereClause.notEqual().md
rename to _api_ref/WhereClause/WhereClause.notEqual().md
diff --git a/docs/WhereClause/WhereClause.startsWith().md b/_api_ref/WhereClause/WhereClause.startsWith().md
similarity index 100%
rename from docs/WhereClause/WhereClause.startsWith().md
rename to _api_ref/WhereClause/WhereClause.startsWith().md
diff --git a/docs/WhereClause/WhereClause.startsWithAnyOf().md b/_api_ref/WhereClause/WhereClause.startsWithAnyOf().md
similarity index 100%
rename from docs/WhereClause/WhereClause.startsWithAnyOf().md
rename to _api_ref/WhereClause/WhereClause.startsWithAnyOf().md
diff --git a/docs/WhereClause/WhereClause.startsWithAnyOfIgnoreCase().md b/_api_ref/WhereClause/WhereClause.startsWithAnyOfIgnoreCase().md
similarity index 100%
rename from docs/WhereClause/WhereClause.startsWithAnyOfIgnoreCase().md
rename to _api_ref/WhereClause/WhereClause.startsWithAnyOfIgnoreCase().md
diff --git a/docs/WhereClause/WhereClause.startsWithIgnoreCase().md b/_api_ref/WhereClause/WhereClause.startsWithIgnoreCase().md
similarity index 100%
rename from docs/WhereClause/WhereClause.startsWithIgnoreCase().md
rename to _api_ref/WhereClause/WhereClause.startsWithIgnoreCase().md
diff --git a/_config.yml b/_config.yml
index ef13fc38..a3c03dd4 100644
--- a/_config.yml
+++ b/_config.yml
@@ -24,3 +24,14 @@ gfm_quirks: paragraph_end
# Build settings
markdown: kramdown
+
+collections:
+ tutorial:
+ output: true
+ permalink: /docs/Tutorial/:path/
+ api_ref:
+ output: true
+ permalink: /docs/:path/
+ misc:
+ output: true
+ permalink: /docs/:path/
diff --git a/_includes/nav-index.html b/_includes/nav-index.html
new file mode 100644
index 00000000..98da73fc
--- /dev/null
+++ b/_includes/nav-index.html
@@ -0,0 +1,19 @@
+{% comment %}
+ Use first item as index
+{% endcomment %}
+{% assign index = include.items | first %}
+{% assign pages = include.items | shift %}
+
+