Browse Source

Document update & remove old code.

pull/301/head
Halil ibrahim Kalkan 8 years ago
parent
commit
03facf546a
  1. 7
      docs/AspNetCore/Bundling-Minification.md
  2. 3
      docs/AspNetCore/Client-Side-Package-Management.md
  3. 3
      docs/AspNetCore/Tag-Helpers.md
  4. 3
      docs/AspNetCore/Theming.md
  5. 4
      docs/Index.md
  6. 7
      src/Volo.Abp.AspNetCore.Mvc.UI.Bundling/Volo/Abp/AspNetCore/Mvc/UI/Bundling/BundleManager.cs

7
docs/AspNetCore/Bundling-Minification.md

@ -243,10 +243,11 @@ namespace MyCompany.MyProject
} }
```` ````
##### Themes #### Themes
Themes (TODO: link) also uses the standard package contributors to add library resources to page layouts. Themes uses the standard package contributors to add library resources to page layouts. Themes may also define some standard/global bundles, so any module can contribute to those standard/global bundles. See the [theming documentation](Theming.md) for more.
### See Also ### See Also
* [Client Side Package Management](Client-Side-Package-Management.md) * [Client Side Package Management](Client-Side-Package-Management.md)
* [Theming](Theming.md)

3
docs/AspNetCore/Client-Side-Package-Management.md

@ -112,4 +112,5 @@ When you run the gulp, all related packages will copy their own resources into t
#### See Also #### See Also
* [Bundling & Minification](Bundling-Minification.md) * [Bundling & Minification](Bundling-Minification.md)
* [Theming](Theming.md)

3
docs/AspNetCore/Tag-Helpers.md

@ -0,0 +1,3 @@
# Tag Helpers
TODO

3
docs/AspNetCore/Theming.md

@ -0,0 +1,3 @@
# Theming
TODO

4
docs/Index.md

@ -50,8 +50,8 @@
* User Interface * User Interface
* [Client Side Package Management](AspNetCore/Client-Side-Package-Management.md) * [Client Side Package Management](AspNetCore/Client-Side-Package-Management.md)
* [Bundling & Minification](AspNetCore/Bundling-Minification.md) * [Bundling & Minification](AspNetCore/Bundling-Minification.md)
* Tag Helpers * [Tag Helpers](Tag-Helpers.md)
* Themes * [Theming](AspNetCore/Theming.md)
* Data Access * Data Access
* [Entity Framework Core Integration](Entity-Framework-Core.md) * [Entity Framework Core Integration](Entity-Framework-Core.md)
* [MongoDB Integration](MongoDB.md) * [MongoDB Integration](MongoDB.md)

7
src/Volo.Abp.AspNetCore.Mvc.UI.Bundling/Volo/Abp/AspNetCore/Mvc/UI/Bundling/BundleManager.cs

@ -120,7 +120,6 @@ namespace Volo.Abp.AspNetCore.Mvc.UI.Bundling
protected virtual void SaveBundleResult(string bundleRelativePath, BundleResult bundleResult) protected virtual void SaveBundleResult(string bundleRelativePath, BundleResult bundleResult)
{ {
//TODO: Optimize?
var fileName = bundleRelativePath.Substring(bundleRelativePath.IndexOf('/') + 1); var fileName = bundleRelativePath.Substring(bundleRelativePath.IndexOf('/') + 1);
_dynamicFileProvider.AddOrUpdate( _dynamicFileProvider.AddOrUpdate(
@ -130,12 +129,6 @@ namespace Volo.Abp.AspNetCore.Mvc.UI.Bundling
fileName fileName
) )
); );
//TODO: Saving to file option?
//var bundleFilePath = Path.Combine(_hostingEnvironment.WebRootPath, bundleRelativePath);
//DirectoryHelper.CreateIfNotExists(Path.GetDirectoryName(bundleFilePath));
//File.WriteAllText(bundleFilePath, bundleResult.Content, Encoding.UTF8);
} }
public virtual void CreateStyleBundle(string bundleName, Action<BundleConfiguration> configureAction) public virtual void CreateStyleBundle(string bundleName, Action<BundleConfiguration> configureAction)

Loading…
Cancel
Save