origen 0.2.0 → 0.2.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (42) hide show
  1. checksums.yaml +4 -4
  2. data/config/version.rb +1 -1
  3. data/lib/origen/application/configuration.rb +1 -1
  4. data/lib/origen/generator/compiler.rb +1 -1
  5. data/templates/git/gitignore.erb +1 -0
  6. metadata +3 -39
  7. data/templates/api_doc/README.txt.erb +0 -24
  8. data/templates/j750/_vt_flow.txt.erb +0 -8
  9. data/templates/j750/_vt_instances.txt.erb +0 -4
  10. data/templates/j750/program_sheet.txt.erb +0 -9
  11. data/templates/test/_inline_sub.txt.erb +0 -2
  12. data/templates/test/environment.txt.erb +0 -1
  13. data/templates/test/inline.txt.erb +0 -11
  14. data/templates/test/inspections.txt.erb +0 -19
  15. data/templates/test/set1/_sub1.txt.erb +0 -12
  16. data/templates/test/set1/_sub4.txt.erb +0 -1
  17. data/templates/test/set1/_sub5.txt.erb +0 -1
  18. data/templates/test/set1/main.txt.erb +0 -53
  19. data/templates/test/set1/sub_dir/_sub2.txt.erb +0 -20
  20. data/templates/test/set1/sub_dir/_sub3.txt.erb +0 -12
  21. data/templates/test/set1/sub_dir/main2.txt.erb +0 -4
  22. data/templates/test/set2/template_with_no_erb_1.txt +0 -9
  23. data/templates/test/set2/template_with_no_erb_2.txt +0 -9
  24. data/templates/test/set3/_layout.html.erb +0 -4
  25. data/templates/test/set3/content.html.erb +0 -6
  26. data/templates/web/archive.md.erb +0 -11
  27. data/templates/web/contact.md.erb +0 -15
  28. data/templates/web/css/landing.css +0 -3
  29. data/templates/web/design-engineering.html.erb +0 -0
  30. data/templates/web/docs/environment/definitions.md.erb +0 -17
  31. data/templates/web/docs/environment/installation.md.erb +0 -22
  32. data/templates/web/docs/environment/introduction.md.erb +0 -5
  33. data/templates/web/index.html.erb +0 -23
  34. data/templates/web/js/jquery-singlePageNav.js +0 -8
  35. data/templates/web/js/landing.js +0 -9
  36. data/templates/web/layouts/_basic.html.erb +0 -14
  37. data/templates/web/layouts/_cyborg.html.erb +0 -111
  38. data/templates/web/layouts/_doc.html.erb +0 -35
  39. data/templates/web/partials/_navbar.html.erb +0 -24
  40. data/templates/web/references.md.erb +0 -39
  41. data/templates/web/release_notes.md.erb +0 -5
  42. data/templates/web/test-engineering.html.erb +0 -79
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: c03ed69b554f6d924ac5fcffe87d9c18724a9606
4
- data.tar.gz: 8f1c2964ce925f3ccb176bd3ee9a3c0c0e6e7841
3
+ metadata.gz: 9023aa4162108db923831a277ad1f31b872ac2cf
4
+ data.tar.gz: 6bc389d23096efde82668b6b7652e59a98a886b7
5
5
  SHA512:
6
- metadata.gz: 254950fe29f7941f9eb65a1e2ac37e4dcac85dc141a5825c93ae96c13db1cea0d26520a5043281f664f0ca3c93ea2157801b29616fc6460bcd30aa2e14b9a194
7
- data.tar.gz: b2aaac13da19297800d4301b275d91f201b7e92e02483fa59b852718580afa15c051da52422d73da621403c6a7d2cd0b9a067530767ada7b5dd97de461411fcb
6
+ metadata.gz: d1686e33496b9bc14ae9039ba3f4045f080c1c8811fb37c2fdf554c5094a46cf9e52c55438d98551626b5a599acfe66d22d14ebe04bbc78b02d6d5e1bfe26cd7
7
+ data.tar.gz: dabe7b99bb6ac62c685557223579443fb14761c9c438eb6d704b9da7fd60c4480944f1c6d5cc794b29a543650348549c0eddc3447cbf5e5f8ded578beb5d50c8
data/config/version.rb CHANGED
@@ -1,7 +1,7 @@
1
1
  module Origen
2
2
  MAJOR = 0
3
3
  MINOR = 2
4
- BUGFIX = 0
4
+ BUGFIX = 1
5
5
  DEV = nil
6
6
 
7
7
  VERSION = [MAJOR, MINOR, BUGFIX].join(".") + (DEV ? ".pre#{DEV}" : '')
@@ -20,7 +20,7 @@ module Origen
20
20
  :web_domain, :imports, :imports_dev,
21
21
  :strict_errors, :unmanaged_dirs, :unmanaged_files, :remotes,
22
22
  :external_app_dirs, :lint_test, :shared, :yammer_group, :rc_url, :rc_workflow,
23
- :user_aliases, :release_externally, :gem_name
23
+ :user_aliases, :release_externally, :gem_name, :disqus_shortname
24
24
 
25
25
  # Mark any attributes that are likely to depend on properties of the target here,
26
26
  # this will raise an error if they are ever accessed before the target has been
@@ -182,7 +182,7 @@ module Origen
182
182
  # Returns the ERB buffer name for the given file, something like "@my_file_name"
183
183
  def buffer_name_for(file)
184
184
  # Not sure why the final gsub is needed but seems to fail to parse correctly otherwise.
185
- @current_buffer = "@#{file.basename('.*').basename('.*').to_s.gsub('-', '_')}"
185
+ @current_buffer = "@_#{file.basename('.*').basename('.*').to_s.gsub('-', '_')}"
186
186
  end
187
187
 
188
188
  def merge_file(file, _options = {})
@@ -27,6 +27,7 @@
27
27
  /.bin
28
28
  /.session
29
29
  /.pdm/pi_attributes.txt
30
+ /.irb_history
30
31
 
31
32
  # Cruft from other revision control systems
32
33
  .SYNC
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: origen
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Stephen McGinty
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-07-20 00:00:00.000000000 Z
11
+ date: 2015-07-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport
@@ -678,7 +678,6 @@ files:
678
678
  - origen_site_config.yml
679
679
  - source_setup
680
680
  - spec/format/origen_formatter.rb
681
- - templates/api_doc/README.txt.erb
682
681
  - templates/code_generators/gemfile_app.rb
683
682
  - templates/code_generators/gemfile_plugin.rb
684
683
  - templates/code_generators/gemspec.rb
@@ -687,9 +686,6 @@ files:
687
686
  - templates/code_generators/version.rb
688
687
  - templates/code_generators/version_time.rb
689
688
  - templates/git/gitignore.erb
690
- - templates/j750/_vt_flow.txt.erb
691
- - templates/j750/_vt_instances.txt.erb
692
- - templates/j750/program_sheet.txt.erb
693
689
  - templates/nanoc/Rules
694
690
  - templates/nanoc/config.yaml
695
691
  - templates/nanoc/layouts/bootstrap.html.erb
@@ -702,40 +698,8 @@ files:
702
698
  - templates/nanoc/lib/search_filter.rb
703
699
  - templates/nanoc_dynamic/content/search.js.erb
704
700
  - templates/shared/web/_logo.html
705
- - templates/test/_inline_sub.txt.erb
706
- - templates/test/environment.txt.erb
707
- - templates/test/inline.txt.erb
708
- - templates/test/inspections.txt.erb
709
- - templates/test/set1/_sub1.txt.erb
710
- - templates/test/set1/_sub4.txt.erb
711
- - templates/test/set1/_sub5.txt.erb
712
- - templates/test/set1/main.txt.erb
713
- - templates/test/set1/sub_dir/_sub2.txt.erb
714
- - templates/test/set1/sub_dir/_sub3.txt.erb
715
- - templates/test/set1/sub_dir/main2.txt.erb
716
- - templates/test/set2/template_with_no_erb_1.txt
717
- - templates/test/set2/template_with_no_erb_2.txt
718
- - templates/test/set3/_layout.html.erb
719
- - templates/test/set3/content.html.erb
720
701
  - templates/time/filter.rb.erb
721
702
  - templates/time/rules.rb.erb
722
- - templates/web/archive.md.erb
723
- - templates/web/contact.md.erb
724
- - templates/web/css/landing.css
725
- - templates/web/design-engineering.html.erb
726
- - templates/web/docs/environment/definitions.md.erb
727
- - templates/web/docs/environment/installation.md.erb
728
- - templates/web/docs/environment/introduction.md.erb
729
- - templates/web/index.html.erb
730
- - templates/web/js/jquery-singlePageNav.js
731
- - templates/web/js/landing.js
732
- - templates/web/layouts/_basic.html.erb
733
- - templates/web/layouts/_cyborg.html.erb
734
- - templates/web/layouts/_doc.html.erb
735
- - templates/web/partials/_navbar.html.erb
736
- - templates/web/references.md.erb
737
- - templates/web/release_notes.md.erb
738
- - templates/web/test-engineering.html.erb
739
703
  homepage: http://origen-sdk.org
740
704
  licenses:
741
705
  - LGPL-3
@@ -756,7 +720,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
756
720
  version: 1.8.11
757
721
  requirements: []
758
722
  rubyforge_project:
759
- rubygems_version: 2.2.2
723
+ rubygems_version: 2.4.5
760
724
  signing_key:
761
725
  specification_version: 4
762
726
  summary: A Semiconductor Developer's Kit
@@ -1,24 +0,0 @@
1
- = \RGen (<%= RGen.version %>)
2
- {Choose another version}[http://rgen.freescale.net]
3
-
4
- Here are some shortcuts to common locations, alternatively search or browse
5
- for the code of interest:
6
-
7
- === Tester Methods
8
-
9
- * {Common}[<%= url "/api" %>/RGen/Tester/API.html]
10
- * {Common Timing Related}[<%= url "/api" %>/RGen/Tester/Timing.html]
11
- * {J750}[<%= url "/api" %>/RGen/Tester/J750.html]
12
-
13
- === Pins and Ports
14
-
15
- * {Pins Module (include this to add pins/ports to your class)}[<%= url "/api" %>/RGen/Pins.html]
16
- * {Pin}[<%= url "/api" %>/RGen/Pins/Pin.html]
17
- * {Port}[<%= url "/api" %>/RGen/Pins/Port.html]
18
-
19
- === Registers and Bits
20
-
21
- * {Registers Module (include this to add registers to your class)}[<%= url "/api" %>/RGen/Registers.html]
22
- * {Register}[<%= url "/api" %>/RGen/Registers/Reg.html]
23
- * {Bit}[<%= url "/api" %>/RGen/Registers/Bit.html]
24
- * {BitCollection (these methods can be called on all registers and bits)}[<%= url "/api" %>/RGen/Registers/BitCollection.html]
@@ -1,8 +0,0 @@
1
- data_collection Test nvm_allflash_vsgdist ErsSatVsg None
2
- % if options[:include_fw]
3
- data_collection Test nvm_allflash_vsgdist_fw ErsSatVsgFW None
4
- % end
5
- % if options[:include_tifr]
6
- data_collection Test nvm_allflash_vsgdist_tifr ErsSatVsgTIFR None
7
- % end
8
- data_collection Test nvm_allflash_vsgdist_uifr ErsSatVsgUIFR None
@@ -1,4 +0,0 @@
1
- nvm_allflash_vsgdist IG-XL Template Empty_T Excel Macro NVM Typ Spec Default Tim Lvl TfsC90InterposeFunc VtDist SetHRAMForRead,32 ArgData:0,1,15,1,vsg,array
2
- nvm_allflash_vsgdist_fw IG-XL Template Empty_T Excel Macro NVM Typ Spec Default Tim Lvl TfsC90InterposeFunc VtDist SetHRAMForRead,32 ArgData:0,1,15,1,vsg,fw
3
- nvm_allflash_vsgdist_uifr IG-XL Template Empty_T Excel Macro NVM Typ Spec Default Tim Lvl TfsC90InterposeFunc VtDist SetHRAMForRead,32 ArgData:0,1,15,1,vsg,uifr
4
- nvm_allflash_vsgdist_tifr IG-XL Template Empty_T Excel Macro NVM Typ Spec Default Tim Lvl TfsC90InterposeFunc VtDist SetHRAMForRead,32 ArgData:0,1,15,1,vsg,tifr
@@ -1,9 +0,0 @@
1
- This is some test program sheet or other.
2
-
3
- The test compile has:
4
-
5
- % if options[:passed_param]
6
- PASSED!
7
- % else
8
- FAILED!
9
- % end
@@ -1,2 +0,0 @@
1
- From a sub!
2
- x = <%= options[:x] %>
@@ -1 +0,0 @@
1
- Current environment: <%= RGen.environment.name %>
@@ -1,11 +0,0 @@
1
- <%= 5 * 5 %>
2
- Hello
3
- % if options[:extra]
4
- and goodbye
5
- % end
6
- % if options[:test_scope]
7
- <%= secret %>
8
- % end
9
- % if options[:test_render]
10
- <%= render "inline_sub", x: 10 %>
11
- % end
@@ -1,19 +0,0 @@
1
- This template is used to test that the custom inspect methods of the various RGen datatypes work
2
-
3
- Should display a list of registers:
4
-
5
- <%= $nvm.regs.inspect %>
6
-
7
- Should display an actual register:
8
-
9
- <%= $nvm.regs(:mclkdiv).inspect %>
10
-
11
- This one had problems in real life:
12
-
13
- % $nvm.add_proth_reg
14
- <%= $nvm.regs(:proth).inspect %>
15
-
16
- Check the multi bitgroups scattered through the register
17
-
18
- % $nvm.add_multi_split_reg
19
- <%= $nvm.regs(:multi_group).inspect %>
@@ -1,12 +0,0 @@
1
- sub1: This is content from sub1
2
- sub1:
3
- sub1: This data value should be 0 to prove that it has not
4
- sub1: been influenced by the calling context:
5
- sub1:
6
- sub1: Data: 0x<%= $nvm.reg(:data).val.to_s(16).upcase %>
7
- sub1:
8
- % if options[:data]
9
- sub1: Data values passed in: 0x<%= options[:data].to_s(16).upcase %>
10
- % else
11
- sub1: No data value passed in!
12
- % end
@@ -1 +0,0 @@
1
- sub4: This is a single line from sub4!
@@ -1 +0,0 @@
1
- sub5: The value of $nvm.attribute_x is: <%= $nvm.attribute_x %>
@@ -1,53 +0,0 @@
1
- main: This is a basic template example to test the RGen template compiler.
2
- main:
3
- main: Verify that the target objects can be accessed:
4
- main:
5
- % $nvm.reg(:data).write(0x5555)
6
- main: Data: 0x<%= $nvm.reg(:data).val.to_s(16).upcase %>
7
- main:
8
- main: Verify that sub templates can be rendered and executed within their own context:
9
- main:
10
- <%= render "sub1" %>
11
- main: Verify that import is an alias for render
12
- main:
13
- <%= import "sub1" %>
14
- main:
15
- main: Rendering the template should not disrupt the current context, verify that the
16
- main: data is still 0x5555:
17
- main:
18
- main: Data: 0x<%= $nvm.reg(:data).val.to_s(16).upcase %>
19
- main:
20
- main: Verify that option data can be passed to rendered templates, the data
21
- main: printed here should be 0x1234:
22
- main:
23
- <%= render "sub1", data: 0x1234 %>
24
- main:
25
- main: Again verify that the current context is still intact:
26
- main: Data: 0x<%= $nvm.reg(:data).val.to_s(16).upcase %>
27
- main:
28
- main: Verify that templates from sub directories can be rendered:
29
- main:
30
- <%= render "sub_dir/sub2" %>
31
- main:
32
- main: Again verify that the current context is still intact:
33
- main: Data: 0x<%= $nvm.reg(:data).val.to_s(16).upcase %>
34
- main:
35
- main: Verify that no extra linebreaks are added:
36
- <%= render "sub4.txt.erb" %>
37
- main: This should butt up against the sub 4 line
38
- main:
39
- main: And that leading spaces are stripped, there should be
40
- main: no leading whitespace before the sub 4 line:
41
- <%= render "sub4.txt.erb" %>
42
- main: This is a test that helpers can compile templates inline
43
- <%= test_compile_inline_from_helper %>
44
- main: This is a test that indent works
45
- <%= render "sub1", indent: 10 %>
46
- main: Verify by default that render will reload the target,
47
- main: the value here should be blank
48
- % $nvm.attribute_x = "X"
49
- <%= render "sub5" %>
50
- main: Verify that target reload can optionally be inhibited,
51
- main: the value here should be X
52
- % $nvm.attribute_x = "X"
53
- <%= render "sub5", preserve_target: true %>
@@ -1,20 +0,0 @@
1
- sub2: This is content from sub2
2
- sub2:
3
- sub2: This data value should be 0 to prove that it has not
4
- sub2: been influenced by the calling context:
5
- sub2:
6
- sub2: Data: 0x<%= $nvm.reg(:data).val.to_s(16).upcase %>
7
- sub2:
8
- % if options[:data]
9
- sub2: Data values passed in: 0x<%= options[:data].to_s(16).upcase %>
10
- % else
11
- sub2: No data value passed in!
12
- % end
13
- sub2:
14
- sub2: Verify that templates can render additional sub-templates:
15
- sub2:
16
- % if options[:data]
17
- <%= render "sub3", data: options[:data] * 2 %>
18
- % else
19
- <%= render "sub3" %>
20
- % end
@@ -1,12 +0,0 @@
1
- sub3: This is content from sub3
2
- sub3:
3
- sub3: This data value should be 0 to prove that it has not
4
- sub3: been influenced by the calling context:
5
- sub3:
6
- sub3: Data: 0x<%= $nvm.reg(:data).val.to_s(16).upcase %>
7
- sub3:
8
- % if options[:data]
9
- sub3: Data values passed in: 0x<%= options[:data].to_s(16).upcase %>
10
- % else
11
- sub3: No data value passed in!
12
- % end
@@ -1,4 +0,0 @@
1
- main2: Another simple template to prove that things work from a
2
- main2: sub-directory
3
- main2:
4
- <%= render "sub2", data: 0x1111 %>
@@ -1,9 +0,0 @@
1
- This is a template without a
2
- .erb extension.
3
-
4
- It should only compile if
5
- RGen.config.compile_only_dot_erb_files == false
6
-
7
- % 10.times do
8
- RGen.config.compile_only_dot_erb_files is <%= RGen.config.compile_only_dot_erb_files %>
9
- % end
@@ -1,9 +0,0 @@
1
- This is a template without a
2
- .erb extension.
3
-
4
- It should only compile if
5
- Origen.config.compile_only_dot_erb_files == false
6
-
7
- % 10.times do
8
- Origen.config.compile_only_dot_erb_files is <%= Origen.config.compile_only_dot_erb_files %>
9
- % end
@@ -1,4 +0,0 @@
1
- <div class="container">
2
- <%= yield %>
3
- <%= options[:repeat] %>
4
- </div>
@@ -1,6 +0,0 @@
1
- <p>I'm before the layout</p>
2
- % render "layout", repeat: 2 do
3
- <p>I'm inside the layout</p>
4
- <p>The value of repeat is...</p>
5
- % end
6
- <p>I'm after the layout</p>
@@ -1,11 +0,0 @@
1
- % render "layouts/basic.html", tab: :archive do
2
-
3
- ## Archive
4
-
5
- Documentation from previous releases is available via the links below:
6
-
7
- % Origen.app.versions.reverse_each do |version|
8
- * [<%= version %>](<%= Origen.app.config.web_domain %>/<%= version.gsub(".", "_") %>)
9
- % end
10
-
11
- % end
@@ -1,15 +0,0 @@
1
- % render "layouts/basic.html", tab: :contact do
2
-
3
- ## Contact Us
4
-
5
- The following engineers can be contacted about this application:
6
-
7
- % Origen.app.developers.each do |user|
8
- % if user.email
9
- * [<%= user.name %>](mailto://<%= user.email %>)
10
- % else
11
- * <%= user.name %>
12
- % end
13
- % end
14
-
15
- % end
@@ -1,3 +0,0 @@
1
- .nav a.active {
2
- color: #ffffff !important;
3
- }
File without changes
@@ -1,17 +0,0 @@
1
- % render "../../layouts/doc.html" do
2
-
3
- %# Add any new entries anywhere in this list, it will get sorted into
4
- %# alphabetical order during compilation:
5
- %
6
- % terms = {
7
- % "Origen" => "A general purpose semiconductor engineering framework that uses the Ruby programming language, read more at http://origen.freescale.net",
8
- % "Application" => "The generic name given to a project that uses Origen",
9
- % }
10
-
11
- | Term or Acronym | Definition
12
- |:----------------|:----------
13
- % terms.sort.each do |term|
14
- | <%= term[0] %> | <%= term[1] %>
15
- % end
16
-
17
- % end
@@ -1,22 +0,0 @@
1
- % render "../../layouts/doc.html" do
2
-
3
- Follow the steps below to setup a new environment.
4
-
5
- #### 1. Install Origen
6
-
7
- Follow these instructions to install Origen: [How to Install Origen](http://origen.freescale.net/origen/latest/guides/starting/installing)
8
-
9
- #### 2. Create the application workspace
10
-
11
- This workspace must be situated outside of the Origen workspace that you have just created.
12
-
13
- Execute the following commands:
14
-
15
- ~~~
16
- mkdir <%= Origen.app.name %>
17
- cd <%= Origen.app.name %>
18
- dssc setvault <%= Origen.config.vault %> .
19
- dssc pop -rec -uni -get -force -ver <%= Origen.app.version %> .
20
- ~~~
21
-
22
- % end
@@ -1,5 +0,0 @@
1
- % render "../../layouts/doc.html" do
2
-
3
- Welcome to the docs...
4
-
5
- % end
@@ -1,23 +0,0 @@
1
- % render "layouts/cyborg", footer: false, home: true do
2
- <div class="container-fluid" style="background-color: #333; box-shadow: inset 0 0 100px rgba(0,0,0,0.5); height: 100%;">
3
- <div class"main-content">
4
- <div class="col-centered text-center" style="margin-top: 100px;">
5
- <img src="http://origen-sdk.org/img/origen.png" height="80" width="80" style="margin-top: -45px; margin-right: 10px;">
6
- <h1 style="font-size: 75px; display: inline;">Origen</h1>
7
- <p style="font-size: 30px; margin-top: 15px;">The Semiconductor Developer's Kit</p>
8
- </div>
9
- <div class="col-centered text-center" style="margin-top: 50px; margin-bottom: 200px;">
10
- <p>
11
- <a class="btn btn-primary btn-lg">Learn more</a>
12
- </p>
13
- </div>
14
- </div>
15
- <div class="col-centered text-center footer hidden-xs">
16
- <p>
17
- Origen is an <a href="https://github.com/Origen-SDK">open source</a> framework for semiconductor engineering professionals, sponsored by:
18
- </p>
19
- <div class="sponsors">
20
- <a href="http://www.freescale.com"><img width="250" src="http://origen-sdk.org/img/freescale-logo.png"></a>
21
- </div>
22
- </div>
23
- % end
@@ -1,8 +0,0 @@
1
- /**
2
- * Single Page Nav Plugin
3
- * Copyright (c) 2014 Chris Wojcik <hello@chriswojcik.net>
4
- * Dual licensed under MIT and GPL.
5
- * @author Chris Wojcik
6
- * @version 1.2.0
7
- */
8
- if(typeof Object.create!=="function"){Object.create=function(e){function t(){}t.prototype=e;return new t}}(function(e,t,n,r){"use strict";var i={init:function(n,r){this.options=e.extend({},e.fn.singlePageNav.defaults,n);this.container=r;this.$container=e(r);this.$links=this.$container.find("a");if(this.options.filter!==""){this.$links=this.$links.filter(this.options.filter)}this.$window=e(t);this.$htmlbody=e("html, body");this.$links.on("click.singlePageNav",e.proxy(this.handleClick,this));this.didScroll=false;this.checkPosition();this.setTimer()},handleClick:function(t){var n=this,r=t.currentTarget,i=e(r.hash);t.preventDefault();if(i.length){n.clearTimer();if(typeof n.options.beforeStart==="function"){n.options.beforeStart()}n.setActiveLink(r.hash);n.scrollTo(i,function(){if(n.options.updateHash&&history.pushState){history.pushState(null,null,r.hash)}n.setTimer();if(typeof n.options.onComplete==="function"){n.options.onComplete()}})}},scrollTo:function(e,t){var n=this;var r=n.getCoords(e).top;var i=false;n.$htmlbody.stop().animate({scrollTop:r},{duration:n.options.speed,easing:n.options.easing,complete:function(){if(typeof t==="function"&&!i){t()}i=true}})},setTimer:function(){var e=this;e.$window.on("scroll.singlePageNav",function(){e.didScroll=true});e.timer=setInterval(function(){if(e.didScroll){e.didScroll=false;e.checkPosition()}},250)},clearTimer:function(){clearInterval(this.timer);this.$window.off("scroll.singlePageNav");this.didScroll=false},checkPosition:function(){var e=this.$window.scrollTop();var t=this.getCurrentSection(e);this.setActiveLink(t)},getCoords:function(e){return{top:Math.round(e.offset().top)-this.options.offset}},setActiveLink:function(e){var t=this.$container.find("a[href$='"+e+"']");if(!t.hasClass(this.options.currentClass)){this.$links.removeClass(this.options.currentClass);t.addClass(this.options.currentClass)}},getCurrentSection:function(t){var n,r,i,s;for(n=0;n<this.$links.length;n++){r=this.$links[n].hash;if(e(r).length){i=this.getCoords(e(r));if(t>=i.top-this.options.threshold){s=r}}}return s||this.$links[0].hash}};e.fn.singlePageNav=function(e){return this.each(function(){var t=Object.create(i);t.init(e,this)})};e.fn.singlePageNav.defaults={offset:0,threshold:120,speed:400,currentClass:"current",easing:"swing",updateHash:false,filter:"",onComplete:false,beforeStart:false}})(jQuery,window,document)
@@ -1,9 +0,0 @@
1
- jQuery(function($) {
2
- $('.navbar').singlePageNav({
3
- filter: ':not(.external)',
4
- offset: 60,
5
- currentClass: 'active',
6
- updateHash: true,
7
- speed: 1000
8
- });
9
- });
@@ -1,14 +0,0 @@
1
- ---
2
- title: <%= options[:title] || Origen.app.namespace %>
3
- analytics: UA-64455560-1
4
- ---
5
- <%= render "templates/web/partials/navbar.html", tab: options[:tab] %>
6
-
7
- <div class="row">
8
- %# The markdown attribute is important if you are going to include content written
9
- %# in markdown, without this is will be included verbatim
10
- <div class="span12" markdown="1">
11
- <%= yield %>
12
-
13
- </div>
14
- </div>
@@ -1,111 +0,0 @@
1
- ---
2
- layout: none
3
- ---
4
- <!DOCTYPE html>
5
- <html lang="en">
6
- <head>
7
- <meta charset="utf-8">
8
- <meta http-equiv="X-UA-Compatible" content="IE=edge">
9
- <meta name="viewport" content="width=device-width, initial-scale=1">
10
- <!-- The above 3 meta tags *must* come first in the head; any other head content must come *after* these tags -->
11
- <% @item = {} %>
12
-
13
- <title>Origen, The Semiconductor Developer's Kit</title>
14
- <% if @item[:description] %>
15
- <meta name="description" content="<%= @item[:description] %>">
16
- <% end %>
17
- <% if @item[:author] %>
18
- <meta name="author" content="<%= @item[:author] %>">
19
- <% end %>
20
-
21
- <!-- Bootstrap core CSS -->
22
- <link rel="stylesheet" href="//maxcdn.bootstrapcdn.com/bootstrap/3.3.5/css/bootstrap.min.css">
23
- <link rel="stylesheet" href="//maxcdn.bootstrapcdn.com/font-awesome/4.3.0/css/font-awesome.min.css">
24
- <link rel="stylesheet" href="http://origen-sdk.org/css/cyborg.min.css"></script>
25
- <link rel="stylesheet" href="css/landing.css"></script>
26
- <style type="text/css">
27
- .col-centered{
28
- float: none;
29
- margin: 0 auto;
30
- }
31
- /* Sticky footer styles */
32
- html, body {
33
- position: relative;
34
- min-height: 100%;
35
- height: 100%;
36
- }
37
- .main-content {
38
- /* Margin bottom by footer height */
39
- margin-bottom: 250px;
40
- }
41
- .footer {
42
- position: absolute;
43
- bottom: 0;
44
- width: 99%;
45
- /* Set the fixed height of the footer here */
46
- height: 250px;
47
- }
48
-
49
- </style>
50
-
51
- <!-- Load this up top to allow pages to execute JQuery snippets -->
52
- <script src="//ajax.googleapis.com/ajax/libs/jquery/1.11.3/jquery.min.js"></script>
53
-
54
- <!-- HTML5 shim and Respond.js for IE8 support of HTML5 elements and media queries -->
55
- <!--[if lt IE 9]>
56
- <script src="https://oss.maxcdn.com/html5shiv/3.7.2/html5shiv.min.js"></script>
57
- <script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
58
- <![endif]-->
59
-
60
- <script>
61
- (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
62
- (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
63
- m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
64
- })(window,document,'script','//www.google-analytics.com/analytics.js','ga');
65
-
66
- ga('create', 'UA-64455560-1', 'auto');
67
- ga('send', 'pageview');
68
- </script>
69
-
70
- <!-- Fav and touch icons -->
71
- <link rel="apple-touch-icon" sizes="57x57" href="http://origen-sdk.org/apple-touch-icon-57x57.png">
72
- <link rel="apple-touch-icon" sizes="60x60" href="http://origen-sdk.org/apple-touch-icon-60x60.png">
73
- <link rel="apple-touch-icon" sizes="72x72" href="http://origen-sdk.org/apple-touch-icon-72x72.png">
74
- <link rel="apple-touch-icon" sizes="76x76" href="http://origen-sdk.org/apple-touch-icon-76x76.png">
75
- <link rel="apple-touch-icon" sizes="114x114" href="http://origen-sdk.org/apple-touch-icon-114x114.png">
76
- <link rel="apple-touch-icon" sizes="120x120" href="http://origen-sdk.org/apple-touch-icon-120x120.png">
77
- <link rel="apple-touch-icon" sizes="144x144" href="http://origen-sdk.org/apple-touch-icon-144x144.png">
78
- <link rel="apple-touch-icon" sizes="152x152" href="http://origen-sdk.org/apple-touch-icon-152x152.png">
79
- <link rel="apple-touch-icon" sizes="180x180" href="http://origen-sdk.org/apple-touch-icon-180x180.png">
80
- <link rel="icon" type="image/png" href="http://origen-sdk.org/favicon-32x32.png" sizes="32x32">
81
- <link rel="icon" type="image/png" href="http://origen-sdk.org/android-chrome-192x192.png" sizes="192x192">
82
- <link rel="icon" type="image/png" href="http://origen-sdk.org/favicon-96x96.png" sizes="96x96">
83
- <link rel="icon" type="image/png" href="http://origen-sdk.org/favicon-16x16.png" sizes="16x16">
84
- <link rel="manifest" href="http://origen-sdk.org/manifest.json">
85
- <meta name="msapplication-TileColor" content="#da532c">
86
- <meta name="msapplication-TileImage" content="/mstile-144x144.png">
87
- <meta name="theme-color" content="#ffffff">
88
- </head>
89
-
90
- <body data-spy="scroll" data-target="#navbar">
91
-
92
- <%= yield %>
93
-
94
- % if options[:footer]
95
- <footer class="footer">
96
- <div class="container">
97
- <p class="pull-left text-muted">
98
- Freescale Internal Use Only
99
- </p>
100
- <p class="pull-right text-muted">&copy; Copyright <%= Time.now.year %> Freescale, Inc. All Rights Reserved</p>
101
- </div>
102
- </footer>
103
- % end
104
- <!-- Bootstrap core JavaScript
105
- ================================================== -->
106
- <!-- Placed at the end of the document so the pages load faster -->
107
- <script src="//maxcdn.bootstrapcdn.com/bootstrap/3.3.5/js/bootstrap.min.js"></script>
108
- <script src="js/jquery-singlePageNav.js"></script>
109
- <script src="js/landing.js"></script>
110
- </body>
111
- </html>
@@ -1,35 +0,0 @@
1
- ---
2
- title: <%= options[:title] || "#{Origen.app.namespace} - Docs" %>
3
- analytics: UA-64455560-1
4
- ---
5
- <%= render "templates/web/partials/navbar.html", tab: :docs %>
6
- % s = {}
7
-
8
- %# This creates the index on the left of your doc pages
9
- %#
10
- %# Naming of the keys is very important and must be of the form:
11
- %# <section>_<page> with no other underscores
12
- %# Origen will then look for the corresponding page in:
13
- %# templates/web/docs/<section>/<page>.md.erb
14
- %#
15
- %# See here for more info: http://origen.freescale.net/doc_helpers/latest/examples/searchable/intro/
16
-
17
- % s["Environment"] = {
18
- % environment_introduction: "Introduction",
19
- % environment_installation: "Installation",
20
- % environment_definitions: "Definitions and Acronyms",
21
- % }
22
- %
23
- %# Define additional sections as required, e.g.
24
- %# s["Registers"] = {
25
- %# registers_map: "Register Map",
26
- %# }
27
-
28
-
29
- % render "doc_helpers/searchable.html", options.merge(:index => s) do
30
-
31
- <%= yield %>
32
-
33
- <%= yammer_comments %>
34
-
35
- % end
@@ -1,24 +0,0 @@
1
- <nav class="navbar navbar-inverse navbar-fixed-top">
2
- <div class="container">
3
- <div class="navbar-header">
4
- <button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#navbar" aria-expanded="false" aria-controls="navbar">
5
- <span class="sr-only">Toggle navigation</span>
6
- <span class="icon-bar"></span>
7
- <span class="icon-bar"></span>
8
- <span class="icon-bar"></span>
9
- </button>
10
- <a class="navbar-brand" href="<%= path "/" %>">Home</a>
11
- </div>
12
- <div id="navbar" class="collapse navbar-collapse">
13
- <ul class="nav navbar-nav">
14
- <li class="<%= options[:tab] == :docs ? 'active' : '' %>"><a href="<%= path("/docs/environment/introduction") %>">Docs</a></li>
15
- <li class="<%= options[:tab] == :api ? 'active' : '' %>"><a href="<%= path "/api/" %>">API</a></li>
16
- <li class="<%= options[:tab] == :references ? 'active' : '' %>"><a href="<%= path "/references" %>">References</a></li>
17
- <li class="<%= options[:tab] == :archive ? 'active' : '' %>"><a href="<%= path "/archive" %>">Archive</a></li>
18
- <li class="<%= options[:tab] == :release ? 'active' : '' %>"><a href="<%= path "/release_notes" %>">Release Notes</a></li>
19
- <li class="<%= options[:tab] == :contact ? 'active' : '' %>"><a href="<%= path "/contact" %>">Contact</a></li>
20
- </ul>
21
- <%= import "origen/web/logo.html" %>
22
- </div><!--/.nav-collapse -->
23
- </div>
24
- </nav>
@@ -1,39 +0,0 @@
1
- % render "layouts/basic.html", tab: :references do
2
-
3
- ## References
4
-
5
- %# An example of how to write a references page:
6
- %#### Documents
7
- %#
8
- %#* Block Guides
9
- %# * [FTFL Block Guide](http://compass.freescale.net/go/ftflspecs)
10
- %# * [FTFE Block Guide](http://compass.freescale.net/go/ftfespecs)
11
- %# * [FTFA Block Guide](http://compass.freescale.net/go/ftflspecs)
12
- %#* Hardmacro Creation Guides
13
- %# * [TFSL Creation Guide](http://compass.freescale.net/go/tfsspec)
14
- %# * [TFSE Creation Guide](http://compass.freescale.net/go/tfsspec)
15
- %#* Training
16
- %# * [FTFL Overview](http://compass.freescale.net/livelink/livelink/207024304/FTFL_Overview.ppt?func=doc.Fetch&nodeid=207024304)
17
- %#* Quality
18
- %# * [Quality Level Cheatsheet](http://compass.freescale.net/livelink/livelink/227376170/SOC_3.6_NVM_Quality_Level_1409_C90TFS.xlsx?func=doc.Fetch&nodeid=227376170)
19
- %#
20
- %#### Origen
21
- %#
22
- %#* [Origen Documentation](http://origen.freescale.net)
23
- %#* [Origen Freeshare Commmunity](http://freeshare.freescale.net:2222/public/origen-cmty-svc/Pages/PublicHome.aspx)
24
- %#
25
- %#### Design Sync Vaults
26
- %#
27
- %#* C90TFS NVM Test Module
28
- %# * <%= Origen.config.vault %>
29
- %#* FTFL Design
30
- %# * sync://sync-15040:15040/Projects/nvm_c90tfsw/ftfl
31
- %# * sync://sync-15040:15040/Projects/nvm_c90tfsw/ftfl_firmware
32
- %#* FTFE Design
33
- %# * sync://sync-15040:15040/Projects/nvm_c90ftfe/ftfe
34
- %# * sync://sync-15040:15040/Projects/nvm_c90ftfe/ftfe_firmware
35
- %#* FTFA Design
36
- %# * sync://sync-15040:15040/Projects/nvm_c90tfsw/ftfa
37
- %# * sync://sync-15040:15040/Projects/nvm_c90tfsw/ftfa_firmware
38
-
39
- % end
@@ -1,5 +0,0 @@
1
- % render "layouts/basic.html", tab: :release do
2
-
3
- <%= render "#{Origen.root}/doc/history" %>
4
-
5
- % end
@@ -1,79 +0,0 @@
1
- % render "layouts/cyborg" do
2
- <nav class="navbar navbar-default navbar-fixed-top navbar-inverse">
3
- <div class="container">
4
- <div class="navbar-header">
5
- <a class="navbar-brand" href="#origen">Origen</a>
6
- </div>
7
-
8
- <div class="collapse navbar-collapse" id="navbar">
9
- <ul class="nav navbar-nav">
10
- <li><a href="#topic1">Topic1</a></li>
11
- <li><a href="#topic2">Topic2</a></li>
12
- <li><a href="#topic3">Topic3</a></li>
13
- <li><a href="#topic4">Topic4</a></li>
14
- <li><a href="#topic5">Topic5</a></li>
15
- </ul>
16
- <ul class="nav navbar-nav navbar-right">
17
- <li><a class="external" href="http://origen-sdk.org/origen/docs/environment/introduction/">Docs</a></li>
18
- </ul>
19
- </div>
20
- </div>
21
- </nav>
22
-
23
- <div class="jumbotron" id="origen" style="margin-top: 60px;">
24
- <img src="http://origen-sdk.org/img/origen.png" height="70" width="70" style="float: left; margin-top: 20px; margin-right: 10px;">
25
- <h1>Origen</h1>
26
- <p>The Semiconductor Developer's Kit</p>
27
- <p><a class="btn btn-primary btn-lg">Learn more</a></p>
28
- </div>
29
-
30
- <div class="bs-docs-section">
31
- <div class="page-header" id="topic1" style="height: 1000px;">
32
- <div class="row">
33
- <div class="col-lg-12">
34
- <h1 id="buttons">Topic1</h1>
35
- </div>
36
- </div>
37
- </div>
38
- </div>
39
-
40
- <div class="bs-docs-section">
41
- <div class="page-header" id="topic2" style="height: 1000px;">
42
- <div class="row">
43
- <div class="col-lg-12">
44
- <h1 id="buttons">Topic2</h1>
45
- </div>
46
- </div>
47
- </div>
48
- </div>
49
-
50
- <div class="bs-docs-section">
51
- <div class="page-header" id="topic3" style="height: 1000px;">
52
- <div class="row">
53
- <div class="col-lg-12">
54
- <h1 id="buttons">Topic3</h1>
55
- </div>
56
- </div>
57
- </div>
58
- </div>
59
-
60
- <div class="bs-docs-section">
61
- <div class="page-header" id="topic4" style="height: 1000px;">
62
- <div class="row">
63
- <div class="col-lg-12">
64
- <h1 id="buttons">Topic4</h1>
65
- </div>
66
- </div>
67
- </div>
68
- </div>
69
-
70
- <div class="bs-docs-section">
71
- <div class="page-header" id="topic5" style="height: 1000px;">
72
- <div class="row">
73
- <div class="col-lg-12">
74
- <h1 id="buttons">Topic5</h1>
75
- </div>
76
- </div>
77
- </div>
78
- </div>
79
- % end